Codex
59e4eac736
feat(payment): expand Stripe methods and checkout handoff
Docker Image / Build and Push Docker Image (push) Successful in 2m10s
2026-07-28 16:48:11 +08:00
Codex
019caae598
feat(auth): add Messenger topup handoff entry
Docker Image / Build and Push Docker Image (push) Successful in 2m9s
2026-07-27 17:25:31 +08:00
admin
ae97366a4a
refactor(data): replace schema classes with readonly models
2026-07-17 13:21:40 +08:00
admin
eac3d8f0a7
refactor(data): merge DTO models into schemas
2026-07-17 12:47:18 +08:00
admin
cc06ed034d
fix(runtime): enforce session and environment contracts
2026-07-16 19:56:15 +08:00
admin
bb0d9244c0
refactor(rsc): narrow client module boundaries
2026-07-14 18:39:56 +08:00
admin
0033625866
perf(bundle): replace broad storage and utils imports
2026-07-14 18:13:55 +08:00
admin
225d232763
fix(auth): handle logout and refresh results
...
Propagate storage Result failures through logout, guest restoration, token refresh, and user state actors. Clear invalid sessions after failed automatic refreshes and cover both business and guest flows.
2026-07-13 17:23:54 +08:00
admin
53801490e5
feat(auth): add facebook identity psid login
2026-07-10 17:10:55 +08:00
admin
2e60bf64e6
feat(auth): rename facebookIdLogin to facebookAsidLogin and update related references
2026-07-10 16:35:38 +08:00
admin
dfcb06f5a9
feat(auth): add psid field to various login request DTOs and schemas
2026-07-10 16:33:29 +08:00
admin
b5bf81de59
refactor(api): remove unused network endpoints
2026-07-07 16:29:21 +08:00
admin
c739cc5b6e
refactor(auth): fold guest restore into logout
2026-07-03 17:04:19 +08:00
admin
8f17ea9c9f
fix(auth): return to guest session on logout
2026-07-03 16:14:04 +08:00
admin
79324defcf
refactor(auth): remove username fallback
2026-07-03 15:00:10 +08:00
admin
8a586e4471
refactor(errors): classify auth and browser failures
2026-07-03 13:20:16 +08:00
admin
61504050e5
fix(auth): trim email and username in emailLogin method
2026-06-30 15:15:35 +08:00
admin
a99a6e056d
feat(auth): persist login provider for restored sessions
2026-06-30 12:50:18 +08:00
admin
768b24774d
fix(auth): replace hardcoded platform name with dynamic platform detection
2026-06-30 12:05:44 +08:00
admin
0bae53bfba
feat: implement lazy singleton pattern for repository instances and update related imports
2026-06-29 17:25:41 +08:00
admin
6e51cb7d16
Refactor: Remove original Dart references from comments across multiple files
...
- Updated comments in various components, schemas, and repositories to remove references to original Dart files.
- Ensured consistency in documentation while maintaining the context of the code.
2026-06-29 11:31:21 +08:00
admin
abf6d5ae88
feat(auth): mark test accounts in login requests
2026-06-26 14:05:53 +08:00
admin
812a3e41b9
refactor(logging): centralize console output
2026-06-18 13:34:19 +08:00
admin
0d0dabaace
refactor(utils): add barrel exports
2026-06-18 11:58:50 +08:00
admin
1152491088
refactor(repositories): use barrel imports
2026-06-17 12:09:40 +08:00
admin
9ffa30cc03
style: remove markdown bold syntax from code comments
...
Remove `**...**` emphasis markers from inline comments and JSDoc blocks across
auth and chat components, machine mappers, and quota helpers. These are
plain code comments, not rendered markdown, so the bold syntax was noise.
Files touched:
- src/app/auth/components/auth-screen.tsx
- src/app/chat/components/chat-header.tsx
- src/app/chat/components/chat-screen.tsx
- chat machine mapper / quota helpers
No functional or behavioral changes.
2026-06-16 14:06:31 +08:00
admin
7bc21c1864
chore(auth): add debug logging to guest login flow
...
Add console.log instrumentation across the guest login pipeline (auth-machine, authRepository, authApi) to trace request lifecycle and surface Zod parsing failures with detailed issue info. Useful for diagnosing lastMessageAt schema mismatches.
2026-06-12 16:21:21 +08:00
admin
982d9ba790
refactor(data): add I*Repository interfaces and depend on them in stores
...
为 /src/data/repositories/ 下每个仓库类增加对应的接口契约,
接口文件存放在独立的 interfaces/ 子目录中。
改动:
- 新建 4 个接口文件 (iauth_repository / ichat_repository /
imetrics_repository / iuser_repository),纯 type-only,方法签名
与实现类完全一致
- 4 个实现类加 implements I{Name}Repository 子句,编译器自动校验契约
- 3 个 stores 文件 (auth / chat / user state machines) 改为依赖接口
类型:通过 `const xxxRepo: I{Name}Repository = xxxRepository` 局部别名,
actor 内部调用全部走别名
- barrelsby.json 加入 interfaces/ 目录,让自动 barrel 能覆盖
- Auto-regenerated repositories/index.ts 与 interfaces/index.ts
参照 storage 层已有的 IAuthStorage / IChatStorage / IUserStorage 模式。
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-06-11 17:02:49 +08:00
admin
6e64ed35f4
chore(deps): add unstorage and migrate ChatStorage to use SpAsyncUtil
2026-06-09 18:13:55 +08:00
admin
904cb3638a
refactor(data): move Result utility to utils and simplify API
...
Relocate the Result type from `@/data/result` to `@/utils/result` and
replace the discriminated-union API (`kind`/`value`) with a simpler
boolean-based API (`success`/`data`) across all repositories and
storage classes for improved readability and consistency.
2026-06-09 10:34:40 +08:00
admin
a240f5965d
feat(data): add repository layer with Auth/Chat/User/Metrics + shared Result<T>
...
引入仓库层(`src/data/repositories/`),对齐原 Dart `lib/data/repositories/`
的四个仓库:Auth(hybrid: API+AuthStorage+UserStorage)、Chat(hybrid:
API+LocalChatStorage via Dexie)、User(纯远程)、Metrics(纯远程)。
同步抽取 4 个 `*_api.ts` 中重复的 envelope-unwrap 代码到
`src/data/api/response_helper.ts`,失败时抛 `ApiError`(之前抛裸 Error)。
新建 `src/data/result.ts` 提供仓库层统一 `Result<T>`(`{success,data}` 形态),
与 `src/data/storage/result.ts`(`{kind,value}` 形态)并存。
更新 `barrelsby.json` 让 `src/data/repositories/` 加入 barrel 生成。
2026-06-08 19:28:02 +08:00