Components · Alerts & feedback
Alert
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Toast
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Spinner
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Locked notice
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Notices and instructions
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Low pool banner
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Not in the app
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Near-duplicates
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Alert
newThe Badge's light colours. The icon is always top left, on the first line. 14px text, the title semibold. An action, when there is one, sits on the right.
packages/brand-ui/src/components/alert.tsx
| Title and description | Description only | With an action | |
|---|---|---|---|
| success | Changes saved Your newsroom details have been updated. | Your newsroom details have been updated. | Changes saved Your newsroom details have been updated. |
| destructive | Couldn’t save your changes Check your connection and try again. | Check your connection and try again. | Couldn’t save your changes Check your connection and try again. |
| warning | No codes available right now The vendor is sending a new batch. Check back in a few days. | The vendor is sending a new batch. Check back in a few days. | No codes available right now The vendor is sending a new batch. Check back in a few days. |
| primary (info) | Your application is being reviewed We usually reply within two working days. | We usually reply within two working days. | Your application is being reviewed We usually reply within two working days. |
| neutral | Membership dates to be confirmed The Fix will add them once your membership starts. | The Fix will add them once your membership starts. | Membership dates to be confirmed The Fix will add them once your membership starts. |
Locked notice
newUnder the Page header, as an Alert: for visitors a lock and “Apply now”, in review “My application”, a warning with “Reply” when more information is asked. Verified members see nothing.
Alert (packages/brand-ui/src/components/alert.tsx)
Catalogue
Discounted software and services for independent newsrooms.
- 48 tools
- 6 categories
Discount codes, referral links and ratings unlock once your newsroom is verified.
Your application is being reviewed. Codes, referral links and ratings unlock once your newsroom is verified.
The Fix team needs a little more information before your newsroom is verified.
Discount codes, referral links and ratings unlock once your newsroom is verified.
Member notices
newThree member notices as Alerts: PoolEmptyNotice (warning), RedemptionInstructions (neutral, the vendor’s text) and AdminMessage on onboarding (primary, the admin’s text as written).
Alert (packages/brand-ui/src/components/alert.tsx)
No codes available right now
The vendor is sending a new batch. We have notified The Fix team, so check back in a few days.
How to redeem
Sign up on the vendor’s site and enter your code at checkout. The discount applies for as long as your NewsTech membership is active.
Message from The Fix team
Could you send a link to your masthead page?
Low pool banner
newA warning Alert above the admin product list when an active product’s code pool runs low or empty. The count is the title, the products with what is left are the description.
Alert (packages/brand-ui/src/components/alert.tsx)
1 code pool is low or empty
Inkline CMS (7 left). Ask the vendor for a new batch.
2 code pools are low or empty
Inkline CMS (7 left), Ledgerwise (0 left). Ask the vendor for a new batch.
Toast
newThe Alert, floating, with a shadow: 356px wide, bottom centre, gone after 4 seconds. Same calls as sonner's.
packages/brand-ui/src/components/toast.tsx
Logo updated
Couldn’t revoke the key
Something went wrong on our side. Try again.
Only 3 codes left in the pool
Report is being prepared
Dialog and AlertDialog
newA white box over the page dimmed with Anchors Aweigh at 50%, small buttons on the right, the main one last. Dialog closes with ×, Esc or a click outside; AlertDialog only with Cancel or its action.
packages/brand-ui/src/components/dialog.tsx · alert-dialog.tsx · lib/feedback.ts
Add API key
Name the key after where the vendor will use it.
Revoke this key?
The vendor’s calls with this key will fail straight away. This can’t be undone.
Approve Ledger Weekly?
We’ll send them the welcome email and unlock the catalogue.
Tooltip
newNavy with white 12px text and an arrow, opening after 300ms on hover or focus. Only for a short hint, never the only place a label lives.
packages/brand-ui/src/components/tooltip.tsx · lib/feedback.ts
Where the old ones go
newEvery alert, notice, toast and confirm, and what it becomes.
| Old | New |
|---|---|
Alert · destructive (form-level error) apps/web/components/form/form-error.tsx | Email or password is incorrect. Alert · destructive, description only; the icon is now shown, the box is tinted instead of white |
Alert · default packages/ui/src/components/alert.tsx | Alert · neutral or primary; nothing uses it today |
PoolEmptyNotice (near-duplicate, ad hoc) apps/web/features/member-discount/components/pool-empty-notice.tsx | No codes available right now The vendor is sending a new batch. We have notified The Fix team, so check back in a few days. Alert · warning with IconInbox, role status |
RedemptionInstructions apps/web/features/member-discount/components/redemption-instructions.tsx | Alert · neutral titled “How to redeem”; nothing when the vendor wrote no text |
AdminMessage (3px left border on Silver Phoenix) apps/web/features/onboarding/components/admin-message.tsx | Alert · primary with IconMessage, titled “Message from The Fix team”, line breaks kept |
LowPoolBanner (admin Products, ad hoc) apps/web/features/admin-catalog/components/low-pool-banner.tsx | Alert · warning with IconInbox: the count as the title, the products and what is left as the description |
LockedNotice (near-duplicate, ad hoc) apps/web/features/catalog/components/locked-notice.tsx | Discount codes, referral links and ratings unlock once your newsroom is verified. Alert · primary with IconLock and an “Apply now” link button |
Toast (sonner, popover colours) packages/ui/src/components/sonner.tsx | brand-ui toast: the Alert's light colours with a shadow, the icon top left; same calls (toast.success, toast.error) |
Inline “Revoke…” confirm on API keys apps/web/features/admin-catalog/components/vendor-api-keys-panel.tsx | proposal: AlertDialog with a destructive action (“Revoke key”) |
Reject newsroom (no confirm) apps/web/features/admin-verification/components/verification-decision.tsx | proposal: AlertDialog with a destructive action, as rejecting emails the newsroom |
Spinner packages/ui/src/components/spinner.tsx | stays as it is; the Button’s loading state already draws the same icon |
Dialog, Tooltip (not in the app) — | new new: Dialog, AlertDialog, Tooltip in packages/brand-ui |