Skip to content

fix(app-layout, docs): column headers stay on navigation, docs pages hold while loading CU-17tkuw6cwb2 - #3357

Merged
pavlo-flamingo merged 3 commits into
mainfrom
fix/docs-heading-holds-on-switch
Dec 5, 2026
Merged

pavlo-flamingo merged 3 commits into
mainfrom
fix/docs-heading-holds-on-switch

Conversation

@pavlo-flamingo

@pavlo-flamingo pavlo-flamingo commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

ClickUp: Bug: Help Center title flickers, Needs you rows ignore clicks, table controls jump while loading

1. Column headers slide out of view on navigation

  • Problem. Opening a page from a scrolled page (e.g. Help Center scrolled down → Support Tickets) hid both column headers for about a second. Measured on QA: the work area container got scrollTop = 56, so the headers sat at −12px.
  • Cause. The work area and the main content area were overflow-hidden. That is still a scroll container, so Next's scroll to the new page segment (scrollIntoView) scrolled it too.
  • Fix. Both are overflow-clip, which can't be scrolled. min-h-0 min-w-0 restate the flex minimum size overflow-hidden used to give. Verified on a local build: the same steps keep the headers in place in every frame.

2. Docs title flickers on every document

  • Problem. In the Knowledge Base, opening another document turned the heading and body into skeletons and back on every click. Legal pages showed "Legal document" before the real title.
  • Cause. DocViewer drew the loading form whenever a document was being read (fix(docs): the page heading never flashes a guessed or stale title #3322). LegalDocumentPage used a stand-in title.
  • Fix. A page with a document on screen keeps it (heading, body, "On this page") until the next one is read, then swaps both in one frame. The body dims only after 0.5 s. The loading form stays for the first document. A legal document's heading draws its loading form until its title is known.

Tests: doc-viewer-held-page.test.tsx, legal-document-heading.test.tsx (both fail on the old code).

Change-Set: fix-start-work-row-and-table-controls

Change set flamingo-stack/fix-start-work-row-and-table-controls: these pull requests are one change, reviewed together.

Linked work

  • …and 1 linked item not shown here

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

… and no stand-in titles

Opening another document from the tree dropped the heading and the body to
their loading form on every click and brought them back: a flash at the top of
the page. The page on screen now stays until the next document is read, then
the heading and the body change in one frame; the loading form is for the
first document only. A legal document's heading draws its loading form until
its title is known instead of the stand-in "Legal document".
@pavlo-flamingo pavlo-flamingo added no-task PR has no ClickUp task; skips the ClickUp Task check build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed labels Dec 5, 2026
@flamingo

flamingo Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

🦩 flamingo Code Review

1 finding: 🔴 1 action required · 🟠 0 recommended · 🔵 0 informational

Advisory: findings do not block the merge.

Rules cited: SIZE-001

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
5 +230 / -25 1 0 0

🔴 Action required (1)

# Where Finding Flagged by
1 doc-viewer.tsx:261 doc-viewer.tsx and DocViewerContent, both already far over their limits, grow with the held-page state SIZE-001

✅ What this change does well

  • openframe-frontend-core/src/components/docs/__tests__/doc-viewer-held-page.test.tsx pins both halves of the new behaviour with hand-released fetches: the held page during a second read and the loading heading on the first read.
  • legal-document-page.tsx replaces the stand-in "Legal document" title with a real loading state (headingLoading) and covers it in __tests__/legal-document-heading.test.tsx.
  • The held-page state in doc-viewer.tsx is derived in render (opening/holding/pageNode) rather than through synchronising effects, keeping heading and body swapping in one commit.

Inline comments: 1 new

3 possible problems checked and ruled out, 1 after reading more of the repository
  • openframe-frontend-core/src/components/docs/doc-viewer.tsx:270 shownNode goes stale when a second document is opened before the first answer lands: The premise fails: use-document-tree.ts:381/433 guards every content write with if (path !== lastFetchedPath.current) return;, so B's late response never overwrites content while C is in flight, the held content and shownNode stay the same document (A), so pageNode is never mismatched with the body on screen.
  • openframe-frontend-core/src/components/navigation/app-layout.tsx:558 overflow-clip on AppLayout's main and drawer containers loses clipping entirely on WebKit before Safari 16: overflow-clip is supported in Safari/iOS 16+ (2022); the degradation applies only to long-obsolete WebKit builds, and the cited WEBVIEW rule text was not supplied, generic browser-support nit
  • openframe-frontend-core/src/components/docs/doc-viewer.tsx:447 Held doc page dims the whole article to opacity-60, cutting text contrast below AA: opacity-60 is a transient dim during document load with aria-busy; the rule's 'custom opacity' clause targets persistent text styling, and a half-second-delayed loading dim is a conventional pattern, nitpick at most
🤖 Prompt for AI agents: fix every finding
Address these code-review findings on pull request #3357 of flamingo-stack/openframe-oss-lib, most important first.
For each one, make the minimal change that resolves it and do not refactor unrelated code.
If you can show a finding is wrong, skip it and say why.

1. [Action required] openframe-frontend-core/src/components/docs/doc-viewer.tsx:261 doc-viewer.tsx and DocViewerContent, both already far over their limits, grow with the held-page state
   `doc-viewer.tsx` is 517 lines and its single `DocViewerContent` component spans lines 163–517 (~350 lines of body), both well past SIZE-001's 300-line file and 150-line component limits. This change adds new state and derivation (`opening`, `holding`, `shownNode`/`setShownNode`, `pageNode`) plus the dimming/aria-busy markup inside that same over-limit component instead of splitting it. SIZE-001 explicitly names "a change that ADDS lines to a file, component or hook already over its limit without splitting it" as the violation; the held-page logic is a self-contained concern that reads as a hook (e.g. `useHeldDocumentPage`) in a module beside the component.

Next: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both.

Review again. New commits are not reviewed until you ask:

  • Review the new commits: only what was pushed since this review
  • Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Updated 2026-12-05 16:31 UTC · reviewed from Pavlo Shylo's machine

@flamingo

flamingo Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

🦩 flamingo Code Review / security

✅ No findings on the current head.

Advisory: findings do not block the merge.

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
5 +230 / -25 0 0 0

Review again. New commits are not reviewed until you ask:

  • Security-check the new commits: only what was pushed since this security review
  • Security-check the whole diff again: everything, including what was already checked

Or comment @flamingo-review security (new commits) or @flamingo-review security full (everything). Add the flamingo-security-review-always label to security-review every push.

Updated 2026-12-05 16:31 UTC · reviewed from Pavlo Shylo's machine

@pavlo-flamingo pavlo-flamingo removed the no-task PR has no ClickUp task; skips the ClickUp Task check label Dec 5, 2026
@pavlo-flamingo pavlo-flamingo changed the title fix(docs): a docs page holds while the next document loads, no stand-in titles fix(docs): a docs page holds while the next document loads, no stand-in titles CU-17tkuw6cwb2 Dec 5, 2026
… column headers out of view CU-17tkuw6cwb2

The work area and the main content area were overflow-hidden: still scroll
containers, so the scroll Next runs to a new page segment (scrollIntoView)
moved them by the column headers' height, and the chat's and the page's
headers left the screen until the next layout. Both are overflow-clip now (a
clipped box cannot be scrolled), with min-h-0 min-w-0 restating the flex
minimum size overflow-hidden used to give.
@pavlo-flamingo pavlo-flamingo changed the title fix(docs): a docs page holds while the next document loads, no stand-in titles CU-17tkuw6cwb2 fix(app-layout, docs): column headers stay on navigation, docs pages hold while loading CU-17tkuw6cwb2 Dec 5, 2026
…7tkuw6cwb2

DocViewerContent was already over its size limit; the held page and the
heading it draws move to a hook beside it, so the component ends no longer
than it was.
@pavlo-flamingo
pavlo-flamingo added this pull request to the merge queue Dec 5, 2026
Merged via the queue into main with commit 387e7f1 Dec 5, 2026
29 of 35 checks passed
@pavlo-flamingo
pavlo-flamingo deleted the fix/docs-heading-holds-on-switch branch December 5, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants