wealth/docs/pages/market/dashboard-subscriptions.md

30 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Dashboard: subscriptions
`/dashboard/subscriptions` · `apps/{bull,bear}/src/app/(main)/dashboard/(investor)/subscriptions/page.tsx` · Type: account · Layout: [layout-dashboard-investor.md](layout-dashboard-investor.md), [layout-main.md](layout-main.md), [layout.md](layout.md)
| Field | Value |
| ----------- | ----------------------------------------------------------------------------------------------------------------------- |
| Robots | `noindex` (page `metadata`) |
| Status | `200` for every viewer: a guest is sent to login in the browser, a creator sees `AuthGuard`'s page-size no-access state |
| loading.tsx | `(investor)/subscriptions/loading.tsx`: `SkeletonPreset` list of cards, `delayed` |
| First flush | none |
| Canonical | none: `noindex` |
| H1 | bull: none (see the layout doc); bear: «داشبورد» in the layout |
| JSON-LD | none |
| Scripts | none beyond the layout's |
## Sections
In bull's document order.
| Section | Data | HTML | JS | Index | Notes |
| ---------------- | ------ | -------- | ------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SubscriptionList | viewer | skeleton | hydrate | no | in `PartBoundary size="page"` › `AuthGuard role="investor"` › `<Suspense>`; active and expired subscriptions from two browser reads (`useSuspenseQueries`), or `SubscriptionsEmpty` |
| ↳ RenewalSheet | viewer | none | hydrate | no | mounts when renew or reactivate opens, also from `?reactivate=<id>`; its form has its own `PartBoundary` and `<Suspense>`; bull: a bottom sheet; bear: a modal |
| ↳ SupportDialog | — | none | hydrate | no | mounts when a subscription's support entry opens |
## Notes
- bull's skeleton cards are `md`, bear's `lg`; the list differs only in `layout`.
- A failed read replaces the list with the page-size error; the tabs stay (U2 ۳.۴).