Commit Graph

110 Commits

Author SHA1 Message Date
Amiram_se be57684dbf Merge branch 'feat/pre-launch-4-overview' into main
The analyst's overview tab, the subscriber list and the step 2 fixes: the
5-digit sign-in code, range signals, one signal list before results are
released and the consent at registration step 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 02:14:49 +04:00
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 d56064fa2e feat(dashboard): list subscribers and clean the plans tab
The plans tab loses «مخاطبان», whose figures now live on the overview, and
shows the soonest-ending subscribers instead. /dashboard/subscribers lists them
all with «همه» and «در حال انقضا»; notifications may now open it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:10:36 +04:00
Amiram_se 935d59dab8 feat(dashboard): welcome a new analyst on the overview tab
With no audience and no income yet, the figures stay at zero and a banner
offers to share the channel, through the caption sheet the channel's own share
uses. A channel that isn't public yet says why it can't be shared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:08:35 +04:00
Amiram_se 7f4f393ba0 feat(dashboard): summarise signal performance on the overview tab
The four numbers and the way to a public record, from the snapshot the
signals tab reads, so the two can't disagree. Before the first evaluation it
shows the same message in their place, never zeros.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:07:25 +04:00
Amiram_se 0ed3578565 feat(dashboard): split the overview by plan
«تفکیک طرح‌ها» draws one bar per plan by active subscribers, every purchase
or income, with count and share. A refunded plan's negative income takes no
share from the others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:07:15 +04:00
Amiram_se c6da027450 feat(dashboard): show audience and income on the overview tab
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>
2026-11-05 19:06:19 +04:00
Amiram_se 33321c2e65 feat(dashboard): add the overview tab as the analyst's default
Adds /dashboard/overview to both apps, with its read of the API's overview
and subscriber list routes. The tab row is now «نمای کلی» · «طرح‌های اشتراک» ·
«سیگنال‌ها» · «مالی», and the nav's داشبورد opens it for a creator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:05:24 +04:00
Amiram_se 96fb709505 fix(onboarding): require and send the consent at registration step 5
The API refuses the first profile completion without termsAccepted, and the
web app never sent it, so no analyst could finish registering. The box now
always shows, with or without a link, and completing sends the consent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:01:42 +04:00
Amiram_se f111ee033a fix(signals): list each signal once before results are released
Until results reach the analyst the API answers one list for every status
and no per-status totals, so the signals tab drew each signal under both
sections and the full list drew empty filter counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:01:42 +04:00
Amiram_se 5daff15196 fix(signals): send the entry form when publishing a signal
Without entryType the API reads an exact entry, so every range signal from
the composer was refused with 422.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:01:42 +04:00
Amiram_se 5b8b8f4cd4 fix(auth): ask for the 5-digit code the API sends
The API sends a 5-digit sign-in code, but the code step drew six cells and
its validation wanted six digits, so nobody could sign in or register. The
admin panel keeps its 6-digit code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:01:42 +04:00
amiram_seify 8a9d1da081 Merge pull request 'feat/pre-launch-4-overview' (#1) from feat/pre-launch-4-overview into main
Reviewed-on: https://source.azchain.ir/amiram_seify/wealth/pulls/1
2026-11-02 17:24:43 +00: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 4ae62a96e1 feat(pwa): add iOS splash screens to bull and bear
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>
2026-10-25 16:18:41 +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 6b8269900d chore: remove name 2026-10-17 13:59:42 +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 73eb571530 chore: udpate skills 2026-10-15 14:36:00 +04:00
Amiram_se 7075dfe5c1 chore: update skill 2026-10-13 23:47:23 +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 6319052cc1 chore: update 2026-10-10 23:50:33 +04:00
Amiram_se aec09a0ecd refactor: code review 2026-10-10 18:28:58 +04:00
Amiram_se 27ef8fe5b0 chore: update skils 2026-10-10 16:11:43 +04:00
Amiram_se c593e09554 feat(apps): rules pages under /terms, pricing editor with leave guard, page-size errors on subscriptions and transactions, pending channel gate, welcome sheet and invite notes on channels, registration back on step 4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 13:29:48 +04:00
Amiram_se 6791282b38 feat(market): canvas 86fc — not-for-sale channel and sale notice, first follow in place, no-code sheet, checkout ?code=, notification seen/read with analyst filters, approved welcome, compose lock redirect, pending close, invite request outcomes, pricing leave sheet, payout retry, mid-session suspension halt, registration leave and resume, both ID sides, rules page and sheet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 13:29:48 +04:00
Amiram_se 4924257ae1 feat(island): prediction card pending close, code input «کد ندارم», list row external links, subscription card latest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 13:29:48 +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 e945e646fc feat(apps): static metadata except channel and post pages, metadata in head for every visitor, manifest from market, no iPhone input zoom in bull
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:19:43 +04:00
Amiram_se 92a5e5410d feat(market): shared web app manifest builder, back to parentHref through history only when it is the previous entry, backToPrevious option
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:19:43 +04:00
Amiram_se 3e0cf9628d feat(libs): pwa worker serves /_next/static/ cache first, evicts least recently used, routes only stored kinds through the fetch event, stores loaded files a few at a time
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 7c0b86bfb8 refactor(market): repositories import repository subpaths, one leave guard and dialog route hook, shared composer locked state, detail values through Typography, publish menu close, referral card refresh on capacity decisions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:34:24 +04:00
Amiram_se 907bc23e25 feat(island,tools): share popover, 360 sheet popover, form section and avatar field options, switch frozen track, prediction card link, select, list row, tab links and info tip options, body-compact and stat type tokens, button document reload, list formatting
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 5eba6775f8 feat(apps): account, search, analysts, prediction composer, creator predictions and install routes in bull and bear; manifest, service worker and placeholder app icons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:46:36 +04:00
Amiram_se f65d3c76a1 feat(market): new-look journeys — account, profile edit and resubmission, search, analysts and featured, invite links and code field, investor lists, publishing guard and edit dialog, prediction composer and early close, creator predictions tab, invite-code card and audience, finance and شبا, global error, session and network states
- account: /account overview, investor profile form, notification settings (features/account, features/notification-settings)
- auth: board fixes, J03 creator profile edit with identity resubmission (features/verification), shared links section
- discovery: featured creators, creator search with recent searches, analysts directory, empty خانه, follow notice (features/discovery)
- channel and post: display names, follower counts, media frame, share, lightbox, desk back
- checkout: invite link codes kept per creator in the checkout draft, CodeInput field; subscriptions with amount paid and per-period history; transactions, following and notifications as list rows
- publishing: publish standing guard, idempotent publish, pinned composer footer, media strip
- predictions: composer with live quotes and server field codes, early close at the server quote, track record and own predictions (features/prediction)
- creator dashboard: three tabs, audience stats, invite-code card and capacity requests (features/referral), pricing, promotion, finance, ledger and شبا fixes
- errors: API error code reaches HttpError.code; page error keeps the page bar; session expiry keeps drafts; slow and offline states

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:46:36 +04:00
Amiram_se 75e8fe08fe feat(libs): pwa lib — service worker for JS, CSS, fonts and the icon sprite, registration kill switch, install offer capture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:46:36 +04:00
Amiram_se d3137973ab feat(island): media strip, media frame with expand badge, list row keep-end, offline freeze, upload tile and toast placement follow-ups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:46:36 +04:00
Amiram_se 48166c17db feat(apps): auth frames on the 560 column with back, payment result back to the channel, layouts declare toast placement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 17:38:43 +04:00
Amiram_se 0005b18d2a feat(market): new-look shell — bars, bottom nav, desktop account menu, sign-out confirm, R14 back targets, network bar under the bars; channel header with display name and follower counts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 17:38:43 +04:00
Amiram_se c6c1aa33b2 feat(island): v6 compositions — list rows, page header, section title, pinned footer, result panel, stat tile, meter, search field, avatar stack, timeline, code input, key-value, analyst card; new chips, segmented, avatar sizes, toast placement, account menu items, post and prediction card names and close reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 17:38:43 +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