-
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
135 - Files table UI [2/2] - File Action Buttons and File Level Messages #162
135 - Files table UI [2/2] - File Action Buttons and File Level Messages #162
Conversation
…b.com/IQSS/dataverse-frontend into feature/139-files-table-file-action-buttons-ui
…ps://github.com/IQSS/dataverse-frontend into feature/139-files-table-file-action-buttons-ui
@GPortas I added the requested changes, please let me know if I missed something |
I added a commit, you can check all the different messages in Storybook at http://localhost:6006/?path=/story/sections-dataset-page-datasetfiles-filestable-fileactionscell-fileinfomessages-fileinfomessages--ingest-in-progress |
Thanks @MellyGray. Looks good. Only a minor detail. I tested the new Storybook changes and found the following: In Storybook, the width of the file info message with tooltip appears smaller than the one without a tooltip (that occupies the width of the screen). Not sure if this is relevant, but just in case. |
<Modal.Body> | ||
<p className={styles.paragraph}> | ||
<ExclamationCircleFill /> | ||
This file has already been deleted (or replaced) in the current version. It may not be |
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.
This should be moved to locales, for i18n.
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.
I forgot! Thanks! I added a commit, can you check it again?
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 good. Thanks!
was unsuccessful.{' '} | ||
{ingest.reportMessage | ||
? ingest.reportMessage | ||
: 'Ingest failed. No further information is available.'} |
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.
Same for this component. Info messages should come from locales.
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!
@MellyGray Unfortunately, I'm seeing the same error and blank page. |
@MellyGray I'm getting blank screens with this but with many console errors. We've seen this and deleting the node dir seemed to help before but now not helping. |
…into feature/139-files-table-file-action-buttons-ui
I haven't change anything since yesterday, how is this possible 😢 We can try again today to troubleshoot this in a zoom call before the standup, I'm available from 9-11h |
…tion-buttons-ui 135 - Files table UI [2/2] - File Action Buttons and File Level Messages
What this PR does / why we need it:
This PR adds the File Actions Buttons of the Files Table as well as some File Level Messages. (All download options not included since they are included in another UI issue #63 )
This is only the UI, no backend connected yet.
Which issue(s) this PR closes:
Special notes for your reviewer:
This is only the UI work, so some variables for the conditional render have been hardcoded until we can get them from the js-dataverse module.
Changes
a. ButtonGroup now accepts HTMLAttributes
b. Type prop added to the Button component
c. Disabled prop added to the DropdownButtonItem component
d. New DropdownHeader component added to the design system
a. EditFilesMenu component at the Header of the column
b. AccessFileMenu at cell level to check the access status of the file
c. RequestAccessModal, display work only, since we are not including write actions in this Milestone 2.
d. File Options menu, display work only, since we are not including write actions in this Milestone 2.
e. FileInfoMessages
All file actions not included in this PR are not considered for the MVP.
Suggestions on how to test this:
npm i
cd packages/design-system && npm run build
cd ../../
npm run storybook
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Is there a release notes update needed for this change?:
File Action Buttons added to the Files Table UI
Additional documentation: