Skip to content
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

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

ReidyT
Copy link
Contributor

@ReidyT ReidyT commented Jul 19, 2024

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

  • update ReadyToPublish state to be more like unpublished
  • add unpublish button in the outdated state

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 the Unpublished state for better user experience.

Taking advantage of the backend change in graasp/graasp#1226 where the state is now returned as Unpublished instead of Outdated 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 from ReadyToPublish to Unpublished 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

@ReidyT ReidyT self-assigned this Jul 19, 2024
@ReidyT ReidyT linked an issue Jul 19, 2024 that may be closed by this pull request
@ReidyT ReidyT requested review from pyphilia and spaenleh July 19, 2024 12:43
@ReidyT ReidyT marked this pull request as ready for review July 19, 2024 12:43
Copy link
Contributor

@pyphilia pyphilia left a 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!

Copy link
Member

@spaenleh spaenleh left a 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 !

@ReidyT
Copy link
Contributor Author

ReidyT commented Jul 23, 2024

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).

@ReidyT ReidyT force-pushed the 1296-add-unpublish-button-in-outdated branch from a4b5ba6 to d9f6414 Compare July 25, 2024 11:58
@ReidyT ReidyT changed the title feat: add unpublish button in outdated state feat: remove outdated state from the frontend Jul 25, 2024
@ReidyT ReidyT force-pushed the 1296-add-unpublish-button-in-outdated branch from 626b550 to bb3105c Compare July 25, 2024 13:33
Copy link

@ReidyT ReidyT added this pull request to the merge queue Jul 25, 2024
Merged via the queue into main with commit 184affd Jul 25, 2024
4 checks passed
@ReidyT ReidyT deleted the 1296-add-unpublish-button-in-outdated branch July 25, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unpublish button to avoid to validate in between
3 participants