feat(app): Home tab in Work Column — widgets, icons, closeable tabs - #550
Merged
Conversation
Add the architectural decision record for relocating the widget grid from the standalone home page into the Work Column side panel as an always-present first tab. Update CONTEXT.md with Home and Widget glossary terms under a new Surfaces section.
Register 'home' as the first, always-present tab in the Work Column side panel. The tab renders WidgetGrid (the full widget kernel — sandboxed iframes, bridge protocol, drag-reorder, add tray) inline. Changes: - helpers.ts: register homeOpen memo, filter 'home' from panelTabs, make 'home' the terminal activeTab fallback (replaces 'empty') - session-side-panel.tsx: add Home tab trigger (first position, both legacy and v2 DnD branches), add HomeTabContent component that fetches /amicode/widgets + /amicode/dashboard and wires WidgetGrid - widget-preview-card.tsx: relabel 'Pin to dashboard' → 'Pin to Home' The widget kernel CSS already collapses from 2-col to 1-col below ~300px (minmax(150px, 1fr)), so no responsive changes needed. Backend routes, bridge protocol, manifest system, and the amicode_author_widget tool are unchanged — zero wire-level changes.
Delete the two hardcoded home-page-era widgets that no longer serve a purpose in the panel-based Home tab: - widgets_src/about-you.ts (profile card) - widgets_src/meet-amico.ts (welcome hero) Update the builtin registry, fixture seed, recorder script, and golden fixtures to reflect the reduced set (jump-back-in, now-solving, showcase, library remain). Sync library.ts hash with the fork.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (14)
📝 WalkthroughWalkthroughThe Work Column now includes an always-present Home tab. It loads and renders widgets, resumes sessions, and persists dashboard changes. Obsolete widgets and standalone-home terminology were removed from fixtures, sources, and UI labels. ChangesHome tab migration
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant SessionSidePanel
participant AmicoAPI
participant WidgetGrid
participant DashboardAPI
SessionSidePanel->>AmicoAPI: Fetch widgets and dashboard
AmicoAPI-->>SessionSidePanel: Return widget and dashboard data
SessionSidePanel->>WidgetGrid: Render Home widget grid
WidgetGrid->>SessionSidePanel: Report dashboard changes
SessionSidePanel->>DashboardAPI: Persist dashboard state
Suggested reviewers: ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
Summary
Adds a Home tab as the first, always-present tab in the Work Column side panel. Widgets render there via the existing WidgetGrid. The old dashboard home page concept is retired.
What's in here
Home tab + widget cleanup
Tab icons
homeicon (house outline) for the Home tabreviewicon on the Files Changed tabcontext-ringicon for the Context panel menu entry (replaces brain)Closeable tabs
Corresponding fork changes
harmoniqs/opencodebranchlocal/amicodecarries the matching commits (icon set additions, widget registry, side panel logic).Closes #549
Summary by CodeRabbit
New Features
Changes