Skip to content

[HOLD 3.1] feat(workspace): WorkspacePanel, useWorkspace and ActionCard - #523

Merged
lorant-one merged 4 commits into
previewfrom
feat/workspace-panel-action-card
Nov 24, 2026
Merged

lorant-one merged 4 commits into
previewfrom
feat/workspace-panel-action-card

Conversation

@lorant-one

Copy link
Copy Markdown
Member

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. A version is 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's data and has no React in it.
  • WorkspacePanel: tab strip with close buttons, a header with title + meta, tools, a Preview / Edit switch for editable tabs (switching to Edit expands by default), a Full editor link from editorHref, and a phone-only expand toggle. Keyboard: arrows, Home/End, Delete closes. The app draws each tab through a children(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.
  • Docs page: Modules › Workspace. Catalog seed entries added.

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 new workspace.test.tsx (reducer, panel, keyboard, axe) and a WorkspacePanel fixture in every-export-renders.
  • tsc --noEmit clean; validate-ai-code clean on both components; Biome clean on the touched files.
  • Generated 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 WorkspaceLayout in blocks (rail + conversation + panel on SplitView), then Aveiro moves onto the kit behind Aveiro 2.0.


Generated by Claude Code

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
lorant-one changed the base branch from feat/3-0-breaking-cleanup to preview November 23, 2026 20:50
@lorant-one
lorant-one merged commit ca26edf into preview Nov 24, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
27 tasks done
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one
lorant-one deleted the feat/workspace-panel-action-card branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants