-
Notifications
You must be signed in to change notification settings - Fork 47
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
Log reviewer response #350
base: main
Are you sure you want to change the base?
Conversation
@MrRob100 After code improvements I will also ask you to add it to storybook, so we have that modal snapshoted, which helps with awarness that such modal do exist and it also helps with preventing some regressions over time as its screenshots are always compared to baseline. It will require following
One of the best examples is ReviewerSubmissionPage.stories, as that also have modals that are being opened via play function:
Happy to give more guidance on mattermost for storybook if needed, there is just couple of things to watch out so the modal gets properly screenshoted. |
I have redone this using the pkp-form component. In order to make the form footer sit on the bottom of the modal, I have had to add some styling to the Form component. I have checked and it doesn’t seem to have knock-on effects on the other forms. Also, there doesn’t seem to be support for a cancel button in the pkp-form component which is why I have left that out. I can alter it to allow for one if we like. Thoughts @jardakotesovec @Devika008 |
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.
Here is example for storybook - 815ea2a
This ensures that if you open that story it opens the modal - and as result it gets automatically screenshotted in CI to ensure it looks good over time.
You can see it in storybook (cd lib/ui-library && npm run storybook).
Please just refine it a bit with some description. Otherwise I think one simple story suffice.
@MrRob100 Thanks! Looking good, just need to do some testing. Would you be able to rebase it, so its up to date with main branches? Having difficulties to run it. There has been lots of merged lots of changes recently. |
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 for the storybook addition. Just couple small tweaks! And also make sure it does not include changes outside of this work. Thank you!
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 for the updates, looks great!
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 great! I think just make sure that the data update works after suggested change and should be ready for merging (at least the ui-part).
3390c82
to
7f67e19
Compare
modal store prepared to take props cleared commented out code close modal in success of ajax call modal form validation working removed unused imports vue store added for component vue modal added to storybook npm run format ran updated storybook mdx reverted unintended changes linting ran using useForm composable which contains updateForm instead of writing one legacy options removed on vue modal attempts to put log response button at the bottom reverted targeting children of just vueModal to get the footer button on the bottom while not affecting other forms reverted css changes on modal. Submit button will be off the bottom for now added new vue modal for logging reviewer response finished callback used when form submitted and API URL built more robustly changed path again to match new location of vue modal fixed path to table components reverted incorrect formatting vue modal changes pulled in modal updates pulled in. Modal3 closing on update modal functions working and closing changes to Form component reverted modal wrapper changes reverted modal store changes pulled in
34d0c69
to
83dedb9
Compare
issue pkp/pkp-lib#9893