11 Commits (baa01c38bd07573582d680b6ac9a9c3c0a96865d)

Author SHA1 Message Date
Deardo Satria baa01c38bd Memoize getCurrentUser per request and document cache rules
getCurrentUser is wrapped in React cache so pages that call it from
several components validate the session once per request. Cross-request
caching ("use cache", unstable_cache, module-level storage) stays
forbidden for cleo data and sessions: the PHP app writes to the same DB,
and a cached session would keep a logged-out user signed in.

CLAUDE.md and the cleo-code-review skill now state both rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 hours ago
Deardo Satria 76fda6d1c4 Add Indonesian zod messages to pelanggan and tidy rak imports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 hours ago
Deardo Satria 3002e55bc4 Add master group product and sub group product features
Deleting a group or sub group still used by barang (or a group still
used by sub groups) is refused, because PHP queries inner join on these
codes and would silently hide the orphaned barang. Editing a sub group
only changes its name, matching ajaxdlmpdk.php; changing the code pair
would orphan barang the same way.

Group codes are generated automatically, unlike the old PHP form where
they were typed manually.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 hours ago
Deardo Satria 5c89d5714f Add master rak feature 1 day ago
Deardo Satria bc7619210c Add master satuan barang feature
CRUD page for satuan barang following the pelanggan feature pattern:
page, actions, form sheet, delete dialog, and a data layer with LIKE
search and pagination. Delete rejects units still referenced by barang.
1 day ago
Deardo Satria 6f1234aa49 Extract shared pagination, search box, and escapeLike helpers
Pull PER_PAGE, parsePage, and halamanHref into lib/pagination, the search
box into components/cari-master, and escapeLike into lib/utils so other
master features can reuse them. Pelanggan switches to these helpers and
its list now calls getCurrentUser() in its render chain.
1 day ago
Deardo Satria eae4857c9d Add pagination to pelanggan list 2 days ago
Deardo Satria e1c6104004 Fix customer form state, delete dialog, and action conventions 2 days ago
Deardo Satria 3bc5ce6d70 Move logged-in redirect from proxy to login page 2 days ago
Deardo Satria b0bf1d5bf7 Add customer master page with list, add, edit, delete, and search 2 days ago
Deardo Satria 6e512a14fc Add login server action, getCurrentUser, and progress notes 2 weeks ago