Commit Graph

27 Commits

Author SHA1 Message Date
Amiram_se 1b8d1df265 feat(dashboard): finish the overview tab and document it
Keeps tile tips on the label's line, moves the share button under the banner
text on a phone, and records the new default tab, the overview and the
subscriber list in the decisions and page docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:19:20 +04:00
Amiram_se 69a76446d2 feat(dashboard): add the signal performance card to the signals tab
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>
2026-11-02 01:58:25 +04:00
Amiram_se e1ad6056fc feat(pricing): show the price floor in the editor, plans tab and admin settings
The editor reads the floor from the API, on the final price after any
discount, with the spec's hints and errors, and a tier the floor took off
sale stays editable through the 7-day lock. The plans tab marks those
tiers and links to the fix. Checkout, renew and reactivate handle 409
tier_unavailable. The admin panel gets «تنظیمات» with «کف قیمت اشتراک»: a
dry-run preview on a raise and a confirm with an audited reason. Removes
the stale esbuild key from the Vitest config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:51:10 +04:00
Amiram_se cac4f8e229 feat(signals): add exact or range entry and required stop-loss to the composer
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>
2026-11-02 01:41:04 +04:00
Amiram_se 01c838e869 feat(legal): add rules caption, analyst agreement and re-acceptance gate
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>
2026-11-02 01:28:42 +04:00
Amiram_se 684aa404f2 feat(island): add on-dark and following button variants
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>
2026-11-02 01:09:08 +04:00
Amiram_se 2a1b657a77 feat: render every page except the landing in the browser
- Channel, post, checkout and analysts read their data in the browser; the
  server reads no back-end data outside the landing (0070).
- Only the landing is indexable; every other page is noindex, the rules
  pages through the terms layout (0071).
- Remove the landing's loading.tsx so all of it renders in the first flush.
- Remove the server caches and metadata helpers nothing uses any more.
- Update the page rendering docs; 0021, 0045 and 0055 are superseded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 15:40:47 +04:00
Amiram_se 3e908ab0b7 feat: render patterns 2026-10-21 13:16:11 +04:00
Amiram_se bbd8789b9b feat: update configs 2026-10-17 13:58:30 +04:00
Amiram_se d31903b4c0 feat: update creator route 2026-10-16 15:30:43 +04:00
Amiram_se 8c300edf68 feat(admin): wall-street-plaza admin panel on garden-roof, bound to admin-api
- New admin app apps/wall-street-plaza (port 7002) and platform platforms/garden-roof
  (scope:admin), talking only to admin-api through the /api rewrite (decision 0061;
  0062 and 0063 proposed).
- All J11 sections: beta health, verifications, analysts, invite codes, subscriptions,
  predictions, payouts, featured; audit log, cross-section refresh, Persian-only errors.
- Admin login matches the uniform admin-api contract (one OTP_INVALID message, 429 wait,
  local code check); reason hints say who reads each reason.
- island: DataTable, Pager, PersonSummary, TabLinks count, StatTile footer; tools:
  exactDuration; market: subscription_extended/refunded notification icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 19:06:38 +04:00
Amiram_se 39d687ed79 docs(decisions): accept 0058–0060 (notifications seen and read, invite code from checkout link, compose lock on own channel), supersede 0032, 0044, 0048, reword 0036
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 13:29:48 +04:00
Amiram_se 7a6cd93b41 docs(decisions): accept 0051–0057, supersede 0038 with 0057
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:19:43 +04:00
Amiram_se c801ab6d8e chore(apps,decisions): three-tab creator layouts, intercepts without loading files; propose 0050, note 0023 intercept loading
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:34:24 +04:00
Amiram_se 85cedf9f98 docs(decisions): propose 0038–0049, amend 0023 and 0034 for the new design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:48:56 +04:00
Amiram_se e5c7ec54d7 docs(decisions): record 0034–0037
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 16:11:12 +04:00
Amiram_se 381e01e030 docs(decisions): record 0029–0033
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 22:36:22 +04:00
Amiram_se 495f800f1f docs(decisions): record 0026–0028, supersede 0024
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 23:02:58 +04:00
Amiram_se 9877d7bf14 docs(decisions): record 0020–0025
0020 server organisms take labels from the app, 0021 the channel feed starts from the server page, 0022 post rules live in the API, 0023 the desktop composer is an intercepted dialog (publishing over the own channel goes back), 0024 home is the investor's browser feed, 0025 the investor's dashboard is a tabbed section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:29:33 +04:00
Amiram_se 636430640d docs(decisions): clarify 0019, island's Toast runs the clock
Sonner 2 doesn't pause on focus, so island's Toast runs the clock and sonner only places the toast. The index line now says focus pauses a toast and that callers never pass duration Infinity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:42:11 +04:00
Amiram_se 9ea17684ad docs(decisions): record 0015–0019
0015 own route for a view with its own frame, 0016 needsProfile and OnboardingGuard, 0017 a loading skeleton per step (proposed); 0018 the /api rewrite and 0019 toasts close by themselves (accepted).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:47:26 +04:00
Amiram_se 0d2528d66f docs(decisions): propose 0014, registration step 5 on the session
Step 5 runs under (onboarding) behind AuthGuard; a creator's profile
autosaves as a server draft and completes only through
POST /traders/me/profile/complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:33:00 +04:00
Amiram_se 7d381758ab docs(decisions): auth pages render in the browser
Record 0013: every (auth) page renders its steps only in the browser behind
GuestGuard, the server sends the frame, a same-size skeleton and noindex,
and the flow's state stays in memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 20:06:42 +04:00
Amiram_se 60b62d98db docs(decisions): fixed-name fonts and sprite versioned in its link
- 0009 and 0010 versioned the file names; both are now superseded.
- 0011: fonts keep fixed names with no version; a changed font ships
  under a new name.
- 0012: the sprite stays symbol-defs.svg, linked with ?v=<N>, written by
  icon-sprite-plugin and font-copy-plugin.
- 0007 and 0008 are marked superseded, and the index lists 0011 and 0012.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 19:00:46 +04:00
Amiram_se bbf84069c9 feat(island,apps): island asset plugin writes hashed fonts and icon sprite
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>
2026-10-05 11:58:56 +04:00
Amiram_se 9de000f3d2 chore: docs 2026-10-04 22:03:42 +04:00
Amiram_se 91f56425d9 feat: add new skill 2026-10-02 17:57:42 +04:00