Skip to content

feat(gallery): reorganize and edit selected-catalog examples - #129

Closed
jerelvelarde wants to merge 8 commits into
a2ui-project:mainfrom
jerelvelarde:jerel/pr-catalog-reference
Closed

jerelvelarde wants to merge 8 commits into
a2ui-project:mainfrom
jerelvelarde:jerel/pr-catalog-reference

Conversation

@jerelvelarde

@jerelvelarde jerelvelarde commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Try a component from the selected renderer's catalog, adjust its example, and use the result in Composer. The Gallery redesign separates Preview, Usage, and Properties into cards. The Usage card edits every property in the component's schema, and the Preview card switches between the live preview and the editable example JSON with tabs. This PR owns the Gallery layout changes previously bundled into #119, including responsive drawer behavior and reachable controls in tall previews.

Each draft starts from the renderer's usage example or the Gallery's existing schema fallback. Valid edits immediately update the same renderer preview. Invalid JSON shows an error and preserves the last valid preview and export payload. Copy and Open in Composer use that same complete A2UI draft; opening preserves the selected renderer and changes the workspace only after the user chooses it.

This replaces the earlier custom-catalog page with editing inside the existing guarded Gallery. The selected catalog remains authoritative. Switching component, catalog, or renderer starts a new draft; routine acknowledgments and theme changes preserve edits. Authored root trees and child references remain intact, including custom catalog schemas; the Gallery no longer invents Column wrappers or properties for preview/export.

See it

Edit every ChoicePicker property, switch between Preview and Edit JSON, and see DateTimeInput's one-row-per-property layout

Full-resolution MP4. Recorded on 34ea3de against the local dev servers: ChoicePicker's required options and value come first; setting the unset displayStyle to chips and adding an option through the options JSON field both update the live preview. The Edit JSON tab holds the single editable example, and Reset example restores the original. DateTimeInput then shows one property per row. No API key or live model call is used.

Property editor. It lists every schema property except id, component, and constants, including optional ones the example doesn't set, and picks the control from the schema: a select for enums (with "(not set)" for optional ones), a checkbox, a number or text input, or a JSON field for arrays and objects. Required properties come first; properties every component in the catalog shares sit under "Common properties". A value bound to the data model or computed by a function call shows a note pointing to the JSON tab and is never overwritten. The tab group keeps its content mounted, so switching tabs doesn't reload the preview iframe.

Gallery text sizes, weights, line heights, tracking, and colors use Material system tokens. Cards use Material's shape/elevation defaults; code retains a monospace family with Material typography metrics.

Scope and merge order

#217 and #119 have merged, and this branch is rebased onto main (5f346b1), so the diff is only this PR's own work: 13 files, covering the Gallery component and its tests, the Gallery browser journeys, and the three sample renderers' usage examples (main has since removed the MCP sample). The Button, ChoicePicker, Image, Slider, and TextField examples used property names the v0.9 catalog doesn't define (ChoicePicker used selections instead of the required value), which the new editor made visible; they now use the catalog's names. The Settings layout is isolated in #218. #193 (the demo wall) and #215 (the chat panel) are independent of it.

Validation

