Files
tehran_tala/apps/user-app-v2/dist/assets/DashboardView-CY_7F_7n.css
T
s.esmaeiliandClaude Opus 5 f71fd5bfe1 feat(apps): sales-expert screens in both apps + v2 admin home slider (D21, APP-02)
Both expert screens are built in user-app and user-app-v2, with byte-identical
template and script and a per-app style block only — verified by diffing
everything above <style>:

  ChildOrdersView  "سفارش مشتریان"  — legacy ChildOrders.vue. Keeps the
    reference's title, search, infinite paging, and per-card item count, total
    weight, customer name and the fixed «تحویل مسئول فروش» chip (the endpoint
    only returns that status, ApiMobileController:766).
  CustomerChoiceView "لیست مشتریان" — legacy customerChoice.vue. Keeps its
    title, per-search re-query and the reference's choice to LIST inactive
    customers (its active() scope is commented out at :187).

Reachable from inside the app, not just by URL: routes carry the reference's own
paths and names, the dashboard grows the two entries only for an expert (v1 as
tiles, v2 as its own rows), and a router guard sends an ordinary customer back
to their dashboard. None of that is relied on for safety — the server scopes
both endpoints on the AdminUser id in the token and answers 403 otherwise.

Not ported, both recorded in D21: the act-as api_token minting (:197-201) and
the child-order edit drawer, which recomputed an order's money from client-sent
values. The card opens a read-only summary instead.

APP-02 fixed: user-app-v2 gained getHomeSlider and now prefers admin-configured
slides, keeping its category-derived hero as the fallback and its own design.

Session stores stay byte-identical across the apps.
build 5/5, jest 45/45, expert login 36/36, apps smoke 43/43, typecheck clean.

[ref: henza_pwa/src/views/user/src/components/ChildOrders.vue, customerChoice.vue]
[ref: henza_pwa/src/router/index.ts:171-188]

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 01:12:53 +03:30

2 lines
4.5 KiB
CSS

.dash[data-v-7f911406]{background:#fff;min-height:100vh}.dash__bar[data-v-7f911406]{position:fixed;top:0;left:0;right:0;z-index:20;background:#ffffffd1;-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);border-bottom:1px solid rgba(28,45,86,.05);box-shadow:0 8px 20px -18px #1c2d568c}.dash__barInner[data-v-7f911406]{max-width:768px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dash__brand[data-v-7f911406]{font-size:14.5px;font-weight:800;color:#14161a}.dash__exit[data-v-7f911406]{flex:0 0 auto;width:34px;height:34px;border:0;cursor:pointer;border-radius:11px;display:grid;place-items:center;color:#7a1b33;background:#fbf2f4;transition:transform .18s ease}.dash__exit[data-v-7f911406]:active{transform:scale(.92)}.dash__body[data-v-7f911406]{padding-top:58px;padding-bottom:90px}.dash__reveal[data-v-7f911406]{opacity:0;transform:translate3d(0,14px,0) scale(.98);will-change:transform,opacity}.is-revealed .dash__reveal[data-v-7f911406]{opacity:1;transform:translateZ(0) scale(1);transition:opacity .62s cubic-bezier(.32,.72,0,1) var(--reveal-delay, 0ms),transform .62s cubic-bezier(.32,.72,0,1) var(--reveal-delay, 0ms)}@media (prefers-reduced-motion: reduce){.dash__reveal[data-v-7f911406]{opacity:1;transform:none}.is-revealed .dash__reveal[data-v-7f911406]{transition:none}}.dash__hero[data-v-7f911406]{margin-top:16px;margin-bottom:28px;padding:20px 18px 16px;border-radius:26px;background:linear-gradient(155deg,#14161a,#14161a 55%,#5e1427 130%);color:#fff;box-shadow:0 22px 40px -26px #14161a52}.dash__heroTop[data-v-7f911406]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dash__heroIdentity[data-v-7f911406]{display:flex;flex-direction:column;gap:3px;min-width:0}.dash__heroName[data-v-7f911406]{font-size:13.5px;font-weight:800}.dash__heroMobile[data-v-7f911406]{font-size:11px;color:#ffffff8c;direction:ltr;text-align:right}.dash__heroSeal[data-v-7f911406]{flex:0 0 auto;padding:5px 12px;border-radius:999px;font-size:10.5px;font-weight:700}.dash__heroSeal.is-debtor[data-v-7f911406]{color:#fff;background:#a33c55}.dash__heroSeal.is-creditor[data-v-7f911406]{color:#14161a;background:#ffffffe6}.dash__heroFigure[data-v-7f911406]{margin-top:20px;display:flex;align-items:baseline;gap:8px}.dash__heroNum[data-v-7f911406]{font-size:34px;font-weight:800;letter-spacing:-.5px}.dash__heroUnit[data-v-7f911406]{font-size:12px;font-weight:600;color:#ffffff9e}.dash__heroDebt[data-v-7f911406]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.14);font-size:11.5px;color:#ffffff9e}.dash__heroDebt b[data-v-7f911406]{font-size:13px;font-weight:700;color:#fff}.dash__heroDebt i[data-v-7f911406]{font-style:normal;font-size:10.5px;font-weight:600;color:#ffffff9e;padding-inline-start:3px}.dash__invite[data-v-7f911406]{margin-top:16px;padding:26px 20px;border-radius:26px;background:#14161a;color:#fff;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}.dash__inviteIcon[data-v-7f911406]{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#ffffff1a;margin-bottom:2px}.dash__invite h3[data-v-7f911406]{margin:0;font-size:14px;font-weight:800}.dash__invite p[data-v-7f911406]{margin:0;font-size:11.5px;color:#fff9;max-width:240px}.dash__inviteCta[data-v-7f911406]{margin-top:6px;padding:10px 22px;border:0;cursor:pointer;border-radius:999px;font-family:inherit;font-size:12px;font-weight:700;color:#14161a;background:#fff;transition:transform .18s ease}.dash__inviteCta[data-v-7f911406]:active{transform:scale(.96)}.dash__rows[data-v-7f911406]{margin-top:0;display:flex;flex-direction:column;gap:9px}.dash__row[data-v-7f911406]{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #ECEDEF;border-radius:17px;cursor:pointer;background:#fff;font-family:inherit;text-align:right;transition:transform .18s ease,border-color .18s ease}.dash__row[data-v-7f911406]:active{transform:scale(.985);border-color:#7a1b3333}.dash__rowIcon[data-v-7f911406]{flex:0 0 auto;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:#7a1b33;background:#fbf2f4}.dash__rowText[data-v-7f911406]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.dash__rowText b[data-v-7f911406]{font-size:12.5px;font-weight:700;color:#14161a}.dash__rowText small[data-v-7f911406]{font-size:10.5px;color:#8a909c}.dash__rate[data-v-7f911406]{margin-top:14px}