-
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
Feature/446 file card #450
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.
Leave some comments to improve small things.
src/sections/collection/datasets-list/file-card/FileCardHeader.tsx
Outdated
Show resolved
Hide resolved
src/sections/collection/datasets-list/file-card/FileCardInfo.tsx
Outdated
Show resolved
Hide resolved
src/sections/collection/datasets-list/file-card/FileCardInfo.tsx
Outdated
Show resolved
Hide resolved
src/sections/collection/datasets-list/file-card/FileCard.module.scss
Outdated
Show resolved
Hide resolved
src/sections/collection/datasets-list/file-card/FileCard.module.scss
Outdated
Show resolved
Hide resolved
src/sections/collection/datasets-list/file-card/FileCard.module.scss
Outdated
Show resolved
Hide resolved
Thanks @GermanSaracca, I made the requested changes, I just have a small question about the html change. |
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.
Thanks, just few more comments.
src/sections/collection/datasets-list/file-card/FileCard.module.scss
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.
Looking good !
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.
All stories look good! Merging.
What this PR does / why we need it:
FIleCard component for the search results on the Collection page
Which issue(s) this PR closes:
Closes #446
Special notes for your reviewer:
I created a new component FileCardIcon, to manage the styles needed for the FileCard, I thought this was simpler than sharing the FileCard component used in FilePreview, but open for feedback on that :)
Suggestions on how to test this:
npm run storybook
Review the FileCard Stories http://localhost:6006/?path=/story/sections-collection-page-filecard--default
Upload files into Dataverse and compare the FileCard to the UI in the JSF version of the Collection page.
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
JSF Version of FileCards example:
Is there a release notes update needed for this change?:
No
Additional documentation: