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

🐛 Incorrect Success Modal and Navigation on Save/Publish Error for Proposal Edits #2338

Open
kneerose opened this issue Nov 6, 2024 · 0 comments
Labels
🐛 Bug Something isn't working 📜 Proposal Pillar

Comments

@kneerose
Copy link
Contributor

kneerose commented Nov 6, 2024

Area

Proposal Pillar

Domain

dev-sanchogov.tools

Which wallet were you using?

No response

Context

I attempted to edit an existing proposal by updating the link text. After exceeding 255 characters and attempting to save it as a draft or publish with the new edits, the UI displayed a "Proposal saved" message and navigated to the proposal details page. However, there was actually an error in updating and saving the draft, meaning the draft was not saved despite the success popup being shown. This indicates that even when saving as a draft or publishing with edits encounters an error, a success modal still appears.

Steps to reproduce

  1. Connect to the wallet.
  2. Create a new proposal.
  3. Edit the created proposal and add more than 255 characters to the link text.
  4. Attempt to save as draft or publish with new edits.
  5. Observe the "Proposal saved to drafts" modal on saving as draft.
  6. Observe navigation to the proposal details page on publishing with new edits withou any updates, instead of an error toast or popup.

Actual behavior

https://www.loom.com/share/d805e64a47bd46649aa351d43c041eef?sid=530f3903-bb0e-4b51-9853-b44c7f321630

Expected behavior

  • An error toast or popup should appear when an error occurs while saving or publishing a proposal with new edits.
  • The success modal should not display if there is an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working 📜 Proposal Pillar
Projects
Status: No status
Status: Backlog
Development

No branches or pull requests

2 participants