Skip to content

layout(shell): Make Data Model default tab and reduce debug height - #231

Merged
jgindin merged 3 commits into
mainfrom
fix-layout
Sep 24, 2026
Merged

jgindin merged 3 commits into
mainfrom
fix-layout

Conversation

@jgindin

@jgindin jgindin commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Set Data Model as the active default tab in the workspace debug drawer by configuring inactive flags on Events, Errors, and Raw Messages.

Split the debug drawer below Rendered Preview before adding the JSON Editor so the debug drawer spans across the full width below both preview and editor panels.

Balance the upper row with an equal 50/50 width split between Rendered A2UI Preview and A2UI JSON Editor.
Reduce initial debug drawer height to 28% of container height and enforce Assistant width to not exceed 1/3 of the container width. Add desktop fallback constants (1280x800) and JSDoc documentation. Add unit tests verifying Data Model default selection, debug drawer height ratio, spanning width, and 50/50 preview/editor split.

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

@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 initial layout proportions and constraints for the ComposerDockview service, ensuring panels like the Gemini Assistant, Rendered Preview, JSON Editor, and Debug Drawer are initialized with realistic dimensions. It also adds comprehensive unit tests to verify these layout configurations. The review feedback highlights a few areas for improvement: updating JSDoc comments that still describe the old tabbed layout instead of the new side-by-side split, removing redundant default parameter fallbacks in the private buildDockviewLayout method, eliminating a premature call to enforceInitialProportions before the layout is initialized, and wrapping test spies in a try...finally block to prevent test pollution in case of assertion failures.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

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

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

@suyangw-g suyangw-g 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 Summary (PR #231)

Reviewed against Google TypeScript/Angular readability (go/tsstyle), lifecycle invariants, and layout constraints. Note also that PR #232 (shared-preview-editor-layout) is stacked directly on top of this branch's commits (4c17ae6, 836eddd) and replaces the 50/50 side-by-side split here with a shared tab group (direction: 'within').

See inline comments for P1 findings.

@jgindin jgindin mentioned this pull request Sep 24, 2026
4 of 7 tasks
Set Data Model as the active default tab in the workspace debug drawer
by configuring inactive flags on Events, Errors, and Raw Messages.

Split the debug drawer below Rendered Preview before adding the JSON
Editor so the debug drawer spans across the full width below both
preview and editor panels.
Balance the upper row with an equal 50/50 width split between Rendered
A2UI Preview and A2UI JSON Editor.
Reduce initial debug drawer height to 28% of container height and
enforce Assistant width to not exceed 1/3 of the container width.
Add desktop fallback constants (1280x800) and JSDoc documentation.
Add unit tests verifying Data Model default selection, debug drawer
height ratio, spanning width, and 50/50 preview/editor split.
- Update class and method JSDocs to describe side-by-side 50/50 split
  layout instead of tabbed layout.
- Remove redundant parameter defaults in buildDockviewLayout.
- Remove premature enforceInitialProportions call before layout pass.
- Wrap HTMLElement prototype spies in try-finally in workspace tests
  to avoid spy leakage on assertion failures.
- Guard onDidActivePanelChange and onDidLayoutChange until initialization
  completes to prevent spurious GA4 telemetry and early persistence.
- Remove redundant dataModelPanel setActive call in initial layout.
- Add minimumWidth and minimumHeight constraints to A2UI JSON Editor.
- Capture and restore Storage.prototype.getItem spy in finally block.
@jgindin
jgindin merged commit 62f6fea into main Sep 24, 2026
15 checks passed
@jgindin
jgindin deleted the fix-layout branch September 24, 2026 18:29
jerelvelarde added a commit to jerelvelarde/a2ui-composer that referenced this pull request Sep 24, 2026
…derer

The catalog-aware system prompt now ends with main's custom instructions
(a2ui-project#233), the Assistant panel takes main's width settings (a2ui-project#231), and the
README drops the removed MCP sample while keeping the Slack sample.
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.

2 participants