Repository navigation
Description
Overview
../nodespace-docs/DESIGN.md's motion rules and packages/desktop-app/src/app.css's global base rule (transition: none !important) together establish that motion is disabled everywhere except two explicitly named exceptions: the sidebar-width collapse (0.25s ease-out) and the code-block hover-button opacity fade (0.2s ease). An audit found roughly 92 matches across 33 files that declare their own transition/animation properties or @keyframes, overriding the global disable and reintroducing motion the spec does not sanction.
Problem Statement
Components adding their own transition/animation declarations that override the global transition: none !important base rule, found across (non-exhaustive, from audit):
navigation-sidebar.svelte— 8 separate transition instances (some of which may legitimately be the sidebar-collapse exception; needs per-instance review, not a blanket removal)theme-provider.svelte— animatesbox-shadowitself over a runtime-configurabletransitionDurationquery-node-viewer.sveltenode-tree.sveltecollection-node-viewer.sveltetab-system.sveltechat-message.svelteagent-selector.svelteai-onboarding-dialog.svelte
Additionally, packages/desktop-app/src/lib/styles/noderef.css adds two unauthorized @keyframes (pulse for AI status, shimmer for loading state) and hover-lift transform: translateY(-1px) effects not described anywhere in DESIGN.md.
Proposed Solution
- Audit every
transition/animation/@keyframesdeclaration in the 33 files identified (plus a fresh repo-wide grep at implementation time, since the audit's file list may not be exhaustive) against the two DESIGN.md-approved exceptions - For
navigation-sidebar.sveltespecifically: identify which (if any) of its 8 transition instances is the legitimate sidebar-width collapse exception, and remove the rest - Remove
theme-provider.svelte'sbox-shadowanimation and runtime-configurabletransitionDurationentirely, unless it is itself implementing one of the two sanctioned exceptions (it does not appear to be, based on the audit description — confirm during implementation) - Remove the unauthorized
@keyframes pulseand@keyframes shimmerplus thetranslateY(-1px)hover-lift effects fromnoderef.css - For every other file in the list, remove the non-sanctioned transition/animation declarations so the global
transition: none !importantrule inapp.cssapplies as intended
Acceptance Criteria
- Every file listed above has been audited; each
transition/animation/@keyframesdeclaration is either confirmed as one of the two DESIGN.md-approved exceptions (sidebar-width collapse at 0.25s ease-out; code-block hover-button opacity fade at 0.2s ease) or removed -
navigation-sidebar.svelteretains only the sidebar-collapse transition (if present) and removes the other 7 instances -
theme-provider.svelte's box-shadow animation andtransitionDurationruntime configuration are removed -
noderef.css's@keyframes pulse,@keyframes shimmer, andtranslateY(-1px)hover-lift transforms are removed - A fresh repo-wide search for
transition:,transition-,animation:,animation-, and@keyframesinpackages/desktop-app/src/**/*.svelteand**/*.css(excludingapp.css's own base rule and the two approved exception sites) turns up no remaining unauthorized declarations - The two approved transitions still function correctly after the audit (sidebar still animates its width collapse; code-block hover buttons still fade in/out)
- No new Stylelint violations for these files once Add Stylelint enforcement for design tokens, shadows, and transitions in Svelte components #2589 lands (the enforcement issue adds a rule specifically for this)
- Code passes
bun run quality:fix - Tests pass (
bun run test:all)
Technical Specifications
Reference Files
- Global base rule:
packages/desktop-app/src/app.css—transition: none !important - Design spec:
../nodespace-docs/DESIGN.md— motion rules, two named exceptions - Files to audit (non-exhaustive — confirm full list via fresh grep at implementation time):
navigation-sidebar.svelte,theme-provider.svelte,query-node-viewer.svelte,node-tree.svelte,collection-node-viewer.svelte,tab-system.svelte,chat-message.svelte,agent-selector.svelte,ai-onboarding-dialog.svelte,packages/desktop-app/src/lib/styles/noderef.css
Implementation Details
- Do a per-instance review, not a blanket deletion — some files (
navigation-sidebar.sveltein particular) likely contain a mix of legitimate and unauthorized transitions - Confirm the code-block hover-button fade's actual current location/selector before treating it as a fixed reference point, in case it has also drifted from the 0.2s ease spec
Needs Design Decision — H1/H2 heading font sizing (flag only, do not fix without confirmation)
Separately from the transition/animation audit above, packages/desktop-app/src/lib/design/components/header-node.svelte (lines 152-158) sets --font-size: 2rem / font-size: 2rem for .header-h1 (and 1.5rem for H2). DESIGN.md states headings inside the node editor should use "square icon badges rather than font size variation — the hierarchy is spatial, not typographic" and that type should not be sized above 1.5rem in the main content area. This may mean DESIGN.md is stale/aspirational on this specific point rather than the code being wrong. This issue's scope does NOT include changing header-node.svelte's font sizing — that requires a design decision first (confirm with whoever owns DESIGN.md whether the spec or the code should change) before any implementation. Track this as:
- Design decision made and recorded (either DESIGN.md is updated to reflect that heading font-size variation is intentional, or
header-node.svelteis filed as a separate follow-up to switch to icon-badge-based hierarchy) — this checklist item's job is to make the decision and record it, not to implement the code change itself
Dependencies
- Add Stylelint enforcement for design tokens, shadows, and transitions in Svelte components #2589 (Stylelint enforcement — provides the regression check for this fix; not a hard blocker to start)
Related Issues
- Unify node-type accent colors to a single primary-based system #2590 (node-color unification — same audit)
- Replace hardcoded shadows and colors in modal/toast/banner components with design tokens #2591 (modals hardcoded colors/shadows — same audit)
- Replace hardcoded status colors and phantom CSS variables in diagnostic-panel and invitations-inbox with design tokens #2592 (sync/pro pills hardcoded colors — same audit)
- Rework diagnostic-panel dark IDE theme and remaining noderef.css literals onto design tokens #2593 (diagnostic-panel/noderef.css hardcoded colors — same audit; also touches
noderef.css, coordinate on the keyframes removal vs. the color-token edits happening in the same file)
Activity
mstomar125 commentedon Sep 17, 2026
Frontend baseline: 249 test files, 5134 tests passed