Skip to content

Conversation

filiptronicek
Copy link
Member

Description

Improved menu items - not showing Insights for non-owners Better "lacking permission" error
image image

Related Issue(s)

Fixes CLC-1141

How to test

https://ft-insightb31360f5bd.preview.gitpod-dev.com/insights

/hold

…for non-owners

Tool: gitpod/catfood.gitpod.cloud
@@ -71,7 +75,11 @@ export const Insights = () => {

{errorMessage && (
<Alert type="error" className="mt-4">
{errorMessage instanceof Error ? errorMessage.message : "An error occurred."}
{isLackingPermissions
? "You don't have permission to access this organization's insights."
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
? "You don't have permission to access this organization's insights."
? "You don't have `owner` permission to access this organization's insights."

Copy link
Member

Choose a reason for hiding this comment

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

Mentioning the role makes this information for tangible and actionable.

Copy link
Member Author

@filiptronicek filiptronicek Feb 10, 2025

Choose a reason for hiding this comment

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

Sounds great! Gave it a bit more formatting pizzaz to match other places in the dashboard and pushed as b0f3011 (#20593).

image

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Left a copy suggestion, otherwise LGTM ✔️

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
Tool: gitpod/catfood.gitpod.cloud
@filiptronicek filiptronicek self-assigned this Feb 10, 2025
Tool: gitpod/catfood.gitpod.cloud
@roboquat roboquat merged commit cdd79f3 into main Feb 10, 2025
18 checks passed
@roboquat roboquat deleted the ft/insights-page-fixes branch February 10, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants