-
Notifications
You must be signed in to change notification settings - Fork 16
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
Grid view #999
Grid view #999
Conversation
Your Render PR Server URL is https://files-ui-dev-pr-999.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c25dpqm1aaa5a1c70jl0. |
Your Render PR Server URL is https://files-landing-dev-pr-999.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c25dpr61aaa5a1c70k5g. |
Your Render PR Server URL is https://chainsafex-dev-pr-999.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c25dprm1aaa5a1c70kag. |
packages/files-ui/src/Components/Modules/FileBrowsers/views/FilesTable.view.tsx
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.
Looks great @tanmoyAtb
Only things personally is to set to Decending order, and personally I'd have the grid icons a lot smaller, 4 on a 1080 screen per row seems a bit large, maybe 8 per row?
@sweetpea22 What do you say to having the first item be a Up one folder
button?
packages/files-ui/src/Components/Modules/FileBrowsers/views/FilesTable.view.tsx
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.
Nice!
This is extending already huge files. I wonder if we can break this up a little into 2 dedicated components for each view?
I've submitted a couple nits. I generally find the way we write ternary operations hard to read (cf my comment in Slack), but this can be changed across the board in a linting PR.
Something for @sweetpea22 maybe, the button to switch to grid/row is looking like an action button (new folder, delete files etc, although it's different). What do you think about having it super simple, without border?
This is not directly related to this PR, but I realized when using the grid view that the behavior with files selection is surprising. When you click on a file, and then click on another, you don't expect both to be selected, just like on Desktop (I checked Google drive it is also unselecting the previous file while selecting the new one), not sure if I made myself clear. This is maybe something we want to change and allow multiselect only when explicitly clicking on the checkbox.
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItemRow.tsx
Outdated
Show resolved
Hide resolved
…leSystemItemRow.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
Yup I also felt, we could have more items in a row. |
I have split the |
Awesome stuff thanks Tanmoy. I think another issue to refactor some of the view stuff will definitely help. Lets schedule that in for after the drive context refactor lands and we will see if we can optimise things a bit more then. |
Your Render PR Server URL is https://files-ui-stage-pr-999.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c28misu31hs1re75v5b0. |
Really great catch @sweetpea22 . I was able to fix spacing issue by having a max width on the grid item, so it doesn't spread around. In my mind, the maximum allowed filename length looks good enough now |
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.
Found some little things
I think we should definitely take a decision on the file selection soon
(1) remove this click to add to selection by default
(2) remove this click to add to selection only for grid view
I'm leaning toward (1)
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItem/FileSystemItem.tsx
Outdated
Show resolved
Hide resolved
...ges/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItem/FileSystemGridItem.tsx
Outdated
Show resolved
Hide resolved
…leSystemItem/FileSystemItem.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
…leSystemItem/FileSystemGridItem.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
So I have added the cursor, and fixed the grid breaking issues. |
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.
Looks great! While I was here, I added the french translation
Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
closes #840
I feel comfortable with how it feels overall,
except how the selection is working in Grid view.