Repository navigation
[HOLD 3.1] feat(workspace): WorkspacePanel, useWorkspace and ActionCard - #523
Merged
Merged
Conversation
The workspace beside an assistant's conversation, extracted from Aveiro 2.0: keyed tabs that open as a preview and switch to the app's real editor, an open editor that keeps its version across refreshes, a cap on open tabs, arrow keys and Delete in the tab strip. ActionCard is the card an assistant answers with: icon, title, status, body and a footer whose primary button is the proposed write. Generic over the tab's data, so Aveiro, Sigilio, Tavilio and Stack apps draw their own previews and editors. Docs page under Modules. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtvpR3Lod9g4TL7GsZP
lorant-one
changed the base branch from
feat/3-0-breaking-cleanup
to
preview
November 23, 2026 20:50
27 tasks done
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.
Requested by Lorant · project thread
What
The first piece of the shared Workspace kit (plan: https://claude.ai/artifact/EwmxSDFjrYDtGH1wpWjNgs). It is extracted from Aveiro 2.0's chat home so that Aveiro, Sigilio, Tavilio and Stack apps share one implementation instead of four.
useWorkspace/workspaceReducer(modules/workspace): tabs keyed by what they show, so a second open refreshes the tab instead of adding one. Aversionis bumped on refresh and on leaving the editor. An open editor keeps its version, so unsaved edits survive a refresh. Also: a tab cap (8, the oldest inactive tab drops), background opens, and expand/collapse. The reducer is generic over the tab'sdataand has no React in it.WorkspacePanel: tab strip with close buttons, a header with title +meta,tools, a Preview / Edit switch foreditabletabs (switching to Edit expands by default), a Full editor link fromeditorHref, and a phone-only expand toggle. Keyboard: arrows, Home/End, Delete closes. The app draws each tab through achildren(tab, mode)render prop.ActionCard(modules/chat): the card an assistant answers with. It has an icon, title, status, body, a footer of actions, and an optional eye button that opens the card's subject in the workspace.Differences from Aveiro's copy: no app-specific tab kinds or section selection (the picker is a separate PR), and SegmentedControl uses 3.0's
onValueChange.Hold
This is 3.1 work on the 3.0 branch, the same way core#505 was. Merge it after 3.0.0, or into 3.0 if you pull it in.
Checks
vitest run: 332 files / 4665 tests pass, including the newworkspace.test.tsx(reducer, panel, keyboard, axe) and aWorkspacePanelfixture inevery-export-renders.tsc --noEmitclean;validate-ai-codeclean on both components; Biome clean on the touched files.ai/artifacts are not committed (regenerated on the merged tree, per AGENTS.md).Next in the stack
ElementPicker (section/element pointing in a same-origin preview), then
WorkspaceLayoutin blocks (rail + conversation + panel on SplitView), then Aveiro moves onto the kit behind Aveiro 2.0.Generated by Claude Code