Rebased onto main at 5f346b1 (after #232, #238, #252, #253, #256, #257 and #260); head is 33c372b. The one conflict was in gallery.spec.ts, where #232 added a StateSync mock in the same place this PR adds its catalog fixtures; both are kept. #232 also put the workspace's JSON editor and preview in one tab group, so the "Open in Composer" journey now shows the preview tab before checking the workspace iframe. Earlier, the rebase onto #245 routed the Gallery's four error paths through ErrorLogger, tagged [Gallery].

  • Formatting, lint, typechecks, the production build, and all unit tests pass (1,787 in the shell).
  • Full Playwright e2e: 90 of 90 pass, including the Gallery journeys, with no retries, locally and on Linux CI (build-and-test and visual-regression on the fork).
  • Error handling/4 telemetry and e2e #197 changed CatalogSchemaResolver to take an ErrorLogger; the Gallery and parseGalleryExample now pass one.

@google-cla

google-cla Bot commented Jul 24, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a custom 11-component dashboard catalog, a code-generation script to bundle source files, and integrates 'Custom Catalog' and 'Catalog Reference' views into the shell routes and sidebar navigation, complete with unit tests. Feedback focuses on improving robustness: clamping negative values to zero in BarChart and PieChart to prevent invalid SVG rendering, and adding a safety guard in DataTable to prevent runtime errors if a row is null or undefined.

@jerelvelarde
jerelvelarde force-pushed the jerel/pr-catalog-reference branch 3 times, most recently from bb86b15 to 6d4e210 Compare July 29, 2026 17:12
@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Addressed the Gemini review:

  • Charts clamp negative values (Math.max(0, Number(d?.value) || 0)) so a negative datum can't corrupt bar heights or pie-slice angles.
  • Guarded non-object rows/columns and null cells in the data table (cell() null-guard + column/row filtering).

Rebased onto latest main.

@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Went back through the Gemini review comments on this PR and resolved them — all three were already addressed in the current code:

  • bar-chart.ts — negative values producing negative <rect> heights. Both the max reduction and the per-bar value now clamp: Math.max(0, Number(d?.value) || 0).
  • pie-chart.ts — negative values corrupting total/cursor. Same clamp applied to the total reduction and each slice value.
  • data-table.ts — row[key] throwing on a null/undefined row. Now guarded: row ? String(row[key] ?? "") : "".

Holding off on rebasing this one until the refactor stack lands, per our chat.

@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Rebased onto current main and pushed. Verified locally: tsc, prettier, lint clean, 1077/1077 tests, clean build.

Four things changed beyond the rebase:

  1. Decorative-icon count. composer-shell.spec.ts asserts a hardcoded number of aria-hidden mat-icon elements. main raised it 5→6 for its new nav item and this branch had raised it 5→7 for its two, so the rebase collapsed the two edits into one and the spec asserted one fewer icon than renders. Bumped to 8. Worth deriving that count from the template at some point — it will catch anyone who adds a nav item on a branch.

  2. Formatting. Seven files here had never been through prettier. yarn prettier over them, no logic touched.

  3. Standalone theming. This page is authored against the shell's --cpk-* design tokens, which the theme PR introduces. On its own none of them resolved, so every padding, radius and colour collapsed and the page rendered unstyled — which is what the old screenshots showed. Added styles/_cpk-fallbacks.scss with light and dark defaults under --cpk-fb-*, and each usage is now var(--cpk-x, var(--cpk-fb-x)). The real token always wins where it exists, so nothing shadows or overrides the theme.

  4. The preview pane. .ref-detail is a flex column, so its cards were flex items that shrank rather than letting the pane scroll; with overflow: hidden that clipped the live preview to a few pixels. Pinned the cards to their content height. That then exposed the opposite problem — BarChart and DataTable are authored to fill their container, so an unbounded preview rendered them at full page width — so the preview now has a 640×560 box and scrolls beyond it.

Screenshots in the description have been retaken against this branch.

Note on ordering: this still looks best merged after the theme layer. The fallbacks are there so it reviews correctly on its own, not to replace the theme.

@jerelvelarde jerelvelarde changed the title feat: Catalog Reference route (native @a2ui/angular) Show the custom catalog's own source next to the demos it renders Sep 4, 2026
@jerelvelarde
jerelvelarde force-pushed the jerel/pr-catalog-reference branch from 655c892 to 835c45a Compare September 4, 2026 12:56
@jerelvelarde jerelvelarde changed the title Show the custom catalog's own source next to the demos it renders Render a custom A2UI catalog natively, and show its own source Sep 4, 2026
@jerelvelarde
jerelvelarde force-pushed the jerel/pr-catalog-reference branch from 5a99f5a to 630dbea Compare September 16, 2026 01:03
@jerelvelarde jerelvelarde changed the title Render a custom A2UI catalog natively, and show its own source feat(gallery): edit selected-catalog examples with live preview Sep 16, 2026
@jerelvelarde
jerelvelarde force-pushed the jerel/pr-catalog-reference branch from 630dbea to 361dc39 Compare September 18, 2026 13:44
@jerelvelarde jerelvelarde changed the title feat(gallery): edit selected-catalog examples with live preview feat(gallery): reorganize and edit selected-catalog examples Sep 18, 2026
@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit ebba70b):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Synced with main through #217 and #119. It merged cleanly; head is now 3cef44d. The production build and unit tests pass.

