豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

ref(dashboards): reorder primary actions#113443

Open
JonasBa wants to merge 5 commits intomasterfrom
jb/de-1112
Open

ref(dashboards): reorder primary actions#113443
JonasBa wants to merge 5 commits intomasterfrom
jb/de-1112

Conversation

@JonasBa
Copy link
Copy Markdown
Member

@JonasBa JonasBa commented Apr 20, 2026

Reorder dashboard buttons in page-frame UI to Star | Edit | Editors | Create Widget

JonasBa and others added 2 commits April 20, 2026 08:59
In the page frame layout, the Edit button now appears before the
Editors (edit access) selector. Previously, the order placed the Edit
button after the Editors selector, separating it from the Add Widget
button without a clear grouping rationale. The new order (Edit →
Editors → Star → Add Widget) keeps editing-intent actions together.
Both Edit and Editors now use tooltipProps for consistent tooltip
behavior in the page frame path.

Refs DE-1112
Co-Authored-By: Claude <noreply@anthropic.com>
…eEditButton

Use the useHasPageFrameFeature hook directly in Controls instead of
accepting it as a prop from detail.tsx. Remove the renderPageFrameEditButton
helper and inline its JSX at the call site.

Co-Authored-By: Claude <noreply@anthropic.com>
@JonasBa JonasBa requested a review from a team as a code owner April 20, 2026 16:13
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 20, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 20, 2026
…n bar

Co-Authored-By: Claude <noreply@anthropic.com>
Comment thread static/app/views/dashboards/controls.tsx Outdated
The EditAccessSelector component already has its own tooltip wrapper with
conditional disabled logic. Wrapping it in an additional tooltip in the
hasPageFrameFeature branch created nested tooltips that would both fire
on hover, causing overlapping or flickering tooltip UI.

Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
Comment thread static/app/views/dashboards/controls.tsx Outdated
Both branches of the hasPageFrameFeature ternary rendered identical
EditAccessSelector components with the same props. Simplified by
removing the unnecessary conditional and rendering the component
directly.

Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d8e9b29. Configure here.

Comment thread static/app/views/dashboards/controls.tsx
Comment thread static/app/views/dashboards/controls.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants