feat(frontend): info toast and sign-out when new sign-ups are closed#12622
Merged
AntonioVentilii merged 9 commits intomainfrom Apr 28, 2026
Merged
feat(frontend): info toast and sign-out when new sign-ups are closed#12622AntonioVentilii merged 9 commits intomainfrom
AntonioVentilii merged 9 commits intomainfrom
Conversation
When `loadUserProfile` reports a `signups-closed` failure reason in
`initLoader`, show an info toast ("New sign-ups are currently
restricted...") and sign the user out with `resetUrl: true` and
`source: 'signups-closed'`. Other load failures keep the existing
behavior. Adds the new `auth.info.signups_closed` i18n key (synced
across locales).
AntonioVentilii
commented
Apr 28, 2026
AntonioVentilii
commented
Apr 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a dedicated “sign-ups closed” handling path during frontend initialization so users get an informational message and are signed out when profile creation is restricted.
Changes:
- Update
initLoaderto react to asignups-closedfailure reason fromloadUserProfile, show an info toast, and sign out with tracking metadata. - Add a new
auth.info.signups_closedi18n key and sync it across locales. - Add a unit test covering the “signups closed” sign-out + toast behavior.
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/frontend/src/lib/services/loader.services.ts | Adds conditional toast + sign-out behavior based on a loadUserProfile error reason. |
| src/frontend/src/tests/lib/services/loader.services.spec.ts | Adds a unit test for the “signups closed” loader path. |
| src/frontend/src/lib/types/i18n.d.ts | Extends i18n typings with auth.info.signups_closed. |
| src/frontend/src/lib/i18n/en.json | Adds English copy for auth.info.signups_closed. |
| src/frontend/src/lib/i18n/ar.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/cs.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/de.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/es.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/fr.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/hi.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/it.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/ja.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/ko-KR.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/pl.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/pt.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/ru.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/vi.json | Adds auth.info.signups_closed placeholder. |
| src/frontend/src/lib/i18n/zh-CN.json | Adds auth.info.signups_closed placeholder. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
`signOut` ultimately calls `window.location.reload()`, so a toast shown
right before it would never reach the user. Mirror the
`errorSignOut`/`warnSignOut` pattern with a new `infoSignOut` helper that
passes the message through `logout({ msg })`, letting it survive the
reload via `displayAndCleanLogoutMsg`.
AntonioVentilii
commented
Apr 28, 2026
DenysKarmazynDFINITY
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Show a clear info toast and sign the user out when new sign-ups are restricted.
Changes
initLoaderreads the failure reason fromloadUserProfile. Onsignups-closed, shows an info toast and callssignOut({ resetUrl: true, source: 'signups-closed' }).auth.info.signups_closedi18n key (synced across locales).Tests
Added tests.