@jgindin

jgindin commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

I think we need to get more properties supported. E.g., in the ChoicePicker, can we support the, e.g., options, displayStyle? In general, we should have at least all the required properties as editable,

The DateTimeInput provides an argument that we should probably reconsider the layout -- the enableTime wrapping to a second line is a bit weird:
image

I think instead of expanding groups for the example / current JSON, we should use tabs to switch between the preview and the JSON. Given the "Reset example" action, I think we don't need both the original and the current JSON -- just the current should be good enough. This would also alleviate some confusion I had -- it took me a bit to figure out that I can't edit the "current", but I can edit the "example".

@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Thanks, all three are in. Head is now 34ea3de.

Editing every ChoicePicker property, the Preview and Edit JSON tabs, and the DateTimeInput rows

More properties. The editor now lists every property in the component's schema except id, component, and constants, including optional ones the example doesn't set. The control comes from the schema rather than the current value:

  • enums get a select, with "(not set)" for optional ones
  • booleans get a checkbox, and numbers and strings get inputs
  • arrays and objects get a JSON field; for ChoicePicker that covers options, value, and checks

Required properties come first and are marked, the component's own properties follow, and the ones every component shares (accessibility, weight) sit under "Common properties". A value bound to the data model ({path}) or computed by a function call shows a note pointing to the JSON tab rather than being overwritten. Optional properties can be removed; required ones can't.

This also exposed that the sample renderers' examples for Button, ChoicePicker, Image, Slider, and TextField used property names the v0.9 catalog doesn't define. ChoicePicker, for example, used selections instead of the required value, so its field showed up empty. Those examples now use the catalog's names.

DateTimeInput layout. Each property now takes its own row, with the name on the left and the control on the right, so enableTime no longer wraps. JSON fields take the full row below their name.

Tabs instead of the two groups. The preview card has Preview and Edit JSON tabs. The JSON tab holds the single editable example, and "Current component JSON" is gone, since Reset example covers going back to the original. The tab group keeps its content mounted, so the preview iframe isn't reloaded when you switch.

Unit tests cover each control type, adding and removing optional properties, invalid JSON leaving the draft alone, and bindings being preserved. The four Gallery browser journeys are updated for the tabs and pass.

@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Synced with main (834cafe) through #119. Head is now 3d1d35a. Main removed the ng-basic-with-mcp-catalog sample, so this branch's fix to that sample's examples goes with it. Full e2e: 75 pass. The one failure is the custom-instructions journey, which fails the same way on unchanged main.

@wrenj

wrenj commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

thanks for the PR! i like the direction.

Couple things

  • can we just have preview and edit json side by side, so i don't have to keep clicking on the tabs
  • can you use monaco editor for edit json, it has autocomplete, etc
  • can we use test input for strings instead of a textarea, most of these properties are pretty small and itll take up less space. Some of the things like object and array I guess should still be textarea.
  • for array and object can we monaco editor there with the appropriate json schema, for validation/autocomplete?
  • property ordering seems kind of random, can we alphabetize or something? or maybe do id/component/alphabetical other properties?
  • it looks like required properties are readonly, so i cant change the name of an Icon in the settings panel, can we fix that?

jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 25, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 25, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 25, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 29, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 30, 2026
Gemini keeps generating and editing A2UI; CopilotKit's Angular chat
interface (@copilotkit/angular 0.5.2) provides the Assistant panel's
message cards and prompt composer. Composer's existing services still
own model requests, catalog instructions, history, validation, and
editor updates.

- One rounded input pill with an Add (+) menu for attachments, a
  screenshot, Instructions, and Custom Instructions, plus a renderer
  selector that waits for the new renderer's catalog.
- The current canvas is synchronized before every prompt, and the model
  is told to use the draft's real surface IDs, component IDs, and
  bindings. Incremental edits keep the full draft; updates to unknown
  surfaces are rejected and the last valid canvas is kept.
