Skip to content

Fix bugs and UX problems in recent community, admin, wallet and sign-in work - #131

Merged
Mistium merged 16 commits into
developfrom
ux-bug-pass-oct
Oct 8, 2026
Merged

Mistium merged 16 commits into
developfrom
ux-bug-pass-oct

Conversation

@Mistium

@Mistium Mistium commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

A bug and UX pass over the parts of the community site and editor that changed most recently: the project and profile pages, comments, challenges, the admin user page, the wallet, Rotur sign-in and chat signing. Each fix was checked against the code (and the API on main where it matters) before changing anything.

Project and profile pages

  • Turning comments off, changing visibility or buying a project no longer leaves the page stuck on "Loading…" until a reload. The page set its load context to the wrong value after these actions.
  • A reaction from someone else no longer wipes a title the owner is typing.
  • Saving a project straight after signing in can no longer crash the page or flip the saved state the wrong way.
  • Turning comments off on your own profile updates in place instead of blanking the whole page.
  • The profile admin panel now clears when you move to another user, and a moderation action that finishes after you leave can't write the old user's data onto the new page.

Comments

  • Searching comments no longer retries every 250 ms forever when the full comment list fails to load.
  • A failed post, reply or delete now shows its error in the box it came from, not in whichever composer is open.
  • With comments off and none posted, the thread no longer says "Be the first to leave a comment."

Challenges

  • When a phase ends while the page is open (for example voting closing), the challenge reloads so ratings and results appear without a refresh.
  • A failed reload after a vote or score shows an inline error instead of replacing the page with "Could not load this space".
  • Judges keep unsaved scores when they switch tabs, and a saved score no longer flickers back to the old values while the page reloads.
  • Publishing results is disabled while submissions are open, and the dialog warns that publishing early closes voting and judging.
  • Hosts see results in ranked order even when some entries are loaded separately.

Admin user page

  • Banning or suspending asks for confirmation first. Apply shows a busy state and is disabled when nothing has changed, and the reason clears after it is used.
  • Actions now refresh the page even when it was opened from a lowercase name or a Rotur ID.
  • A failed message keeps its draft, double clicks don't send twice, and results from one user's action no longer land on another user's page.
  • The delete dialog says the project moves to the owner's trash (which is what the API does), not that it is deleted permanently.
  • Relative times no longer read "just now ago", and in other languages "ago" no longer appears twice.

Wallet

  • Claiming daily credits refreshes the balance in place instead of clearing the activity list.
  • "You can claim again in Xh" now counts down, and the button turns back on when the wait is over.
  • "Show my balance" shows an error if the Rotur permission step fails, instead of doing nothing.

Rotur sign-in and chat

  • A token that lacks a permission ("Token lacks permission") no longer shows the banned screen. A real app ban from Rotur is no longer skipped by falling back to the old validator key.
  • Refreshing a session keeps the granted scopes and the refresh token when Rotur leaves them out of the response. A session with no refresh token signs out when it expires instead of staying signed in with a dead token. A revoked token (invalid_token or a 401) ends the session instead of retrying every 30 seconds.
  • The blank sign-in popup closes if PKCE can't start, for example on a non-secure origin.
  • Rotur write actions stop with a clear message when the user declines the permission, instead of sending the request anyway.
  • "Turn on signing" in chat shows an error when it fails. A rate limit or expired token while registering the signing key no longer turns signing off for the rest of the visit, and a failed signature check is no longer cached until reload.

Screenshots

Turning comments off as the owner, before: the whole page drops to the loading screen.
Before

After: the page stays put and only the comment area changes.
After

Choosing "banned" on the admin user page now asks for confirmation first.
Ban confirmation

Second pass

Translations

  • Sentences that were glued together from fragments ("by" + a user link, "Winning entry by", "invited you to judge this challenge.") are now single translatable sentences. The community translator gains rich(), which puts links inside a translated sentence in whatever word order the language uses. The extractor picks up communityRich calls.
  • Text that was shown in English regardless of locale now goes through translation: the project reaction and save labels, the comment disabled reasons, "Last played …" on profiles, the challenge error fallbacks and tab label, the space confirmation dialogs, and the admin standing, report and session labels (with a proper plural for active sessions).
  • "Played … ago" no longer doubles "ago" in languages whose relative time already includes it.

Challenges

  • The page now treats the server's phase as the source of truth and uses the local clock only to decide when to check again (backing off up to every 10 minutes). A clock that runs fast no longer opens voting or judging early, so votes and scores stop failing with "not open".
  • A judge's own entry is left out of their judging queue. The API now refuses that score too (Stop judges scoring their own challenge entry api#44).
  • Pressing "Leave challenge" after submitting explains that you need to remove the submission first, instead of sending a request that fails.
  • Star ratings and the 1 to 10 score scales work as radio groups from the keyboard: arrow keys, Home and End, and one Tab stop per group.

Admin, wallet, sign-in

  • The admin user list and the Bans section refresh after an action on a user's page.
  • If Rotur hides an account's balance from MistWarp, the wallet says so instead of showing a "Show my balance" button that loops. Transactions with no time go under "Date unknown" instead of 1 January 1970.
  • If a full-page (redirect) sign-in fails, the error now shows after the page reloads, on the site and in the editor, instead of leaving the user signed out with no message.
  • Comment counts are worked out outside React state updaters, so they can't double when React runs an updater twice.
  • The sandboxed project player no longer logs an error about custom themes it can't read.

Not changed: the wallet's MistWarp-only filter relies on Rotur tagging MistWarp payments with the provider app-mistwarp (from #127). Rotur's docs only mention provider on purchases, and I couldn't check the server, so whether creator payouts carry that tag still needs confirming with real data.

Second pass screenshots

A judge whose only entry is their own gets an explanation instead of a queue with their entry in it.
Judging queue without own entry

Pressing "Leave challenge" after submitting explains what to do first.
Leave challenge after submitting

The wallet when Rotur hides the balance.
Hidden balance

Checks

pnpm run lint, both i18n checks, check:community-css, deps:check, test:unit:ci (364 suites, 2441 tests, including new tests for result order, rich sentences, relative time and session refresh), build:deploy and validate-deploy all pass locally.

Preview

Cloudflare Pages branch preview: https://ux-bug-pass-oct.scratch-gui.pages.dev/spaces/spjOxDMFfwLRE

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Deploying scratch-gui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 500bd36
Status: ✅  Deploy successful!
Preview URL: https://af2cefed.scratch-gui.pages.dev
Branch Preview URL: https://ux-bug-pass-oct.scratch-gui.pages.dev

View logs

@Mistium
Mistium merged commit a739748 into develop Oct 8, 2026
4 checks passed
mc20000-01 pushed a commit to mc20000-01/scratch-gui that referenced this pull request Nov 7, 2026
Fix bugs and UX problems in recent community, admin, wallet and sign-in work
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.

1 participant