-
Notifications
You must be signed in to change notification settings - Fork 87
feat(ImportantFilesView): org managers can do tasks #1728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Only owners can see the edit button when the active tab is a file.
…d permissions - Integrated package data into ImportantFilesView for AI description and usage instructions. - Updated permission checks to determine if the user can manage the package based on organization permissions or ownership. - Adjusted rendering logic to conditionally display AI review and edit buttons based on the new permission checks. - Modified useOrganization hook to accept GitHub handle as an alternative identifier for organizations.
….tsx Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can manage org is not can manage package
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
|
This PR was closed because it has been inactive for 1 day since being marked as stale. |
| }: { orgId?: string; orgName?: string; github_handle?: string }) => { | ||
| const axios = useAxios() | ||
|
|
||
| const orgQuery = useQuery<PublicOrgSchema, Error & { status: number }>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query key should include the github_handle parameter to maintain cache consistency. Currently, the key only includes orgId or orgName, but not the newly added parameter. Consider updating it to:
["orgs", "get", orgId || orgName || github_handle]This ensures that queries with different GitHub handles will be properly cached as separate entries, preventing potential stale data issues when switching between different parameter combinations.
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
No description provided.