- The conversation input survives canvas snapshot changes, and a
  restored draft is resynchronized after model changes.
- Attachments, screenshots, retry, stop, copy, the parse-error card, and
  light/dark themes are preserved.

This branch is built directly on main and no longer depends on the
Gallery redesign in a2ui-project#129: the assistant journeys open their draft
through the JSON editor instead of the Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 30, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 1, 2026
Gemini keeps generating and editing A2UI; CopilotKit's Angular chat
interface (@copilotkit/angular 0.5.2) provides the Assistant panel's
message cards and prompt composer. Composer's existing services still
own model requests, catalog instructions, history, validation, and
editor updates.

- One rounded input pill with an Add (+) menu for attachments, a
  screenshot, Instructions, and Custom Instructions, plus a renderer
  selector that waits for the new renderer's catalog.
- The current canvas is synchronized before every prompt, and the model
  is told to use the draft's real surface IDs, component IDs, and
  bindings. Incremental edits keep the full draft; updates to unknown
  surfaces are rejected and the last valid canvas is kept.
- The conversation input survives canvas snapshot changes, and a
  restored draft is resynchronized after model changes.
- Attachments, screenshots, retry, stop, copy, the parse-error card, and
  light/dark themes are preserved.

This branch is built directly on main and no longer depends on the
Gallery redesign in a2ui-project#129: the assistant journeys open their draft
through the JSON editor instead of the Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 1, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
@jerelvelarde
jerelvelarde force-pushed the jerel/pr-catalog-reference branch from f867aa3 to ebba70b Compare October 1, 2026 22:07
jgindin pushed a commit that referenced this pull request Oct 2, 2026
* feat: pair Gemini + CopilotKit in the Composer assistant

Gemini keeps generating and editing A2UI; CopilotKit's Angular chat
interface (@copilotkit/angular 0.5.2) provides the Assistant panel's
message cards and prompt composer. Composer's existing services still
own model requests, catalog instructions, history, validation, and
editor updates.

- One rounded input pill with an Add (+) menu for attachments, a
  screenshot, Instructions, and Custom Instructions, plus a renderer
  selector that waits for the new renderer's catalog.
- The current canvas is synchronized before every prompt, and the model
  is told to use the draft's real surface IDs, component IDs, and
  bindings. Incremental edits keep the full draft; updates to unknown
  surfaces are rejected and the last valid canvas is kept.
- The conversation input survives canvas snapshot changes, and a
  restored draft is resynchronized after model changes.
- Attachments, screenshots, retry, stop, copy, the parse-error card, and
  light/dark themes are preserved.

This branch is built directly on main and no longer depends on the
Gallery redesign in #129: the assistant journeys open their draft
through the JSON editor instead of the Gallery.

* refactor(chat): provide the CopilotKit panel through DI

