Commit Graph

45 Commits

Author SHA1 Message Date
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 95331cb8e6 chore:Remove the redundant safety save button; Use English comments 2025-09-14 23:25:16 +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 0747898f3c chore:Use English notes 2025-09-08 00:38:59 +08:00
david_bai 99c927f5c7 clear up code 2025-09-07 21:21:43 +08:00
david_bai ec6a18dfc0 fix:Adapting to Firefox browser, not yet completed 2025-09-05 00:19:33 +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 7b9138ed08 fix(UI):Optimize mobile layout
The copy in the extraction method has been added with a fallback mechanism to improve adaptability
2025-08-25 00:04:03 +08:00
david_bai a0554fb185 fix:Fix the download status synchronization issue.
Fix the issue where download cannot find file (status synchronization problem).
Change postLogInDebug to postLogToBackend for better understanding.
2025-08-18 23:26:56 +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 e15783aeff refactor:Refactored the useFileTransferHandler hook
Using zustand for state management, created frontend/stores/fileTransferStore.ts
2025-08-16 23:47:48 +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 f98e836e71 fix:fix the issue of asynchronous exit room status in the receiver 2025-08-14 23:13:09 +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 7038e79726 fix:Change the behavior of reloading the webpage when the receiver exits the room to a more elegant approach 2025-08-13 22:53:49 +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 9ce63992b7 Fix the problem of resuming downloads when the webpage is closed or the network is disconnected. Further testing is needed. 2025-07-19 00:24:44 +08:00
david_bai dfb1b48df8 fix type error 2025-06-23 23:29:20 +08:00
david_bai f09452ac2a reformat all ts code via prettier 2025-06-22 21:34:54 +08:00
david_bai e62a8f9573 translate frontend/hooks & frontend/lib 2025-06-22 10:05:00 +08:00
david_bai 75901898a1 加入日志 2025-06-08 19:42:30 +08:00
david_bai 60f42eb548 修改BaseWebRTC 的配置注入 2025-06-07 19:17:52 +08:00
david_bai 27ed495571 移动文件 2025-06-07 16:10:45 +08:00
david_bai 21bfb1762a 将国际化文本模板替代函数直接放到使用的地方 2025-06-07 13:56:57 +08:00
david_bai 7d2983951b 做了一点微调 2025-06-07 12:20:55 +08:00
david_bai 1559aa368e 移动位置 2025-06-03 23:24:15 +08:00
david_bai 5459d17abf 剪贴板相关优化,未测试 2025-06-03 23:16:31 +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 ac5f1dc260 初步测试ok 2025-05-27 22:19:31 +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
david_bai be442ce261 补加 2025-05-24 19:24:13 +08:00
david_bai 4d3eb551c7 前端备份 2025-05-23 22:41:56 +08:00