-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: remove outdated state from the frontend #1367
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.
Thanks for all the changes!
- I'm actually wondering whether
validate
is still clear as a word on its own. Maybe we should be clearer like "Run verifications" (not good suggestion). Do you have any ideas? Or maybe an info icon to say which verifications we do. - Plus it's not that clear that clicking on "validate" will actually publish the item. Maybe it should be rather "Validate & Publish"? Actually I think I'm okay with a button "publish" and have the status be "verification in progress" that will then become green once the validation is done.
- I think it's a bit weird the "unpublish" is sometimes on the left or the right of the "contained" button. Maybe we should have the "unpublish" action be separated, like "destructive settings" of github?
Otherwise I'm all good with the code!
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 I also agree with the comments from Kim !
After discussing with @pyphilia @spaenleh, the state outdate is not useful now because it doesn't check the children and nothing happen in the library. This state can be removed for now. We should think about a better way to handle updates (like revalidating at each change or freezing the published item and asking to publish the changes in the library, kind of Snapshot pattern). |
a4b5ba6
to
d9f6414
Compare
626b550
to
bb3105c
Compare
Quality Gate passedIssues Measures |
Changes
After a discussion, the state outdate is not useful now because it doesn't check the children and nothing happen in the library. This state can be removed for now. We should think about a better way to handle updates (like revalidating at each change or freezing the published item and asking to publish the changes in the library, kind of Snapshot pattern).
Outdated issue
I've added an "Unpublish" button to the Outdated state to provide more flexibility. Additionally, I've updated the
ReadyToPublish
state to more closely resemble theUnpublished
state for better user experience.Taking advantage of the backend change in graasp/graasp#1226 where the state is now returned as
Unpublished
instead ofOutdated
for oudated items removed from the Library, I've also updated the visual appearance of the ReadyToPublish state.The previous
ReadyToPublish
look could be misleading if the item had been unpublished (video 1). Furthermore, the transition fromReadyToPublish
toUnpublished
can be surprising (video 2).The new ReadyToPublish design (video 3) offers a more consistent and intuitive user experience by aligning it closer to the Unpublished state. This change reduces potential user frustration and improves overall clarity.
demo1.mov
demo2.mov
demo3.mov