githubnext/chopinPublic

Let's compose rich plans together

Show the project before top-level document titles #390

MergedMaggieAppletonmerged 3 commits intomainfromrefs/pull/390/head
  1. MA

    ## Why A top-level document header showed only its title, so with several projects nothing on screen said which repository you were in unless the sidebar was open (audit finding 12).

    ## What changed - Top-level headers get a quiet tertiary `score /` prefix before the inline-editable title (child documents keep their breadcrumb). - The prefix is a button: it opens the sidebar (inline or drawer), expands the project, scrolls it into view, focuses its row, and briefly washes it (opacity-only fade, no animation under reduced motion). - Hidden below 640px; truncates at 10rem otherwise. - `onProjectReveal` is added to the navigation context; the sidebar takes `reveal`/`onRevealed`.

    ## Screenshots

    Before and after, desktop:

    ![Before desktop](https://github.com/user-attachments/assets/2fb99172-c0da-4522-a12e-83a3121b4b13) ![After desktop](https://github.com/user-attachments/assets/2b97662f-d577-4241-a61d-c66a8030db22)

    Before and after, phone:

    ![Before phone](https://github.com/user-attachments/assets/f6a0894f-a2a0-4c17-8fe4-b0b4baffe004) ![After phone](https://github.com/user-attachments/assets/af9985bc-d45a-4cc8-ab27-ae38490d0975)

    Reveal after clicking the prefix:

    ![Project reveal](https://github.com/user-attachments/assets/b6e4f55a-d3d2-414a-910b-1aaf9c7009ba)

    ## Verification

    - The feature commit remains patch-identical; the second renews three reviewed source hashes on the author-only stack. Focused navigation tests: 27 passed. - `bun run fix`, `bun run ci`, `bun run types`, and `bun run build` passed. Reviewed design hashes are renewed. - Initial JavaScript is 251,617 B raw / 79,409 B gzip, 4,383 bytes below the raw limit. Fresh GitHub CI must run after the prepared head is published.

  2. MaggieAppletonauto-rebase-enabledlast month on GitHub

  3. MaggieAppletonauto-merge-disabledlast month on GitHub

  4. MaggieAppletonhead-ref-force-pushed 7221289524c6last month on GitHub

  5. MaggieAppletonmerged 6c393a179d91last month on GitHub

  6. MaggieAppletonclosedlast month on GitHub

  7. MaggieAppletonhead-ref-deletedlast month on GitHub