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

fix: make proposition power query reactive on enabled flag #1177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sekhmet
Copy link
Member

@Sekhmet Sekhmet commented Feb 12, 2025

Summary

Previously proposition query wasn't enabled reactively. If I refresh editor page with ArgentX it would end up as always pending (with submit button loading).

Additionally handled case where it would before show as Publish button, then loading indicator and Publish button again as it wouldn't show loading indicator if there was no account (and it might be on refresh) by extracting it into new computed value and showing loading indicator if auth is loading.

How to test

  1. Connect with ArgentX.
  2. Go to editor.
  3. Refresh page.
  4. It has short loading indicator (for authLoading and proposition power loading step), but then turns into Publish button.

@Sekhmet Sekhmet requested review from wa0x6e and bonustrack February 12, 2025 15:32
@bonustrack
Copy link
Member

Hum, I can't see any difference in behavior from current deployed UI version

@Sekhmet
Copy link
Member Author

Sekhmet commented Feb 12, 2025

Are you testing with ArgentX

@Sekhmet
Copy link
Member Author

Sekhmet commented Feb 12, 2025

On snapshot.box, logged in with ArgentX: https://snapshot.box/#/sn:0x059421b887fb3b7102653763f7ce8896c5976dc536be26502fd8ed71e87a239e/create/f665o

Screen.Recording.2025-02-12.at.20.53.47.mov

With this PR:

Screen.Recording.2025-02-12.at.20.55.39.mov

@bonustrack
Copy link
Member

Ok weird I can't reproduce, maybe @ChaituVR or @wa0x6e

@wa0x6e
Copy link
Contributor

wa0x6e commented Feb 13, 2025

I can not reproduce either.

On master, the publish button is in the expected state after refresh (grey when no propositon power, enabled otherwise if title is filled)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants