Repository navigation
CCC header lockup + sidebar icon rail (incl. settings rail) - #5
Merged
Merged
Conversation
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]>
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-v2PR (itssubmodule pointer references the head of this branch).
What changed (7 commits)
(
app-header.tsxtest(service-bridge): real-Postgres installer and retention specs (wiki-v2 issue 174 core) #17,brand/*); span the V height + Roboto college line; drop theredundant "Home" nav link; header height 45→56 (
global-app-shell.tsxtest(collab): complete nanoid mock in #344 gateway spec (fix CI) #34,app-shell.module.cssfix(collab): reconcile stale resident doc before store so it cannot clobber the row (#390) #35); brand favicons.hiding (
global-app-shell.tsxtest(collab): complete nanoid mock in #344 gateway spec (fix CI) #34,global-sidebar.{tsx,module.css}fix(collab): back-fill attachmentId from file URL on HTML→JSON writes (#392) #36/feat(ui): default page icon, name no-clobber, member-mgmt gate, resizable sidebar + title tooltip #37).wiki and console read identically (
top-menu.tsxfeat(editor): default-on toolbar + controlled typography + fidelity fixes (wiki-v2 #135) #9).(x=26) via
translateX, out of layout flow (app-header.tsxtest(service-bridge): real-Postgres installer and retention specs (wiki-v2 issue 174 core) #17).railsWhenCollapsedflagdrives navbar width +
collapsed.desktop;SettingsSidebargets the global rail pattern,with icon de-dup (
global-app-shell.tsxtest(collab): complete nanoid mock in #344 gateway spec (fix CI) #34,settings-sidebar.tsxperf: precompressed immutable SPA assets + code splitting (wiki-v2#309) #38,settings.module.cssfix(attachment): fail closed with 413 on truncated upload (wiki-v2 #308) #39).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.shis green onthis HEAD. No controllers,
main.ts, CASL factories, or authz logic touched — presentationonly.
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 --noEmitclean on the changed files.Notes
wiki-v2(the fork's integration branch). Review this alongside the parentcccvu/wiki-v2PR, which bumps the submodule pointer to this branch's head.🤖 Generated with Claude Code