nomadro/apps/work
Eric 2b574f7957 Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI.
Secondary-dev Next UI with DnD, labels, stopwatch, archive, activity; pads with revisions; README documents pnpm dev:work-api.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 01:06:26 +08:00
..
overlay Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
scripts Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
.env.example Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
.gitignore Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
docker-compose.yml Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
README.md Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00

Remote work — secondary-dev (Next + FastAPI)

读开源 域模型 后自研,模块化进 Nomadro(Fair Use;非 iframe / 非原样塞 upstream UI):

能力 参考源码 UI API
看板 Planka Project / Board / List / Card / Label / Task / Comment / Action / Stopwatch /social/work/boards · src/modules/work FastAPI work_svc /api/work/v1
文档 Etherpad pad + revisions /social/work/pads 同上

本地

pnpm dev:work-api    # uvicorn work_main:app :8021
pnpm dev             # http://localhost:3000/social/work

门户经 src/app/api/work/v1/[[...path]] 同源代理到 WORK_API_URL(默认 http://127.0.0.1:8021)。

看板能力(Planka 对齐子集)

  • 列 / 卡片拖拽(@hello-pangea/dnd)
  • 列表重命名 · 配色 · 删除;Archive 列
  • 卡片:标签、截止日期(含完成)、秒表、封面色、成员、清单、评论、附件链接、归档 / 删除
  • 看板背景(Planka gradient id → Nomadro 深色配色)
  • 活动流(createCard / moveCard / addMemberToCard / …)

模块拆分:components/board/* · lib/stopwatch.ts · lib/backgrounds.ts。

数据与参考

  • SQLite:data/work/work.sqlite3(或 WORK_DATA_DIR)
  • Upstream 仅参考:apps/work/upstream/*(pnpm work:fetch)
  • Overlay / Docker 辅助:pnpm work:overlay · work:up(产品 UI 不依赖)

反模式

  • iframe / web-view / micro-app 嵌 Planka·Etherpad
  • 跳 work. / pad. 二级域
  • 把整包 upstream SCSS 硬塞进 Next