Followers, active subscribers and those ending within a week, then total,
this Shamsi month's and payable income, with their links.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tab reads GET /me/signal-stats instead of the track-record route: four
tiles, how signals ended, risk to reward as worst to best, and progress to a
public record, with tips on this tab only. Before the first nightly
evaluation a message replaces the numbers, never zeros. The tiles, progress
and pending state are shared organisms, ready for the overview tab.
The channel's split now reads «رسیده به هدف», «خورده به حد ضرر» and «پایان
مهلت», since those three counts no longer mean win, loss and breakeven.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The composer asks for the entry as «قیمت دقیق», prefilled from the live
quote until edited, or «بازه», plus a required stop-loss, and checks the
levels against that entry on blur, on a direction change and on every
quote refresh. The confirm step sends what it showed. The signal card
shows a range with «بازه» and «ورود (بازه)», measures from its middle,
and shows «ریسک به ریوارد» as lower to higher ratio.
Every UI string now says «سیگنال» in place of «پیشبینی». Code identifiers
and routes stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reads the three legal documents from the API, so /terms and
/terms/subscription render in the browser under a (tabs) route group, and
adds /terms/analyst-agreement. The login and sign-up phone pages accept the
rules through a caption, the analyst sign-up requires the agreement and sends
its version, and a blocking gate opens from the session or a 403
agreement_required. Account rows and the rules_updated notification follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow controls use on-dark and following instead of secondary, on the
channel and in دنبالشدهها. Discovery shows a plain label for a followed
analyst and no longer offers unfollow. Adds Vitest and Testing Library,
the repo's first test runner, and the pre-launch plan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pwa lib lists every iPhone and iPad screen and builds a portrait and a
landscape startup image for each. Both apps' root metadata links the images
and adds apple-mobile-web-app-capable, which Next.js 16 no longer renders.
tools/generate-splash-screens.ts draws each app's icon on the manifest
background with next/og; run it again when the icon, the background or the
screen list changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the landing's own display type (hero and section Typography variants),
a page container, an image shade and a 720px tablet breakpoint used only by
the landing's grids (0028). Add three domain-free molecules the landing
shares: SectionHeading, SampleFrame (real components with made-up data,
inert and labelled) and FactCard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Island pieces for the channel, post page, composer and dashboard.
- New molecules: ActionMenu (links or actions in a popover), TabLinks (route tabs), SegmentedChoice.
- PostCard: owner footer, share menu on desktop, access note for an open premium post, frozen CTA reason on a locked one.
- LockedTeaser keeps the gate's place while the viewer is unknown; Modal gains sizes; Lightbox and skeleton presets for feeds and headers.
- Button: `pressableWhenFrozen`, a frozen look whose press still calls onClick (explain or check instead of a tooltip).
- TextInput counts UTF-16 units, as the native maxLength does, so the counter reaches the limit with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Toast follows the updated Lumina design system.
- ✕ «بستن اعلان» on every toast shown by showToast: 44px, its hit area reaching into the padding; the label comes from the Toaster's new `closeLabel`.
- Motion: in over 200ms (rise 16px, fade in), out over 160ms (drop 8px, fade out); reduced motion keeps a plain 120ms fade. The entrance plays once, even when the region moves into a dialog.
- Text wraps evenly; with an action, text past two lines moves the action under it, measured again when the width changes.
- Toast runs its own clock (sonner gets duration Infinity): it pauses while a pointer is on the region (hover, press, hold, swipe), while keyboard focus is inside it, and while the tab is hidden.
- One toast at a time: a new one replaces the old; while keyboard focus is in the region it waits until focus leaves. Every toast gets a fresh id, so `showToast` drops its `id` option.
- The Toaster slot overrides sonner's slide and stack with inline style instead of !important, and `toastOptions` is no longer a prop.
- market: AppShell passes `closeLabel`; showActionError no longer passes an id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ChoiceCard and FileField forward a ref to their real input, so a form can move focus to the first empty card or upload box.
- SkeletonPreset gains a `state` preset (art, heading, line, action).
- Every toast closes by itself: errors after 8 s (10 with an action), others after 4 s (6 with an action).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Atoms: Chip (toggle with aria-pressed), Checkbox, FieldError (alert line
under a group), LinkButton (a button that looks like a link; SupportLink now
uses it), RowButton (56px choice row for sheets), and a 96px Avatar size.
- Molecules: ChipGroup (named fieldset of chips with its error), FormSection
(titled form part with an optional marker and hint), AvatarField (photo
pick, change, remove, upload progress, failed state with retry).
- Dialog, Sheet and Modal take `onExited`, called once the dialog has left
the top layer. The page is inert until then, so focus moves there.
- tools/format: `time()` for a time of day in Tehran (`14:05`).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- FileField molecule: one file for a form, with a picker box, thumbnail,
name, size, remove button, inline error and upload progress.
- SkeletonPreset gains a `form` preset (heading, n fields, button, link).
- Toast takes a second `description` line; showToast takes a stable `id`,
so a repeated failure replaces its toast instead of stacking.
- Link takes a leading `iconStart`, such as edit before «ویرایش شماره».
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the hashing asset plugin with two build-time plugins that never
rename their files, so an unchanged font or sprite stays in every
visitor's cache across deploys (0011, 0012):
- icon-sprite-plugin builds icons/*.svg with svgo into
public/icons/symbol-defs.svg. The Icon atom links it as
symbol-defs.svg?v=<ICON_SPRITE_VERSION>; the file's first line stamps
its version, so dev warns when the sprite changes without a bump.
- font-copy-plugin copies island fonts/ byte for byte into public/fonts/
and warns when a font changes under its old name.
- island fonts.css declares both Yekan Bakh faces with root paths and a
fallback face; theme.css points font-sans and font-latin at them.
- Root layouts preload CRITICAL_FONT_URL. next/font is gone.
- Both apps serve /fonts and /icons as immutable.
- island env, the apps' island-env bootstrap, NEXT_PUBLIC_ISLAND_* and
NEXT_PUBLIC_CDN_ORIGIN are removed; paths live in island constants.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add withIslandAssets (island tools/asset-plugin) per ADR 0008. On next dev
and next build it builds the svgo sprite from src/icons and copies the
Yekan Bakh fonts into the app's public/ under content-hashed names, puts
their paths in env (NEXT_PUBLIC_ISLAND_*) and serves them with an
immutable Cache-Control. Files are written in headers(), which only Next
calls, because Nx's next plugin also evaluates the config from the
workspace root.
- island env (setEnv/getEnv); Icon reads the sprite path from it
- icon-sprite-plugin becomes icon-name-extraction (IconName type only);
the committed sprite.svg is removed
- bull and bear register the plugin, validate the paths, pass them to
island through their bootstraps, and add an optional CDN origin for fonts
- gitignore the generated files; Nx build outputs include them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- HttpError keeps the server's structured `details` (set by mapErrorBody), so
callers can read a changed price or a frozen unfollow
- ErrorState and StateMessage accept a headingRef; page fallbacks move focus to it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New components:
- Lightbox, NetworkStatus (+ useOnline), TierOption, SkeletonPreset
Rebuilt to the design system:
- PredictionCard: range bar, open KPIs, closed hero, price ladder, horizon progress, seal, locked veil
- CreatorStats: form curve, outcome split, KPI tiles, insights and streak; null renders nothing
- PostCard, LockedTeaser, MediaCarousel: owner action rules, expanded variant, viewer CTA, locked order
- SubscriptionCard: active/suspended/expired/refunded, compact density, amount and support rows
- Countdown, ResendCode, OtpInput: absolute end times, DS wording and thresholds, WebOTP
Fixes:
- Dialog: waits only for finite exit animations, keeps non-dismissible halts open, focuses the
panel, closes on scrim presses only, mounts the panel only while open
- Toaster: moves its region into the open dialog so toasts show and stay tappable over sheets
- Button: blocked submit, frozen cursor, loading links; TextInput focus border; Card, Banner,
ChoiceCard, StepProgress, ErrorState, Amount and Avatar details
- Tokens: muted status tracks, inverse controls, scrim chip, inverse and lightbox focus rings;
the spinner keeps turning under reduced motion
Adds sonner and svgo; island gets the icons target and the hooks subpath.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- number/signed/signedPercent no longer print −0 or a sign for values that round to zero
- price guards null/NaN, caps at 6 decimals and avoids exponent notation
- date uses the fixed «، ساعت» joiner; relative says «همین الان» under a minute
- sheba groups as banks print it with or without the IR prefix
- add duration() and horizon(); export clock from the package root
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>