Commit Graph

110 Commits

Author SHA1 Message Date
Amiram_se cd082e5ed9 feat(libs,island): carry API error details and let fallbacks focus their heading
- 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>
2026-10-04 21:33:07 +04:00
Amiram_se 2a3df2fcd8 chore(deps): upgrade Next.js to 16.3 and add the front-end stack packages
- next ~16.3.8 (catchError and retry for error boundaries are stable from 16.3)
- i18next, react-i18next, react-hook-form, @hookform/resolvers, zustand, immer,
  @tanstack/react-query
- bull runs on port 3001 and bear on 3002 in dev and start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:33:07 +04:00
Amiram_se d68ae9d0a4 feat(island): sync components with the Lumina design system
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>
2026-10-04 17:23:59 +04:00
Amiram_se 368c49ce67 feat(tools): align format helpers with the Lumina design system
- 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>
2026-10-04 17:23:59 +04:00
Amiram_se 5e35fbd6f2 feat: libs, tools 2026-10-02 19:42:11 +04:00
Amiram_se 486f86fcea fix: gitignore 2026-10-02 19:30:30 +04:00
Amiram_se 7dde8dd6f8 feat: scaffold 2026-10-02 18:19:11 +04:00
Amiram_se 91f56425d9 feat: add new skill 2026-10-02 17:57:42 +04:00
Amiram_se 8cb189ed39 chore: nx init 2026-10-02 17:46:30 +04:00
Amiram_se a4f5a94137 first commit 2026-10-02 17:41:59 +04:00