Repository navigation
Conversation
Use the new VButton variant/label API and VModal before-close guard, and require Halo 2.28.
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
Adapt the workbench UI to
@halo-dev/components2.28 so its controls share Console behavior and geometry instead of local reimplementations.Segmented controls
Replaced the hand-rolled
ApbSegmentedwithVSegmentedControl(size="sm"):Icon buttons
Replaced every icon-only native button with
VButton; icon-only content now gets the square layout automatically:labelnow supplies both the accessible name and the hover tooltip, so the duplicatedv-tooltip+aria-labelpairs are gone. Sizes follow the component scale:sm(32px) for toolbar actions,xs(24px) for inline dismiss controls, andshape="circle"for the 32px chat actions.The
apb-icon-btnUnoCSS shortcut is removed, andDESIGN.mddocuments the new component usage and sizing.Dependency note
VSegmentedControland thevariant/shape/label/asprops are not part of the released@halo-dev/components2.26 yet, so this branch pins the preview buildhttps://pkg.pr.new/@halo-dev/components@e8f29e0. It must be replaced with the released version before merging; the PR is opened as a draft for that reason.Test note
The preview build renders
VModalthrough reka-ui dialogs, which recurse under jsdom.import-page.spec.tsstubsVModalwhile keeping the DOM contract that the close-guard tests assert, so the suite is not blocked by the upstream issue. Browser behavior is unaffected.Screenshots
The screenshots are in Chinese because this plugin UI has no English copy yet.
Testing
pnpm type-checkpnpm test:unit --run: the touched specs pass (import-page23 tests,history-panel+workspace27 tests, and the chat/canvas suites)./gradlew assemblelabeltooltip works as documented