Commit Graph

86 Commits

Author SHA1 Message Date
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
Amiram_se 000c42bd74 feat(apps): creator plans, finance and pricing routes in bull and bear
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 16:11:12 +04:00
Amiram_se 163005429d feat(market): creator dashboard plans and finance, pricing form with promotions, payout account and ledger
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 16:11:12 +04:00
Amiram_se db0fa7c86e feat(island,tools): select, switch, info tip, jalali date helpers
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 3b8c95a94e feat(apps): checkout, payment, subscriptions, transactions and notifications routes in bull and bear
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 22:36:22 +04:00
Amiram_se 49372bc77e feat(market): checkout, payment return and result, investor subscriptions and transactions, notification centre
Checkout draft store survives the bank round trip; the app shell settles an
abandoned payment on return. Renewal sheet lists periods as tier options.
Notification bell opens the centre as a panel on desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 22:36:22 +04:00
Amiram_se a668b17590 feat(island): count badge, date time, detail row, filter chips, spinner sizes, carousel nav buttons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 22:36:22 +04:00
Amiram_se b85b05861f feat: update skill 2026-10-08 22:29:56 +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 45c5551e18 feat(apps): prerendered landing at / and خانه at /feed in bull and bear
- `(landing)` route with `force-static` and `revalidate = 600`, its
  loading and error pages, the hero image and LandingRedirect (0026, 0027).
- `force-dynamic` moves from the root layouts to each route group's
  layout, so every other route still renders per request.
- The feed moves from `(main)/(home)` to `(main)/feed`, with bear's
  empty `@modal` page.
- Auth frames' brand goes to the landing, onboarding's to خانه.
- Server bootstrap adds the server-only translations; server env reads
  `NEXT_PHASE` for the build-time fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 23:02:58 +04:00
Amiram_se ba673f4a28 feat(market): landing page, featured analysts, home moves to /feed
- Landing screens for `/`: header, hero, trust strip, markets tabs,
  featured analysts carousel, track record, steps, plans, for analysts,
  FAQ, closing call to action and footer, composed by LandingTemplate
  with labels built from the server's translations.
- Featured analysts read (`/creators/featured`) with a cache and
  `loadLandingPage`: 404 and 403 hide the section, other failures hide
  it at build time and throw at a revalidation.
- `ROUTES.home` is now `/feed` and `ROUTES.landing` is `/`; `homeRoute`
  and `useHomeHref` decide where a viewer belongs, used by the brands,
  back, HomeGuard and LandingRedirect.
- Registration step 1 pre-selects the account type from `?role=` once,
  then drops it from the address.
- The `landing` namespace is server-only (SERVER_RESOURCES).
- Landing metadata and FAQPage JSON-LD helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 23:02:58 +04:00
Amiram_se 2be04f9d1d feat(island): landing type, tokens, section heading, sample frame, fact card
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>
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 7949eb0d64 feat(market): channel, posts, composer, home feed and following
The creator's channel and post pages, the post composer, the investor's home feed and the following tab, in bull and bear.

- Channel and post page start from the server's read and re-read in the browser for the creator or a subscriber; locked posts show a gate only once the viewer and their standing are known, frozen for another creator.
- Composer: text and up to four images uploaded as picked, free or premium, a device draft that keeps stored file URLs, 15-minute edit of a published post; on desktop a dialog over the page through bear's @modal intercept.
- Owner actions: preview as a visitor or subscriber, edit, delete (dialogs locked while sending), close a prediction with the outcome the API recorded.
- Follow and unfollow run in tap order; the home feed dates posts from its last read; paged lists read past pages with nothing to show.
- Cache stays true after mutations: a delete re-reads the channel's offset pages, a new post resets them, and a post page delete navigates without a stale refresh.
- Navigation: bottom nav, mobile top bar, desktop header and publish menu; the preview chrome only for the creator's own post.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:29:33 +04:00
Amiram_se 88384fa72d feat(island): post card access and share, action menu, tab links, segmented choice
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>
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 f4e9febad7 feat(island): toast close button, own motion and clock, one at a time
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>
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 cb0891c77c feat(market): complete entering and onboarding
Login, registration steps 1–4 and step 5 now follow the design (S6, R2-Register, R2-CompleteProfile).

- Login: hourly code limit and blocks open the code step with their wait; wrong-code message no longer replaced while retyping; suspended screen on its own route with the admin's reason; «log in to subscribe» variant.
- Registration: focus on the first card or empty upload box; typed number kept; «تمدید زمان» renews the token; live username check with ✓; leave prompt for in-app links; creator ID accepts PDF and maps server field errors.
- Step 5: square photo crop, stricter link rules, done screen on its own route; the session's `needsProfile` keeps unfinished creators out of publishing and pricing (OnboardingGuard) and sends them back to step 5 at login.
- Every auth and onboarding route has its own loading skeleton matching its frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:47:26 +04:00
Amiram_se ed6ddc05b1 feat(apps): call the API through a same-origin /api rewrite
- next.config rewrites /api/:path* to API_INTERNAL_ORIGIN, with a 120 s proxy timeout for uploads; NEXT_PUBLIC_API_ORIGIN is gone.
- The browser HTTP base is /api/v1; media, avatars and uploads load through /api (market env `apiBaseUrl`), so private media gets the session cookie.
- toApiUrl keeps a narrow rule for uploads stored with a host before the back end stored paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:47:18 +04:00
Amiram_se 0e8347d6d3 refactor(libs): share the origin env schema
`origin` (scheme and host only) lives in @lumina/libs/env, so the apps stop repeating it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:47:18 +04:00
Amiram_se 297f0b2cbd feat(island): focusable choice cards and file fields, state skeleton, timed toasts
- 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>
2026-10-06 21:47:18 +04:00
Amiram_se cfa8cce1b0 refactor: code review 2026-10-06 17:12:50 +04:00
Amiram_se dc221f50bf chore(apps): run bull on 7000 and bear on 7001; ignore server-proxy.js
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:33:12 +04:00