Commit Graph
25 Commits
Author SHA1 Message Date
Nut.ไปเรื่อยandClaude Sonnet 5 29f2da97da docs: mark income-budget-review plan tasks complete
All backend (Tasks 1-3) and frontend (Tasks 4-7) code written, deployed to
production, and verified end-to-end (Task 8) via a synthetic test record —
except Task 7's manual browser click-through, which needs the user's own
login to confirm visually.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153wBt23EjW125ZsADwWVAs
2026-09-07 19:56:58 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 f0441b9e96 docs: update plan with remark_history stamping fix found during Task 8
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153wBt23EjW125ZsADwWVAs
2026-09-07 19:56:05 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 d93df3c624 docs: add implementation plan for income-budget-review stage
8 tasks: backend table+migration, auto-trigger in ApproveState.cs, service+
controller (status/dashboard/return_for_edit/mark_reviewed), Angular service,
dashboard component (plan-02), shared status component (plan-01/plan-02),
wiring into RequestBudgetContainer, and final verification against real data.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153wBt23EjW125ZsADwWVAs
2026-09-07 17:49:38 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 f834bbefd8 docs: revise review-stage spec — ส่งแก้ไข reopens the chain's last approver
Per feedback: "ส่งแก้ไข" from central review must route back through the
existing income-report chain to its last approver (who can cascade the
rejection further back to the creator via the existing mechanism), not
create a disconnected new status. income_budget_review is now log/history
only — actual in-progress-editing state still comes from
request_expense.is_draft/is_approve directly, and re-entering "รอตรวจสอบ"
happens automatically via the existing is_approve-completion trigger, so
no separate resubmit endpoint or button is needed on income-budget-plan-01.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153wBt23EjW125ZsADwWVAs
2026-09-07 17:36:22 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 5f634c1bf8 docs: add design spec for post-approval central review stage
Design for auto-forwarding a fully-approved income-report request_expense
into a new lightweight review stage surfaced at income-budget-plan-01
(faculty status view) and income-budget-plan-02 (central reviewer actions:
ส่งแก้ไข/ตรวจสอบแล้ว + dashboard + correction history table).

