Skip to content

feat(architecture): PR6 — console frame, recommended-first, de-noised glossary [clean]#37

Merged
BunsDev merged 1 commit into
mainfrom
clean/overhaul-architecture
Jul 7, 2026
Merged

feat(architecture): PR6 — console frame, recommended-first, de-noised glossary [clean]#37
BunsDev merged 1 commit into
mainfrom
clean/overhaul-architecture

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 7, 2026

Copy link
Copy Markdown
Member

Brings the interactive diagram onto the shared language: console frame + layer legend, recommended-first (Adapter pre-selected, SSR'd), first-occurrence-only glossary as <button>s, a tap-dismissible popover (Escape/close/click-outside, fixed+clamped), and fadeSwap. Stacked on the howitworks PR.


Clean re-cut of the section overhaul: a concurrent session had interleaved two commits (px→rem conversion, multi-screen support) into the original stack (#26#31). Rebuilt in an isolated worktree with only my six signed commits. Supersedes the original PR.

🤖 Generated with Claude Code

Bring the interactive diagram onto the shared design language and fix its
biggest UX gaps.

- Wrap the diagram + detail in the shared .panel with a console topbar
  (dots + "coven · architecture" + a layer legend: harness/runtime/project).
- Recommended-first: the Adapter node is pre-selected and its content is
  server-rendered, so the detail panel never ships a generic "pick a node"
  state; a subtle pulse primes it until the first interaction.
- Glossary de-noised: mark only the FIRST occurrence of each term (was every
  occurrence), and marks are now real <button>s (native tap).
- Tooltip is now a tap-toggle, dismissible popover (role=dialog): click/tap
  pins it, hover previews on pointer devices, with a close button, Escape
  (returns focus), and click-outside. position:fixed + viewport clamp makes
  it robust on mobile — the old hover-only tooltip was unusable on touch.
- Detail repaints crossfade through fadeSwap; palette fixed (green token,
  violet focus stroke, dropped the off-palette magenta).

Deferred (SVG is tappable and usable on mobile as-is): a parallel HTML
node-stack for larger touch targets, and 2-D grid keyboard nav.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 7, 2026 05:53
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coven Ready Ready Preview Jul 7, 2026 5:53am
coven-landing Ready Ready Preview Jul 7, 2026 5:53am

Copilot AI 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.

Pull request overview

Updates the Architecture section’s interactive diagram to match the shared section design language and improve UX: a console-style frame + legend, an SSR “recommended-first” default selection, and a de-noised glossary interaction via a dismissible popover.

Changes:

  • Wraps the diagram/detail in a console-style .panel with a top bar and layer legend.
  • Server-renders the Adapter node as the default selected “recommended-first” state and crossfades detail updates via fadeSwap.
  • Reworks glossary term marking to first-occurrence-only and upgrades terms to real <button> triggers with a fixed, clamped, dismissible popover (Escape/close/click-outside).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +395 to +397
document.addEventListener('click', (e) => {
if (pinnedMark && tooltip && !tooltip.contains(e.target) && !e.target.closest('.kw')) hideTooltip();
});
Comment on lines +226 to 232
class={`arch-node arch-node--${n.layer}${n.id === 'adapter' ? ' is-selected' : ''}`}
data-node={n.id}
data-layer={n.layer}
data-recommended={n.id === 'adapter' ? 'true' : null}
role="button"
tabindex={i === 0 ? '0' : '-1'}
aria-label={n.title}
@BunsDev
BunsDev changed the base branch from clean/overhaul-howitworks to main July 7, 2026 06:20
@BunsDev
BunsDev merged commit 2d0036f into main Jul 7, 2026
3 checks passed
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