The chat panel's shared state and actions move into ChatPanelBase. The
dependency-free ChatPanel (main's template) and CopilotKitChatPanel both
extend it, and the workspace mounts whichever CHAT_PANEL_COMPONENT names.
The token defaults to ChatPanel; the open-source app provides the
CopilotKit panel in app.config.ts. All CopilotKit code, including its
stylesheet and theme, now lives in chat/copilotkit-chat-panel, so a build
without that provider never imports @copilotkit/angular.

Also documents resolveLayoutUpdate in ChatCoordinator.

* fix(chat): label the renderer selector with each renderer's configured name

The selector no longer maps specific renderer IDs to its own labels, so new
or internal renderers need no code change to appear correctly.

* style: brace every if statement this change adds

* test(e2e): open instruction dialogs from the Add menu in the custom instructions journey

The CopilotKit panel moves both instruction links into the Add (+) menu.
The journey also waits for the dialog's open animation before measuring it.

* refactor(chat): move the renderer selector out and keep the shared base as main's panel

- Remove the renderer selector (the pill menu, RendererSelection, and the
  renderer switching changes in StartupResolution, SettingsService, and
  RenderedFrame). It moves to its own PR so it can be discussed separately.
- ChatPanelBase is main's ChatPanel logic again: its history, status text,
  and bubble classes are unchanged. The only differences are that the class
  is abstract, two fields are protected, and submitPrompt repeats the Send
  button's checks because pressing Enter calls it directly.
- The CopilotKit panel prepares its own view of the history, with comments
  on how and why it differs from the plain panel.
- Add FORCE_PLAIN_CHAT_PANEL, a local storage flag that makes the app mount
  the plain panel, so browser tests can cover both panels.

* test: cover both chat panels and simplify the assistant journeys

- Run the custom instructions and malformed-stream journeys against both
  the CopilotKit panel and the plain panel.
- Open the assistant journeys' draft through a shared design link instead
  of setting Monaco's model directly.
- Check the chat panel with @axe-core/playwright instead of a hand-written
  contrast calculation.
- Replace the dark-mode gradient check with a visual test of the CopilotKit
  panel.
- Document the Gemini fixture and drop its timed delay; the Stop journey
  already holds the stream open until the app cancels it.

* test(visual): add the Linux baseline for the CopilotKit panel in dark mode
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 2, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 5, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 6, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
…N with tabs

The example editor only offered properties the example already set to a
plain string, number, or boolean, so required properties such as
ChoicePicker's options, and optional ones such as displayStyle, could not
be edited. It now lists every schema property except the id, component,
and constants, and picks the control from the schema: a select for enums
(with "(not set)" for optional ones), a checkbox, a number or text input,
or a JSON field for arrays and objects. Bound or computed values show a
note instead of being overwritten. Required properties come first,
properties every component shares sit under "Common properties", and
each property takes its own row, so booleans no longer wrap.

The Example JSON and Current component JSON groups are replaced by
Preview and Edit JSON tabs on the preview card, with the single editable
example in the JSON tab. The tab group preserves its content so the
preview iframe stays mounted.

The sample renderers' Button, ChoicePicker, Image, Slider, and TextField
examples used property names the v0.9 catalog does not define
(for example selections instead of the required value), which the new
editor made visible. They now use the catalog's names.
- JSON fields such as accessibility stacked their name above a
  full-width box while every other property sat beside its control. They
  now use the same two columns, with the name aligned to the top of the
  taller field.
- The remove button's column is reserved on every row, so a control no
  longer changes width when a value is set or cleared.
- A required property the example does not set shows "Required, but
  this example doesn't set it." instead of an empty field that looks
  fine.
A catalog property typed as, e.g., ["string", "null"] now accepts any of the listed types. Moved here from a2ui-project#215 so the assistant PR no longer changes Gallery code.
…across the shell

The rebased Gallery logs its load, dispatch, and copy failures through a
tagged ErrorLogger instead of console, and its tests spy on ErrorLogger.
Since a2ui-project#232 the rendered preview and the JSON editor share one dockview
tab group, so the "Open in Composer" journey now waits for the preview
tab, as the shared-link journey does, before asserting on its iframe.
@jerelvelarde
jerelvelarde force-pushed the jerel/pr-catalog-reference branch from ebba70b to 33c372b Compare October 9, 2026 15:57
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 9, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 15, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 16, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
@jerelvelarde

Copy link
Copy Markdown
Contributor Author

Closing. Turned over to another team.

jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Oct 19, 2026
A renderer-owned Slack catalog (samples/react-slack-catalog, served on
port 3460) previews A2UI surfaces as Slack Block Kit messages and
exports the same validated Block Kit JSON, with no Slack credentials.

- 11 Slack components with Gallery examples, native TextField and
  date-only DateTimeInput controls with writable bindings, aligned
  tables, diagnostics for approximated layouts, and Block Kit export.
- A built-in Book a Car form as real canvas content.
- Catalog-aware Gemini/CopilotKit generation and refinement, plus a
  switchRenderer frontend tool; catalog responses from a detached or
  replaced renderer cannot overwrite the active catalog.
- Slack assets in local, GitHub Pages, and PR-preview builds.
- Browser journeys wait for the preview to settle before interacting,
  so a late render cannot reset a field mid-typing.

Built on a2ui-project#215 and independent of the Gallery redesign in a2ui-project#129; the
Gallery journey reads examples from main's Gallery.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants