Repository navigation
eNotify × Vikunja 集成(前端):设置页「集成」页签 + 历史来源徽章 - #174
Merged
todosdev[bot] merged 3 commits intoNov 5, 2026
Merged
Conversation
added 3 commits
November 5, 2026 09:58
Add an Integrations settings tab that drives the frozen /api/me/integrations/vikunja contract (create, one-time secret, enable switch, base URL, rotate, delete) plus a Vikunja source badge in notification history and zh/en copy. Keeps the active settings tab scrolled into view now that seven tabs can overflow the tab bar. Checkpoint: MTWnOZp_8OrAA18H-Ej4e
Send only `enabled` on toggle and only `base_url` on save, stop refreshes from discarding an in-progress address edit, add noValidate plus aria wiring, give copy and flash their own timers, render the Vikunja guide only once configured, drop the unused locale key, and let the seven-tab bar wrap instead of scrolling off-screen. Checkpoint: 210UTe58QNf3crKvuc3UN
…b underline Refresh with the address field after a 409 so a failed first load cannot wipe the stored base_url, and replace the resize-only listener with a ResizeObserver over the tab strip so a language switch (new widths, new row count) moves the underline to the active tab's row. Checkpoint: Ko45WoKPh-Xpk5MPwHj-n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
web/src/pages/settings/SettingsPage.tsxIntegrationsTab(与同文件的ApiKeysTab同风格):window.location.origin + /api/integrations/vikunja/{hook_token})带复制、启用开关(components/ui/switch)、Vikunja 地址输入与保存、轮换 secret 与删除各走components/ConfirmDialog、创建/更新时间。图标用 lucide。{enabled}、保存地址只发{base_url},互不影响输入框里未保存的草稿;409(服务端已存在)与 404(已不存在)都有收敛路径,并回填 / 清空地址。noValidate让应用自己的本地化提示生效(不被浏览器原生气泡抢先),aria-invalid与aria-describedby关联到错误或提示段落。task.reminder.fired与tasks.overdue、不要同时勾task.overdue。overflow-x-auto改为flex-wrap,下划线按激活页签所在行定位;ResizeObserver观察页签栏与各页签,语言切换 / 窗口缩放后重新测量。web/src/pages/history/HistoryPage.tsxSOURCE_LABEL_KEYS增加vikunja: "history.sourceVikunja"(桌面表格、移动卡片与详情共用同一徽章组件)。web/src/locales/zh.json/en.jsonsettings.integrations、integrations命名空间(43 键,中英键集合一致)与history.sourceVikunja;组件内无硬编码文案。Testing
pnpm typecheck、pnpm build、pnpm test(23 files / 301 tests)、pnpm format:check、改动文件的biome lint:全绿。/api;接口路径与请求/响应形状严格按冻结契约实现,未为迁就 mock 改动任何字段。后端合入后需用真接口复跑一次创建 / 开关 / 轮换 / 删除与历史徽章。