Skip to content

CCC header lockup + sidebar icon rail (incl. settings rail) - #5

Merged
PMQ9 merged 8 commits into
wiki-v2from
feat/ccc-header-lockup
Sep 2, 2026
Merged

PMQ9 merged 8 commits into
wiki-v2from
feat/ccc-header-lockup

Conversation

@PMQ9

@PMQ9 PMQ9 commented Sep 2, 2026

Copy link
Copy Markdown

TL;DR

The Docmost-fork half of the wiki ↔ admin-console UI/UX parity work: the CCC header lockup,
the collapsible 52px sidebar icon rail (now including the Settings sidebar), an
avatar-only account trigger, and toggle alignment. Backs the parent cccvu/wiki-v2 PR (its
submodule pointer references the head of this branch).

What changed (7 commits)

Upstream boundary

Every edit is a documented seam in the parent's UPSTREAM_MODIFICATIONS.md (#9, #17, #34,
#35, #36, #37, #38, #39, brand/favicons). scripts/check-upstream-boundary.sh is green on
this HEAD. No controllers, main.ts, CASL factories, or authz logic touched — presentation
only.

How this was tested

Measured the live DOM (not eyeballed): rail width 52, icon centers x=26, toggle x=26 on home
and settings; expanded settings = full 300px nav; mobile (390px) keeps full labels
(rail CSS is gated to sm+); dark mode correct (#121214); space/AI routes still hide.
Client tsc --noEmit clean on the changed files.

Notes

  • Base branch: wiki-v2 (the fork's integration branch). Review this alongside the parent
    cccvu/wiki-v2 PR, which bumps the submodule pointer to this branch's head.

🤖 Generated with Claude Code

PMQ9 and others added 8 commits September 1, 2026 16:42
Rebuild the header brand mark to mirror the College of Connected Computing
site: dimensional gold V + the official serif "Vanderbilt University" wordmark
(inline vector artwork, currentColor-themed) + "College of Connected Computing"
in Inter sans (the brand guide's free Theinhardt substitute). Taller header for
room; the icon-only V matches the lockup V height so it no longer resizes when
the wordmark drops at the md breakpoint.

- features/brand: composed Brand lockup (V png + vu-wordmark.svg + Inter college);
  wordmark path lifted from the CCC site's official sprite, fill=currentColor
- app-header: lockupHeight 38, icon height 38 (no breakpoint jump)
- global-app-shell + app-shell.module.css: header height 45 -> 56 (coupled)
- index.html: drop the now-unused Libre Caslon webfont (wordmark is vector now)

First iteration; more polish to come.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Second iteration on the header lockup, tightening fidelity to
computing.vanderbilt.edu:

- Vertical alignment: the text column now takes the V's full height and
  distributes its two lines with space-between, so "VANDERBILT UNIVERSITY"
  sits flush with the top of the V and "College of Connected Computing"
  flush with the bottom — matching the official lockup (was: centered
  block with a fixed 2px gap).
- College line font: the official site uses Theinhardt (licensed); Inter's
  double-story 'g' was the visible mismatch. Switch the college line to
  Roboto 500 — a neo-grotesque with the single-story 'g' that matches
  Theinhardt — falling back to the app font (Inter) if Roboto is absent.
  Adds Roboto:wght@500 to the existing Google Fonts request (index.html,
  documented seam #13).

Fork-owned brand code plus the one documented seam; boundary check green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The brand lockup already links to /home, so a separate top-nav "Home" item
was duplicative. Removes the links/items array and its nav <Group> from the
header (upstream seam #17). No other header behavior changes.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Instead of hiding entirely, the global sidebar collapses to a 52px icon
rail on desktop (mobile keeps its full-width overlay):

- global-app-shell.tsx (seam #34): when collapsed, navbar width becomes
  { base: 300, sm: 52 } and collapsed.desktop stays false so it rails rather
  than hides; the rail flag passes to <GlobalSidebar collapsed>. Space/settings/
  AI sidebars keep the upstream show/hide toggle.
- global-sidebar.tsx (seam #36): render the fixed nav (Home/Favorites/Spaces/
  Templates) + bottom Invite/Settings icon-only in rail mode, each label kept in
  the DOM (accessible name) and shown as a right-side hover Tooltip; the dynamic
  Favorite-spaces list + divider are hidden (railHidden). Adds an IconHeart to
  the "Favorite spaces" section header.
- global-sidebar.module.css (seam #37): sm+-gated rail rules — width:100% so both
  <a> and <button> items fill the rail (a <button> is shrink-to-fit and collapsed
  to width:0, pinning its icon left), center + enlarge icons to 20px, sr-only the
  labels, hide railHidden; + the heart icon style.

Verified on the running app: all six rail icons center exactly (offset 0).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Drop the workspace-name <Text> from the account menu's target so the
trigger is avatar + chevron only, matching the CCC admin console's
account menu. The workspace/account details remain in the dropdown; the
console header already carries the CCC brand, so the label was redundant.

Documented upstream seam #9 (top-menu.tsx) in UPSTREAM_MODIFICATIONS.md.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Shift the desktop sidebar toggle left (translateX -17px) so its center
lands at x=26 — the same vertical column as the collapsed rail's icons
(the 52px rail centers its icons at 26, but the header's default padding
placed the toggle at center 43). translateX keeps it out of layout flow,
so the brand lockup (x=70), search box, and right action cluster stay
exactly in place; the mobile toggle (hiddenFrom="sm") is unaffected.

Documented as an extension of upstream seam #17.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The desktop collapse toggle is a single global, persisted state, but the
icon-rail was scoped to the home sidebar only: `collapsed.desktop =
showGlobalSidebar ? false : !desktopOpened` resolved to `!desktopOpened`
on /settings/*, so a collapse chosen anywhere hid the whole settings
navbar (an empty column with no navigation).

Make "rail vs hide when collapsed" one declared decision:
`railsWhenCollapsed = showGlobalSidebar || isSettingsRoute` drives both
the navbar width and collapsed.desktop. Navigation sidebars (home,
settings) rail to a 52px icon column; content sidebars (space page-tree,
AI chat) keep the upstream hide (full-width reading view).

Give SettingsSidebar the global sidebar's rail mechanics: a `collapsed`
prop + `data-collapsed`, a hover tooltip on each enabled link (disabled
items keep their single upgrade tooltip), aria-current, and a sm+
`[data-collapsed]` CSS block that centers icons and hides the labels /
title / group headings / footer. All hiding is CSS-gated at sm+, so the
mobile overlay keeps full labels. De-duplicate the collapsed icons: API
management -> IconApi, License & Edition -> IconLicense (both collided
with the account API-keys IconKey in an icon-only rail).

Documented as seams #38/#39; seam #34 amended (settings now rails).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Addresses the PR review's one Level-3 finding (Testing lens): the
rail-vs-hide decision that fixes the Settings-sidebar-vanishing bug had
no regression test — reverting `|| isSettingsRoute` would keep the suite
green while re-breaking the bug.

Extract `showGlobalSidebar`/`railsWhenCollapsed`/`isRail` from
global-app-shell.tsx into a pure `getSidebarCollapseState()` (no framework
imports) and add a vitest truth table: home + settings rail when
collapsed; space + AI hide; isRail only when the desktop toggle is off.
Behavior is unchanged (pure extraction; the shell destructures the
result). Documented as fork-owned additive entries #40/#41.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
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