Skip to content

Space the toolbar title and replace middle-dot separators - #15

Draft
PSchmiedmayer wants to merge 2 commits into
anvil-authoring-correctnessfrom
fix/header-and-separators
Draft

PSchmiedmayer wants to merge 2 commits into
anvil-authoring-correctnessfrom
fix/header-and-separators

Conversation

@PSchmiedmayer

Copy link
Copy Markdown
Member

♻️ Current situation & Problem

The toolbar places host content at its start, such as the standalone app's Anvil brand, directly before the questionnaire title.
Only the 2 px gap of the toolbar group separated them, so "Anvil" and the title read as one phrase.
Several labels also joined their parts with middle dots: the issue count button ("1 error · 1 warning"), the outline keyboard hint, the history menu hint, the JSON panel size, the location line of each issue, and the details of each questionnaire in the Bundle import dialog.
The middle dots were decorative separators.

⚙️ Release Notes

  • The first toolbar group, which holds the host content and the title, has a 12 px column gap.
    A gap applies only between items on the same line, so a title that wraps under the brand at narrow widths is not indented, and a title without host content has no extra space.
    Several elements passed as toolbar.start are also spaced 12 px apart.
  • The unused .anvil-brand style is removed; the standalone app styles its own brand.
.anvil-toolbar-start {
  column-gap: 12px;
}
  • The issue count reads "1 error, 1 warning".
  • The outline hint is a sentence: "Use ↑↓ to select, ⌥↑↓ to move, ⌥←→ to nest, and ⌫ to delete. Drag to reorder and right-click for more."
  • The history hint reads "2 older steps not shown. Click a step to undo it and everything above it."
  • The JSON panel shows "12.3 KB. Edit the JSON to change the questionnaire."
  • Each issue shows its location and code side by side, spaced by a flex gap and separated by a space in the text.
  • The Bundle import dialog lists a questionnaire's details as "http://example.org/q, version 2, 0 items", names the version, and says "1 item" for a single item.

Before and after, in the light and dark appearance:

Before After
Toolbar Toolbar, before Toolbar, after
Issue count and issue location Issue count and issue location, before Issue count and issue location, after
Issue count and issue location, dark Issue count and issue location, dark, before Issue count and issue location, dark, after
JSON panel size, dark JSON panel size, dark, before JSON panel size, dark, after
Bundle import details, dark Bundle import details, dark, before Bundle import details, dark, after

📚 Documentation

The README screenshot capture from #12 looks for the issue count text, so whichever of the two PRs merges second updates documentation.capture.ts to "1 error, 1 warning" and regenerates the images.

✅ Testing

  • editorShell.test.tsx expects the comma-separated issue count and the new history hint, and checks that the redo menu shows no "not shown" hint.
  • editorPanels.test.tsx checks that an issue's location and code read as separate words.
  • host.test.tsx checks that host start content and the title share the spaced start group.
  • fileActions.test.tsx expects the comma-separated Bundle choice details with the version label, and a Bundle entry with one item reads "1 item".

Code of Conduct & Contributing Guidelines

By creating and submitting this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Separate the questionnaire title from host content at the start of the
toolbar, such as the Anvil brand, with a column gap that does not
indent a wrapped title. Remove the unused brand style.

Replace the middle-dot separators in the issue count, the outline and
history hints, the JSON panel size, the issue locations, and the Bundle
choices with plain wording or layout.
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant