Skip to content

fix(access): place raw API toggle beside title - #399

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/access-raw-api-toggle-placement
Oct 26, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/access-raw-api-toggle-placement

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Move Access /access 「展开原始 API」 / Show raw API control next to the Native API title (left-aligned), instead of justify-between on the far right.
  • When collapsed, use HeroUI secondary (project has no primary button variant in use); when expanded, quieter ghost.
  • Sync internal/webui/static for CI; add bilingual changelog fragment.

Notes

  • UI-only placement/style change in RawApiPanel; no parallel Access pages, no deploy/release.
  • Do not merge from this PR unless reviewed.

Test plan

  • Open /access, confirm the Show raw API control sits beside the Native API heading (not far right).
  • Collapsed: secondary button is clearly visible; expanded: ghost hide control next to title.
  • Toggle still opens/closes the raw API panel and builder as before.
  • Narrow viewport: title + button wrap cleanly without stretching to the right edge.

@caigee-cmd caigee-cmd left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

UI change itself is fine: the Show raw API control belongs next to the Native API title, collapsed secondary / expanded ghost is the right contrast, and the bilingual fragment matches.

Do not merge from this head. It conflicts with main after #400 — the only real source change is a few lines in RawApiPanel.tsx, the rest is a stale hashed internal/webui/static pair.

Please rebase onto current main, run cd frontend && npm run sync, and push, or close this and open a clean PR with just the panel + changelog + freshly synced static assets.

@caigee-cmd caigee-cmd left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Architecture: this is console UI only (frontend + synced internal/webui/static). No gateway/executor/runtime/store movement, HeroUI-only, bilingual fragment present. The remaining rule is the embed contract: do not merge a stale hashed JS/CSS pair. Rebase main and cd frontend && npm run sync before landing.

@caigee-cmd
caigee-cmd force-pushed the fix/access-raw-api-toggle-placement branch from c1d75a6 to 1521a83 Compare October 26, 2026 23:34
Rebased onto main after #403; regenerated webui static assets.
@caigee-cmd
caigee-cmd force-pushed the fix/access-raw-api-toggle-placement branch from 1521a83 to 96e5e98 Compare October 26, 2026 23:42
@caigee-cmd
caigee-cmd merged commit 4f35c51 into main Oct 26, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the fix/access-raw-api-toggle-placement branch October 26, 2026 23:46
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.

1 participant