Skip to content

fix(data-forwarding): Disable CTAs for users without org:write permission#107000

Merged
leeandher merged 3 commits intomasterfrom
leander/df-last-changes
Jan 26, 2026
Merged

fix(data-forwarding): Disable CTAs for users without org:write permission#107000
leeandher merged 3 commits intomasterfrom
leander/df-last-changes

Conversation

@leeandher
Copy link
Member

@leeandher leeandher commented Jan 26, 2026

access is a bit cleaner, image is constrained and rather than hide the button entirely, just disable it so users know they need more perms

before:

image

after:

image

…sion

The Access component was not properly gating buttons for users without
org:write permission. Use the render prop pattern to check hasAccess
and disable buttons with explanatory tooltips.

Also rename the disabled prop to hasFeature for clearer semantics and
adjust onboarding image styling.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 26, 2026
@leeandher leeandher marked this pull request as ready for review January 26, 2026 21:21
@leeandher leeandher requested a review from a team as a code owner January 26, 2026 21:21
Copy link
Member

@malwilley malwilley left a comment

Choose a reason for hiding this comment

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

Looks good but agree that I'd prefer small functions with early returns rather than the nested ternaries

@leeandher
Copy link
Member Author

leeandher commented Jan 26, 2026

@malwilley Looks good but agree that I'd prefer small functions with early returns rather than the nested ternaries

yeah on second thought i cant merge this like this, it looks horrendous -- will fix

Move duplicate tooltip logic from onboarding and index components into
a shared getCreateTooltip helper function in forms.tsx. This reduces
duplication and ensures consistent messaging across the UI.
Copy link
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 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Show the feature unavailable message before the access denied message,
since feature availability is a higher-level constraint than user
permissions.
@leeandher leeandher merged commit 2687b02 into master Jan 26, 2026
53 checks passed
@leeandher leeandher deleted the leander/df-last-changes branch January 26, 2026 22:17
JonasBa pushed a commit that referenced this pull request Jan 27, 2026
…sion (#107000)

access is a bit cleaner, image is constrained and rather than hide the
button entirely, just disable it so users know they need more perms

before:

<img width="1211" height="652" alt="image"
src="https://github.com/user-attachments/assets/d93736e5-92a0-428c-a0f1-428f93d85789"
/>


after: 

<img width="1156" height="487" alt="image"
src="https://github.com/user-attachments/assets/c4f7402a-8eba-4607-ae0d-6d6f75ed5e33"
/>
priscilawebdev pushed a commit that referenced this pull request Feb 2, 2026
…sion (#107000)

access is a bit cleaner, image is constrained and rather than hide the
button entirely, just disable it so users know they need more perms

before:

<img width="1211" height="652" alt="image"
src="https://github.com/user-attachments/assets/d93736e5-92a0-428c-a0f1-428f93d85789"
/>


after: 

<img width="1156" height="487" alt="image"
src="https://github.com/user-attachments/assets/c4f7402a-8eba-4607-ae0d-6d6f75ed5e33"
/>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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