Files
tehran_tala/apps/user-app-v2/dist/assets/FavoritesView-KwTaarkp.js
T
s.esmaeiliandClaude Opus 5.5 1bc3739e78 Merge release/delivery (IAM single sign-on) into the triage work
Brings the four release/delivery commits (IAM SSO for the admin panel,
both apps and the API; IAM env in docker-compose) onto fix/issues-triage.

Conflicts:
- customer-auth.service.ts imports: both kept.
- both apps' api/client.ts: both kept (AccountingBalance/WageQuote, and
  iamAppUrl).
- all build output (admin-panel, user-app, user-app-v2 dist, and the api
  release bundle): rebuilt from the merged source instead of picking a
  side.

Fixed while verifying:
- The IAM change calls iam.browserBootstrapUrl after every login, but
  the identity-service stand-ins in three test files lacked it. 15 tests
  failed on release/delivery itself.
- SMS relay: SMS_RELAY_PLATFORM was read but never sent, so the gateway
  never got `platform` (documented body: phone, host, text, platform).
  relayConfig() now returns it ("default" → null) and the request carries
  it. sms.service.spec now passes.

All 249 API tests pass; the three front-ends type-check and build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 09:03:53 +03:30

2 lines
1.5 KiB
JavaScript

import{d as m,aM as g,o as y,s as b,c as o,p as e,z as c,J as h,g as d,f as t,F as _,b as l,r as k,I as C,m as P,e as B,C as F,h as x,B as V,j as w,_ as S}from"./index-BAr1mMLP.js";import{P as I}from"./PageBar-B1ks8U8i.js";import{S as N}from"./SectionHead-DadL6umU.js";import{P as $}from"./ProductCard-4TPJHHsT.js";const z={class:"favs"},M={class:"favs__grid"},R={key:1,class:"favs__empty"},j=m({__name:"FavoritesView",setup(E){const v=F(),f=g(),a=d(!1),i=d([]),n=x(()=>i.value.filter(u=>f.isFavorite(u.id)));return y(async()=>{a.value=!0;try{i.value=await b.listProducts()}finally{a.value=!1}}),(u,s)=>{const p=V("container");return t(),o("div",z,[e(I,{title:"علاقه‌مندی","back-to":"userPage::hasSubRoute"}),e(h,{spinning:a.value,tip:"در حال دریافت اطلاعات"},{default:c(()=>[e(p,{class:"favs__body"},{default:c(()=>[n.value.length?(t(),o(_,{key:0},[e(N,{title:"ذخیره‌شده‌ها",subtitle:`${n.value.length} محصول`},null,8,["subtitle"]),l("div",M,[(t(!0),o(_,null,k(n.value,r=>(t(),w($,{key:r.id,value:r},null,8,["value"]))),128))])],64)):a.value?B("",!0):(t(),o("section",R,[e(C,{icon:"vuesax-linear:heart",size:"26"}),s[1]||(s[1]=l("p",null,"هنوز محصولی را به علاقه‌مندی‌ها اضافه نکرده‌اید.",-1)),l("button",{type:"button",class:"favs__emptyCta",onClick:s[0]||(s[0]=r=>P(v).push({name:"home"}))}," دیدن محصولات ")]))]),_:1})]),_:1},8,["spinning"])])}}}),A=S(j,[["__scopeId","data-v-d58ee1f5"]]);export{A as default};