-
Notifications
You must be signed in to change notification settings - Fork 2
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
task/WG-253 - File Listing Component using Chonky #230
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM! Spoke with Shayan in DMs. There's a bug related to window size/media queries that caused a side effect for this PR. Previously, we were using the medium modal size, but here we're using XL. We will need to change the CSS rules in CreateMapModal to satisfy the new media queries/device sizes.
Does Chonky allow us to customize the icons and fade styles? Can we customize the selection pattern/image?
Master should have a fix for the .hazmapper overflow issue--so I think that will be resolved whenever you resolve conflicts and merge master with this branch |
a8c843b
to
559fcef
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.
Looks great. left two comments but we could do those as follow on work.
path: | ||
path || (selectedSystem?.id === myDataSystem?.id ? user?.username : ''), | ||
offset: '0', | ||
limit: '100', |
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.
do we need a follow on ticket for pagination?
? file.name.substring(file.name.lastIndexOf('.') + 1) | ||
: undefined, | ||
icon: file.type === 'dir' ? 'folder' : 'file', | ||
selectable: |
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.
'selectable' is set to false for the files in CreateMapModal, but it's kinda hard to tell because of the styling. Maybe we can tweak that to make it clearer? Or in the short term, we could try using isHidden
or just filter them out ourselves.
Overview:
Added a File Listing component using the Chonky library. Added this component to the Create Map modal with some dummy file data
PR Status:
Related Jira tickets:
Summary of Changes:
Testing Steps:
UI Photos:
Notes:
TODO: