Skip to content

feat(content): put the editor's tags on a second line, and keep the side panel's tabs in sight, Rules first - #1347

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/editor-header-export
Oct 22, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/editor-header-export

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Content Editor feedback (items 4 and 5 of the editor round, plus a follow-up from testing):

  • Tags on a second line. The header's top row keeps the back button, the title and the page's actions: save state, History, Copy HTML, Mark ready and the panel toggle. The page type, method, status, Rules and "cited passages kept" tags move to a line of their own under the title.
    • All the tags now show at any width. Before, some were hidden under 1280px or shortened.
    • They are all 20px high and lined up. The status badge used to sit lower than the rest because of its <span> wrapper.
    • The title gets the room the tags used to take; on prod it was cut to "AI Search Mo…" at 1600px.
  • The side panel stays in sight. On prod draft ec60de19… at 1600px the panel shows. Under 1280px it starts closed, and the only way to open it was the small icon at the top right, so "the panel is missing".
    • While the panel is closed, its tabs now stay down the editor's right edge as a 36px vertical strip (EditorPanelRail).
    • A tab there opens the panel on that tab.
  • Rules first. The tabs are now Rules · Brief · Sources · Impact, and the panel opens on Rules. That's the tab to act on first.
    • Impact now mounts, and reads getContentImpact / getContentResults, only when it is first opened. This matches Brief and Sources.

Overlap with #1346: both touch en.json, page.test.tsx and the Impact tab's name ("Live page" there). Whichever lands second takes the other's lines; the strip and the tab list read the names from en.json, so the rename carries over.

Related issue

Content Editor feedback round (no issue).

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open any draft in the Content Editor (e.g. the demo org's draft) at 1024px.
  2. The top row has only the title and the actions. The second row has e.g. "Blog post · New page", "Create", "Draft" and "Rules 3/13", the same height and aligned.
  3. Close the panel with the top-right icon. A vertical strip with Rules · Brief · Sources · Impact stays on the right; click Sources and the panel opens on Sources.
  4. Reload under 1280px with the panel never opened (clear aeo:content-editor-panel in localStorage). The panel starts closed, the strip shows, and the header's icon opens the panel on Rules.
  5. Check light and dark themes, and a phone width: the tags wrap onto another line, with no horizontal scroll.

Checked in the browser at 1024px and 375px, light and dark.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Also run: yarn test (2603 tests pass) and yarn build.

🤖 Generated with Claude Code

…ide panel's tabs in sight, Rules first

The header's top row keeps the title and the page's actions; the page type,
method, status, rules and cited-passages tags move to a line of their own
under the title, all of them at any width and lined up (the status badge sat
lower in its wrapper). While the side panel is closed, its tabs stay down the
editor's right edge and open it on the one picked, so the panel is never out
of sight on a window under 1280px, where it starts closed. Rules is the first
tab and the panel opens on it; Impact reads when first opened.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk this one is the Content Editor's header and side panel from the feedback round. The tags move to a second line, the closed panel keeps its tabs on the right edge, and Rules is the first tab, which the panel opens on, at the user's request. It overlaps #1346 in en.json and page.test.tsx; whichever lands second I'll merge main into. Export (Word/HTML/Markdown) follows as its own PR on top of #1337, reusing docx.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One small follow-up.

  1. _draft-editor.tsx:197 and _side-panel.tsx:128-130: tabRequest outlives the panel. The panel's effect runs on every mount and replays the last request. Say you open Sources from the strip, close the panel, then open it from the header icon: it opens on Sources, not Rules. The rules chip on main had the same behaviour, but it was harmless there because the chip always asked for Rules. Fix: clear the request when the panel closes, e.g. a header toggle that calls setTabRequest(null) when panelOpen is true. Or have the panel apply a request only once, by remembering the n it last applied.

Impact now reads only when it's opened, which saves two reads per editor load.

Merge notes

  • Merges cleanly on main. No migration.
  • #1348 contains this PR at its current head (91959bdc), so this one merges first.
  • Conflicts with #1346 in page.test.tsx (the tab name "Live page" against the new tab order). Those notes are on #1346.

Tested on top of main together with #1353, #1347, #1348, #1350 and #1351: web and server tests, tsc, lint and Prettier pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants