eCourt-note/lib
Your Name 2d466efd4f fix(note): address code review findings
- restoreVersion: ผ่าน validateAnnotationData ก่อน insert สาขา
  "ต้นทางถูกลบ" ให้สมมาตรกับสาขา update (invariant #8)
- PDFViewer: track timer ล้าง exportError ใน ref — กัน export พัง
  สองรอบติดกันแล้ว timer รอบแรกเคลียร์ error รอบหลังก่อนเวลา
- useHistory: เพิ่ม onError — undo/redo ล้มแสดง toast ผ่าน
  showActionError แทนหายเงียบ ๆ
- DebugConsole: ไม่โหลด Eruda จาก CDN ใน production build
  (ระบบ intranet + token อยู่ใน origin เดียวกัน)
- NoteHome: ตัด dead state session ที่ render ไม่ได้อ่าน
- note-auth: export SSO_REQUIRED_BANNER ให้หน้า gate ใช้ตรง ๆ
  ถอด non-null assertion ใน AnnotateView + bookmarkDepthOf

Verify: npx tsc --noEmit ผ่าน · vitest 317/317 ผ่าน

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-02 10:01:00 +07:00
..
addin-ticket.ts Refactor ticket verification and installation scripts 2026-10-28 14:42:03 +07:00
annotate-events.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
document-versioning.ts fix(docver): drop fields value limit + treat history 404 as empty in add-in 2026-10-27 13:14:04 +07:00
docver-store.ts Refactor ticket verification and installation scripts 2026-10-28 14:42:03 +07:00
docver-token.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
external-api-auth.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
external-api.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
external-import.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
lib-tmpl.ts Fix build time fail: export applyTemplate not compatible with Next.js(move to lib-tmpl), add var in .env.example 2026-10-27 10:15:35 +07:00
lib-utils.ts Add generate API, Prototype for developer, Clean data 2026-10-27 01:47:08 +07:00
note-auth.ts fix(note): address code review findings 2026-11-02 10:01:00 +07:00
note-session.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
note-token.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
openapi.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
pdf-actual-text.ts ซ่อม text ไทย PDF (ActualText) + revalidatePath ทุก action + คีย์ลัด DEL + ตรายาง label บรรทัดเดียว 2026-09-11 13:28:35 +07:00
remote-file.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
server-pdf.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00