-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
NestedFolders: Support Shared with me folder for showing items you've been granted access to #80141
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
public/app/features/browse-dashboards/components/DashboardsTree.tsx
Outdated
Show resolved
Hide resolved
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.
couple of questions:
- what happens when there's nothing in
shared with me
? does the section just not display at all? - looks like you're able to move/delete items in the shared with me section. what happens if you move an item in
shared with me
to one of your normal folders, does it disappear fromshared with me
and just appear in the normal part of the dashboard list?
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
6d6db50
to
316fc75
Compare
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.
code lgtm, nice job 🥳
gonna tentatively approve, but there's some commented out code to remove and i just wanna redeploy the ephemeral instance and make sure nothing's borked itself in the refactors 😂
} | ||
} | ||
|
||
// export function getIconForItem(itemOrKind: string | DashboardViewItemWithUIItems, isOpen?: boolean): IconName { |
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.
commented out code can go 💀
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.
UGH 😭
/deploy-to-hg |
|
|
4838385
to
c263ceb
Compare
… been granted access to (grafana#80141) * start shared with me frontend tweaks * prevent linking to sharedwithme folder * tests * make divider take up 0 height * Prevent sharedwithme from being selected * test git push * pr feedback * prevent setting url for sharedwithme * split iconForItem/kind functions * Hide sharedwithme in nested folder picker * fix test fixture
Updates the Browse Dashboards UI with special presentation for the Shared with me pseudo-folder.
users-alt
iconVariableSizeList
fromreact-window
so the divider UI tree item can be rendered with a height of 0Part of #78752