Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): morph composer and panel action icons #14924

Mergedjakeleventhal(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/14924/headmerged by maria-rcks View on GitHub

https://github.com/user-attachments/assets/69a39d32-f56f-49af-b694-fc90cc5a95aa

The composer queue/steer icons and right-pane expand/restore icons switch abruptly. Use Morphicons with Lucide icon data and the default spring to animate those transitions while preserving the existing glyphs, sizes, and submission behavior.

Respects reduced-motion preferences and stops requesting animation frames once the morph settles. The change applies to the shared web and desktop UI.

Validation: 5 existing composer tests passed; web typecheck, targeted lint, formatting, and frozen-lockfile installation passed.

Model: GPT-6.1 Sol. Harness: Codex in T3 Code.

Takeover

Extended the same morphs to in-place copy/check, expand/collapse, maximize/restore, folder, lock, mute, theme, and preview controls. A shared six-line MorphIcon wrapper defaults to the user’s reduced-motion preference and removes repeated configuration. Existing actions and icons are preserved.

Validation on Blacksmith: web typecheck and formatting passed; targeted lint had 0 errors (51 warnings); 127 existing tests in 12 files passed. Web and desktop share these components; native mobile is unchanged. Production animation smoothness remains unverified.

Icon morphs across sidebar, copy feedback, panels, and diff controls

Takeover model: gpt-6-astra. Harness: pi in T3 Code.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR adds a new MorphIcon runtime and applies animated transitions across many existing composer, panel, file, settings, toast, and navigation controls. The underlying actions are preserved, but the broad unconditionally applied production behavior and new dependency warrant human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 41e154eb-0a32-4c42-bc78-4e653b02df36
      📥 Commits

      Reviewing files that changed from the base of the PR and between 25f637c4186a2766bd567149e4a0d8dc6c6a5086 and caf1aca23379fe5248700785090ae7633febdd24.

      ⛔ Files ignored due to path filters (1)
      • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
      📒 Files selected for processing (5)
      • apps/web/package.json
      • apps/web/src/components/ChatMarkdown.tsx
      • apps/web/src/components/chat/MessagesTimeline.tsx
      • apps/web/src/components/chat/WorktreeSetupCard.tsx
      • apps/web/src/routes/__root.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


      📝 Walkthrough

      Walkthrough

      The web app adds a MorphIcon wrapper and uses it for state-dependent icons across chat, diff, file, device, settings, onboarding, and shared UI components. The package adds lucide and morphicons, while retaining lucide-react.

      Changes

      MorphIcon adoption

      Layer / File(s)Summary
      MorphIcon foundation
      apps/web/package.json, apps/web/src/components/MorphIcon.tsx
      The web package adds lucide and morphicons. MorphIcon forwards props to BaseMorphIcon and defaults reducedMotion to "user".
      Chat and diff controls
      apps/web/src/components/ChatMarkdown.tsx, apps/web/src/components/DiffFilePathCopyButton.tsx, apps/web/src/components/DiffPanel.tsx, apps/web/src/components/RightPanelTabs.tsx, apps/web/src/components/chat/*, apps/web/src/components/diffs/DiffFileTree.tsx, apps/web/src/components/pullRequest/*
      Chat and diff controls use MorphIcon for state-dependent icons. These include composer actions, expand/collapse controls, copy states, preview toggles, and thread status. Existing icon selections remain.
      File, device, settings, and shared controls
      apps/web/src/components/device/*, apps/web/src/components/files/*, apps/web/src/components/onboarding/WelcomeWizard.tsx, apps/web/src/components/settings/*, apps/web/src/components/ui/*, apps/web/src/routes/__root.tsx
      File, device, settings, onboarding, sidebar, toast, and error-report copy controls use MorphIcon for state-dependent icons. Existing icon selections and control behavior remain.

      Priority: ➖ Normal

      Estimated code review effort: 2 (Simple) | ~15 minutes

      Change: Feature

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to caf1a

      The shared wrapper import is valid, and this review establishes no concrete issue requiring resolution before merge.

      Security Architecture Review

      Security architecture risk: 🔵 Low · up to 25f63

      Inspected controls retain fixed icon choices and their existing action handlers. The shared animation dependency broadens the affected UI surface, but its interruption and cleanup behavior could not be independently verified.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The shared renderer increases common dependency exposure across UI controls. Inspected call sites provide presentation inputs rather than tenant identifiers, environment credentials, or sensitive action callbacks; this bounds the observed change to rendering, without establishing the external package's complete behavior.

      Security Findings and Attack Paths

      • inferred — No newly expanded attacker-controlled path to command execution is established by the inspected markdown changes: MorphIcon receives fixed Check or Copy data, while command content and execution remain on a separate guarded action. This conclusion is limited to the inspected path.

      Trust Boundaries and Controls

      • observed — The inspected composer retains its surrounding button's submission/resume handler, disabled conditions, and accessible action label. The new renderer receives only the queue/steer icon selection and sizing class.

      Resilience and Maintainability Implications

      • inferred — The stateless adapter introduces no local cross-control mutable state. Whether the delegated renderer isolates animation state and cancels stale work through interruption, reduced-motion changes, settlement, and unmount remains unverified; no failure-containment defect is established.
      🚥 Pre-merge checks | ✅ 3 | ❌ 2

      ❌ Failed checks (2 warnings)

      Check nameStatusExplanationResolution
      Description check⚠️ WarningThe description explains the problem, the implementation, and the reported verification. It also includes visual evidence. It does not provide the required scope and approval information, such as a tr…Add a Scope and approval section that links the triaged issue or discussion and includes the maintainer’s explicit approval of the expanded scope. If no prior approval exists, obtain maintainer approval or split the changes into an approved…
      Docstring Coverage⚠️ WarningDocstring coverage is 22.58% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 30 files. (1 skipped:…Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (3 passed)
      Check nameStatusExplanation
      Title check✅ PassedThe title clearly identifies the icon morphing change and names the composer and panel controls. It does not cover the additional controls in the expanded scope, but it remains relevant and specific.
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Full details: Description check

      Explanation

      The description explains the problem, the implementation, and the reported verification. It also includes visual evidence. It does not provide the required scope and approval information, such as a triaged issue, explicit maintainer approval, or an explanation of why this expanded change qualifies for an exemption.

      Resolution

      Add a Scope and approval section that links the triaged issue or discussion and includes the maintainer’s explicit approval of the expanded scope. If no prior approval exists, obtain maintainer approval or split the changes into an approved scope. Use the template’s Problem, Change, Scope and approval, and Verification headings to make the required information clear, including the reported test results and any checks not performed, such as production animation smoothness testing.

      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 22.58% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 30 files. (1 skipped: 1 unsupported.)

      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Autopilot is currently an internal CodeRabbit preview.


      Comment `@coderabbitai help` to get the list of available commands.
    4. This adds 2 whole dependencies for an unnecessary secondary-motion animation. I'd be ok with just changing the icon on modifier press, but even then it feels very unnecessary and it doesn't communicate much - the symbolism of the icons just isn't there.

    5. This adds 2 whole dependencies for an unnecessary secondary-motion animation. I'd be ok with just changing the icon on modifier press, but even then it feels very unnecessary and it doesn't communicate much - the symbolism of the icons just isn't there.

      i would argue "2 whole dependencies" that just render SVGs is pretty lightweight. its a cool UX enhancement that i think is worth it

    6. maria-rcks merged thisf2cc80a

    7. maria-rcks closed this

Sign in to join this conversation.