Deliberately introduces a new income_budget_review table rather than
extending the existing approve_state round_no/resubmit mechanism, since
that's hardcoded to request_approve_type "03" (admin-preconfigured queue
per faculty/location) which conflicts with the confirmed requirement that
the central reviewer is a single role covering every faculty/location, not
a named per-unit approver.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153wBt23EjW125ZsADwWVAs
2026-09-07 17:29:39 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 efbc4618c2 docs: add approve_state workflow reference for คำขอแผ่นดิน reuse
Documents the full "ระบุผู้อนุมัติ → ส่งอนุมัติ → อนุมัติ 2 ลำดับ → ส่งแก้ไข" mechanism
as implemented for request_expense/type_id=2 (request_approve_type "04") — data model,
state table, each flow's actual code with comments, and a checklist of gotchas
(display_name_th exact-match matching, denormalized name fields being null,
the is_sent gate) to watch for when adding an equivalent approval flow for
คำขอแผ่นดิน on a new entity.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153wBt23EjW125ZsADwWVAs
2026-09-07 16:46:10 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 75e1f3706e docs: correct spec after implementation research
Approve/reject DO need round_no-aware query filtering (the row_order+1
lookup and the reject index-walk have no is_state guard and would
collide across rounds) - the initial draft's "no changes needed" claim
was wrong. Also: migration auto-applies via Database.Migrate() on
startup, remark_historys round_no can be stamped client-side (no PUT
handler changes needed), and frontend's hasActiveStep()/approveStatus()
need round-scoping too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MNN1mgyALe9skewgUDSMLK
2026-08-20 10:06:09 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 d1297a134c docs: add design spec for request-budget additional approval round
Design for letting users submit a fresh approval round when a
budget-year/faculty/area's request_expense has already been fully
approved but new line items need to go through approval too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MNN1mgyALe9skewgUDSMLK
2026-08-19 13:58:56 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 22c3c84f55 docs: add implementation plan for income budget report Group A (type 1-3)
Bite-sized task breakdown implementing the design in
docs/superpowers/specs/2026-08-05-income-budget-report-native-design.md,
scoped to Group A only (income-budget-report-income1, type_id 1) per the
writing-plans skill's guidance to split independently-testable subsystems
into separate plans. Group B (type 4-6) and Group C (type 10) are explicitly
out of scope, tracked as follow-up plans.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011R9j5gaw2qsoh9ypWQeXxi
2026-08-05 11:57:59 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 da58e1aac8 docs: add design spec for native income-budget-report (replacing SyncFusion)
Design for replacing the SyncFusion spreadsheet on income-budget-report-income1
and its 6 sibling menus with a native Angular tree component. Covers the 3
structurally-distinct document groups found in the real production files
(draft rounds 1-3, allocation/adjustment 4-6, material-cost matrix type 10),
the shift from source-locked-vs-editable data (ร.2/ร.4/ร.5/ร.6 as read-only
source, only committee-adjusted amounts editable), and the new
income_budget_report/income_budget_report_line data model replacing the
.xlsx-blob storage.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011R9j5gaw2qsoh9ypWQeXxi
2026-08-05 11:43:08 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 b46096473b docs: add implementation plan for expense-project-research edit-history view
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01613NaY9LAvy2wFXEeyE5eR
2026-07-22 18:33:05 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 a5de73a39c docs: add design spec for expense-project-research edit-history view
Ports the already-built change-history diff/session UI (backend + shared
Angular logic) from change-project-research-form to expense-project-research,
showing project detail fields (name, plan, output, etc.) instead of a/p
metrics per the requested screenshot layout.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01613NaY9LAvy2wFXEeyE5eR
2026-07-22 18:22:32 +07:00
Nut.ไปเรื่อย b4a4994694 docs: add implementation plan for in-plan report submit/review bug fix 2026-07-22 08:01:08 +07:00
Nut.ไปเรื่อย f536274376 docs: add in-plan report submit/review bug-fix design spec 2026-07-22 07:56:59 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 8e7a0cba4c docs: add implementation plan for out-of-plan report submit/review
Task-by-task plan (routes/menu, review-tab components, container wiring,
report-form lock/badge/buttons, submit list UI, e2e verification) for the
design in docs/superpowers/specs/2026-07-21-out-of-plan-report-review-design.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01613NaY9LAvy2wFXEeyE5eR
2026-07-21 23:20:36 +07:00
Nut.ไปเรื่อยandClaude Sonnet 5 d24f73d119 docs: add out-of-plan report submit/review design spec
Design for adding a "ส่งงานแผน" submit flow to the out-of-plan report
list plus a new reviewer menu "ตรวจสอบรายงานผล(นอกแผน)", mirroring the
existing check-project-report status_id flow with no backend changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01613NaY9LAvy2wFXEeyE5eR
2026-07-21 22:58:37 +07:00
Nut.ไปเรื่อย 2a581b1731 docs: add responsive-shell phase 1 design spec (sidebar auto-rail on tablet) 2026-07-07 00:55:14 +07:00
Nut.ไปเรื่อย d627a121d8 docs: add sidebar icon-rail collapse design spec 2026-07-07 00:05:34 +07:00
Nut.ไปเรื่อย 5bc4f8333f docs: add visual reskin implementation plan 2026-07-06 21:12:54 +07:00
Nut.ไปเรื่อย 8034afed6a docs: add visual reskin design spec (sidebar, tables, buttons, badges, icons, font) 2026-07-06 21:06:20 +07:00
Nut.ไปเรื่อย 976710f2da docs: add between-year draft/send-to-planning workflow design spec 2026-07-06 18:29:15 +07:00
Nut.ไปเรื่อยandClaude Sonnet 4.6 2fbb0b3d51 feat: add Thai date selector, HTML prototypes, and SQL script
- Replace xlsx with exceljs in construction calculator; switch date input to Thai Buddhist Era selectors
- Add disbursement plan preview HTML and schedule table prototype
- Add sync_budget_come_from SQL script
- Add budget type select menu design plan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 10:13:05 +07:00
Nut.ไปเรื่อย 2b01bec262 docs: add disbursement plan research implementation plan 2026-06-17 12:08:13 +07:00
Nut.ไปเรื่อย 5a94f2481f docs: add disbursement plan research design spec 2026-06-17 12:04:26 +07:00
Nut.ไปเรื่อย c21b125fc6 chore: add construction installment calculator design spec and plan 2026-05-28 12:48:48 +07:00