Commit Graph

26 Commits

Author SHA1 Message Date
david_bai 7a1ab18657 refactor(i18n): stabilize schema and restore locale translations
Align the next-intl message schema across components, hooks, and locale files so the frontend uses one canonical structure instead of compile-first workarounds. Restore Spanish, French, German, Japanese, and Korean translations to the new schema while narrowing clipboard hook dependencies to translation contracts.
2026-03-27 17:13:31 +08:00
david_bai 57004b3a1f refactor(i18n): normalize translation keys
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-27 14:04:28 +08:00
david_bai 0d830114cd feat(ui): extract reusable one-shot slow-hint hook; refactor join(3s) and RTC negotiate(8s) hints; share rtcPhase mapper; update docs 2025-12-06 11:05:39 +08:00
david_bai 761921684c feat(ui): add 8s P2P slow-connect hint + i18n; document full connection feedback flows
- Hook (useConnectionFeedback):
      - Add SLOW_RTC_MS=8000 timer when entering negotiating
      - Foreground-only; pending while hidden; show once per negotiation attempt
      - Clear timers on connect/disconnect; reset attempt flags when leaving negotiating
      - Cleanup timers on unmount
  - i18n:
      - Add required key ClipboardApp.rtc_slow to types
      - Provide translations for zh, en, ja, es, de, fr, ko
  - Docs:
      - flows.zh-CN: add UI connection feedback state machine covering
        join_inProgress (immediate), join_slow (3s), join_timeout (15s),
        rtc_negotiating, rtc_slow (8s), rtc_connected, rtc_reconnecting, rtc_restored;
        document equivalent success signals and visibility gating
      - code-map.zh-CN: outline responsibilities/locations for useRoomManager (join slow/timeout)
        and useConnectionFeedback (negotiation slow, reconnect/restored)
2025-12-05 19:10:00 +08:00
david_bai 2f5ed92188 feat(frontend): send initiator-online after sender rejoins with cached/long room ID
- Add forceInitiatorOnline flag to webrtcService.joinRoom
  - Trigger initiator-online for sender when joining with >=8-char IDs
2025-10-31 12:47:46 +08:00
david_bai 8627544946 chore:Exit the room even if it is in transit 2025-09-13 20:01:02 +08:00
david_bai a82ca50ee9 fix:Fix the issue of failing to join room with simple IDs
fix:Fix the issue of failing to join room with simple IDs
2025-09-01 00:04:31 +08:00
david_bai 5af2e8db37 chore:Use English comments instead of Chinese 2025-08-31 23:34:52 +08:00
david_bai bb21c90a4e fix:Fix the incomplete cleanup issue when the receiver exits the room 2025-08-17 23:56:09 +08:00
david_bai caa861f1bb refactor:Optimize chaotic state management 2025-08-17 15:44:59 +08:00
david_bai cbbfae2733 fix:Fix the download count display issue 2025-08-17 13:24:41 +08:00
david_bai 20607be9aa fix:The recipient needs to clean the connection when leaving the room 2025-08-17 12:14:26 +08:00
david_bai 75f9ff39ae fix:Now there is a progress bar for file transfer 2025-08-17 10:10:40 +08:00
david_bai 083206bed3 refactor:Refactored the useRoomManager,useWebRTCConnection hook 2025-08-17 07:57:29 +08:00
david_bai 7ee9360b17 feat:Receiver adds a secure save button
Receiver adds a secure save button, used to save cache files during connection interruptions, making it convenient to resume transfers next time.
Button tooltip information added in multiple languages.
2025-08-15 23:49:24 +08:00
david_bai bf9aa9f7ed fix:Fix the bug where the sender's room status is incorrect 2025-08-15 22:59:54 +08:00
david_bai 307232bd15 fix:Attempt to fix the issue of asynchronous exit room status in the receiver 2025-08-14 23:02:33 +08:00
david_bai abe3220d0f feat:The sender side has also added the exit room function 2025-08-13 23:41:35 +08:00
david_bai 12cda8c030 fea:Add an elegant exit room feature for the recipient 2025-08-10 23:16:59 +08:00
david_bai e62a8f9573 translate frontend/hooks & frontend/lib 2025-06-22 10:05:00 +08:00
david_bai 21bfb1762a 将国际化文本模板替代函数直接放到使用的地方 2025-06-07 13:56:57 +08:00
david_bai 615f99fc8b 优化ID输入框反应速度 2025-05-28 23:37:50 +08:00
david_bai 0f9e65f4f8 恢复新连接默认发送元信息功能 2025-05-28 22:56:20 +08:00
david_bai 7eb7fd458f 更新,未测试 2025-05-27 20:37:16 +08:00
david_bai 94425613dd 防抖间隔弄短,体验会好点 2025-05-24 22:55:18 +08:00
david_bai f039859030 拆分出来,测试ok 2025-05-24 22:47:40 +08:00