Commit Graph

11 Commits

Author SHA1 Message Date
admin 2796010971 feat(characters): support character-scoped conversations 2026-07-17 11:42:31 +08:00
admin acabf165cd refactor(chat): consolidate unlock state 2026-07-16 19:49:08 +08:00
admin cf239a51de fix(chat): keep sent messages in view 2026-07-15 19:14:36 +08:00
admin c37a2f9040 feat(chat): implement pull-to-refresh functionality and pagination for chat history 2026-07-15 18:19:35 +08:00
admin 05ca15be48 perf(client): defer chat persistence dependencies 2026-07-15 17:58:06 +08:00
admin 684ae4bf5d fix(chat): suppress paywall for missing unlock 2026-07-15 14:44:12 +08:00
admin ed3e800245 refactor(chat): reorganize helper functions and update imports 2026-07-15 10:59:23 +08:00
admin 2b90f90ab0 refactor(chat): move actors into machine directory 2026-07-15 10:36:22 +08:00
admin 84e677f687 refactor(chat): split machine by business flow 2026-07-14 19:04:32 +08:00
admin 2bc2e1b691 refactor: migrate img tags to next/image and fix hook usage 2026-06-10 19:16:41 +08:00
admin 47591be41c refactor(auth): unify Facebook and Google login into AuthPlatform class
Replace the separate FacebookLogin and GoogleLogin classes with a single
AuthPlatform class that takes a provider name ("facebook" | "google") as a
constructor argument. This consolidates duplicate OAuth sign-in logic behind
one entry point while preserving the existing NextAuth flow.

- Add new src/lib/auth/auth_platform.ts exporting AuthPlatform and
  AuthProvider type
- Update auth-facebook-panel.tsx and splash-button.tsx to use the new API
- Rename initialContext → initialState in the auth machine for consistency
- Update inline docs and comments to reference AuthPlatform

No behavioral change for end users; both providers still route through
NextAuth's signIn() with the same callbacks and cookies.
2026-06-10 18:58:15 +08:00