Skip to content

Conversation

@ArnavK-09
Copy link
Collaborator

No description provided.

ArnavK-09 and others added 7 commits September 27, 2025 20:03
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>
Copy link
Contributor

@seveibar seveibar left a 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

@github-actions
Copy link

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 30, 2025
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

This PR was closed because it has been inactive for 1 day since being marked as stale.

@github-actions github-actions bot closed this Oct 1, 2025
@ArnavK-09 ArnavK-09 reopened this Oct 1, 2025
@github-actions github-actions bot removed the stale label Oct 2, 2025
}: { orgId?: string; orgName?: string; github_handle?: string }) => {
const axios = useAxios()

const orgQuery = useQuery<PublicOrgSchema, Error & { status: number }>(
Copy link
Contributor

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

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

This comment came from an experimental review—please leave feedback if it was helpful/unhelpful. Learn more about experimental comments here.

@ArnavK-09 ArnavK-09 merged commit 65aa29f into main Oct 3, 2025
4 of 5 checks passed
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.

3 participants