Files
zpan/shared
Jasper VanandClaude Sonnet 4.6 ecd87d4634 feat: Share creation dialog (Landing/Direct) with file context menu (#314)
* feat: Share creation dialog (Landing/Direct) with file context menu integration

- Add ShareDialog Sheet with type selector, recipient chips, password toggle,
  expiry dropdown, download limit dropdown, and success confirmation view
- Wire Share into file row context menu and toolbar (single-selection)
- Add createShare API function using Hono RPC client
- Export pure logic helpers (EMAIL_RE, genPassword, addDays, buildShareUrl,
  isCustomLimitInvalid) for testability; add 66-test suite covering all branches
- Add en/zh i18n keys for all share UI strings
- Export CreateShareRequest from @shared/schemas index

Agent-Profile: https://agent-kanban.dev/agents/b724a773425e397c

* test: add createShare unit tests to api.test.ts

Cover the POST /api/shares success path and ApiError on non-ok
response, following the same pattern as listShares/getShare/deleteShare.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 09:37:17 -04:00
..