Skip to content

Prune unauthorized CSS transitions and animations back to the two DESIGN.md-approved exceptions #2594

Closed

Description

@malibio

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 — animates box-shadow itself over a runtime-configurable transitionDuration
  • query-node-viewer.svelte
  • node-tree.svelte
  • collection-node-viewer.svelte
  • tab-system.svelte
  • chat-message.svelte
  • agent-selector.svelte
  • ai-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/@keyframes declaration 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.svelte specifically: identify which (if any) of its 8 transition instances is the legitimate sidebar-width collapse exception, and remove the rest
  • Remove theme-provider.svelte's box-shadow animation and runtime-configurable transitionDuration entirely, 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 pulse and @keyframes shimmer plus the translateY(-1px) hover-lift effects from noderef.css
  • For every other file in the list, remove the non-sanctioned transition/animation declarations so the global transition: none !important rule in app.css applies as intended

Acceptance Criteria

  • Every file listed above has been audited; each transition/animation/@keyframes declaration 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.svelte retains only the sidebar-collapse transition (if present) and removes the other 7 instances
  • theme-provider.svelte's box-shadow animation and transitionDuration runtime configuration are removed
  • noderef.css's @keyframes pulse, @keyframes shimmer, and translateY(-1px) hover-lift transforms are removed
  • A fresh repo-wide search for transition:, transition-, animation:, animation-, and @keyframes in packages/desktop-app/src/**/*.svelte and **/*.css (excluding app.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.svelte in 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.svelte is 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

Related Issues

Activity

  1. mstomar125 commented on Sep 17, 2026

    @mstomar125
    Contributor

    Frontend baseline: 249 test files, 5134 tests passed

  2. self-assigned this
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions