APP · App shell
The app shell is what every page of apps/web sits in: the sign-in page, the guard that sends a signed-out visitor there, sign-out (Keluar), each role's landing page, the menu, the user card and language switch at the bottom of the sidebar, the header, the design preview and the pages that show an error. The database still decides what a user may read and write (D3, R-ACC-49); the shell only routes and shows. Playwright proves these rules on the local stack with the E2E logins (D19), in FE pack E (#19). Code APP.
Not yet a rule
Section titled “Not yet a rule”- A member who holds several roles at a pool, or an organization's own role, lands where the first of /dashboard, /collection, /screening and /gate that their permissions open says, as built in FE pack C. Whether that is the rule for them is asked on #188; R-APP-04 covers one system role.
- Error pages outside the shell's pages (/login, /no-access and /design-preview): which of R-APP-07 to R-APP-09 they follow is asked on #201.
- What Keluar ends besides this browser's session. Asked on #188; R-APP-03 covers this browser.
Related rules on other pages: a request whose login token is older than the user's last access change is sent to /login (R-ACC-48, D37, D48); a member with no role at any pool holds nothing (R-ACC-04).
R-APP-01 · A visitor with no session who opens any page other than /login is sent to /login
Section titled “R-APP-01 · A visitor with no session who opens any page other than /login is sent to /login”- Status: built
- Example: given a browser with no Opleet session, when it opens /dashboard, /vehicles or /, then it lands on /login, with no query string; /login itself opens.
- Refusal: none: proxy.ts redirects to /login.
- Who: every visitor without a session. proxy.ts checks the session with getClaims() on every request (D13). /design-preview is the one other page that may open signed out, and only in a build where it is on (R-APP-06).
- Source: FE's "Needs from docs" of 2026-10-06 (signed out), in M0 · Monorepo move; FE pack B (FE-M0-07); D13.
R-APP-02 · A sign-in with a wrong email or password stays on /login, showing "Email atau kata sandi salah." with the email still filled in
Section titled “R-APP-02 · A sign-in with a wrong email or password stays on /login, showing "Email atau kata sandi salah." with the email still filled in”- Status: built
- Example: given the E2E finance login, when it signs in with a wrong password, then /login shows "Email atau kata sandi salah." and the email field still holds its email; an email with no login gets the same text, so the page never says which of the two was wrong.
- Refusal: none: Supabase Auth's error code invalid_credentials, worded by apps/web from the code, never from Auth's message (D10). The text is t('auth.sign_in.invalid'): Indonesian by default, "Wrong email or password." for a visitor whose language is English (D29).
- Who: every visitor signing in.
- Source: FE's "Needs from docs" of 2026-10-06 (wrong password), in M0 · Monorepo move; FE pack B (FE-M0-07); D7, D29.
R-APP-03 · After Keluar, this browser's session has ended, so the next page it opens is /login
Section titled “R-APP-03 · After Keluar, this browser's session has ended, so the next page it opens is /login”- Status: built
- Example: given the E2E checker signed in on /dashboard, when they press Keluar, then they land on /login, and opening /dashboard again sends them back to /login.
- Refusal: none.
- Who: every signed-in user, from the user card's menu (R-APP-27) or the /no-access page.
- Source: FE's "Needs from docs" of 2026-10-06 (sign-out), in M0 · Monorepo move; FE pack B (FE-M0-07) and pack C (FE-M0-10).
R-APP-04 · After sign-in, a member holding one system role at the current pool lands on its page: finance on /collection, satpam on /gate, background_check on /screening, every other role on /dashboard
Section titled “R-APP-04 · After sign-in, a member holding one system role at the current pool lands on its page: finance on /collection, satpam on /gate, background_check on /screening, every other role on /dashboard”- Status: built
- Example: given the E2E satpam login, when it signs in, then it lands on /gate; the E2E viewer lands on /dashboard, and the E2E background_check on /screening.
- Refusal: none.
- Who: the 11 system roles (R-ACC-87). A member with no role at any pool lands on /no-access instead (R-ACC-04).
- Source: FE's "Needs from docs" of 2026-10-06 (landing page), in M0 · Monorepo move; [Ref] Roles, permissions and row-level security (each role's landing page, as the generated roles page lists it); FE pack C (FE-M0-09).
R-APP-05 · A system role's menu at a pool shows the pages its v1 role's menu had, renamed to v2, except v1's Backup and D96's gate changes
Section titled “R-APP-05 · A system role's menu at a pool shows the pages its v1 role's menu had, renamed to v2, except v1's Backup and D96's gate changes”- Status: retired (Notifikasi leaves the menu for the header's bell, R-APP-26; restated as R-APP-25; zuki 2026-11-17, #654)
- Example: given the E2E satpam login, when its menu is read, then it holds Gate and Log aktivitas and nothing else; the E2E finance menu holds Persetujuan gate, Gate, ETLE, Collection, Pembayaran, Rental harian, Master data, Laporan and Log aktivitas, and no Dasbor.
- Refusal: none. A page outside the menu, opened by its address, shows the refusal page; the database refuses its data either way (R-ACC-09).
- Who: the 11 system roles (R-ACC-226). Each menu item opens with one permission held at the current pool, except Persetujuan gate, which opens with any of four (R-APP-15), and Master data, which opens with master_data:read or payment:approve, so a grant or deny override (R-ACC-05, R-ACC-06) adds or removes its pages. The named exceptions: v1's Backup has no v2 page, because Supabase keeps the backups. The gate's permissions follow D96 (#584), not v1: admin_driver, maintenance, asuransi and checker lose v1's Admin Approval (Persetujuan gate); admin_fleet gains Admin Approval and Gate In / Out (Gate); finance gains Gate In / Out. Master data opens with payment:approve too, so finance, admin and super_admin reach it; finance sees only Jenis tagihan there, to change default due days (R-MD-16), and not Grup harga (R-MD-12).
- Source: FE's "Needs from docs" of 2026-10-06 (menu), in M0 · Monorepo move; the v1 to v2 permission names and the v1 menus each opens (from [Ref] Roles, permissions and row-level security, brought here by #189); FE pack C (FE-M0-09), which drops Backup because Supabase keeps the backups; D96 and zuki in the session on #637 (the menus follow D96's gate permissions); zuki on #458 (2026-11-17: Master data opens with master_data:read or payment:approve).
R-APP-06 · /design-preview is off unless the build sets NEXT_PUBLIC_DESIGN_PREVIEW=1: a signed-in user gets 404 and a signed-out visitor is sent to /login
Section titled “R-APP-06 · /design-preview is off unless the build sets NEXT_PUBLIC_DESIGN_PREVIEW=1: a signed-in user gets 404 and a signed-out visitor is sent to /login”- Status: built
- Example: given a build with NEXT_PUBLIC_DESIGN_PREVIEW unset, as on staging, production and in CI, when the E2E admin opens /design-preview, then the page answers 404; a browser with no session lands on /login.
- Refusal: none: the 404 page of R-APP-07.
- Who: every visitor. The variable is compiled into the build, so only a build made with it set to 1 shows the preview; FE sets it on a Mac only.
- Source: FE's "Needs from docs" of 2026-10-06 (design preview), in M0 · Monorepo move; FE pack A (FE-M0-05) and pack B (FE-M0-07).
R-APP-07 · An address that matches no page, opened by a signed-in user, shows a 404 page in the user's language inside the shell, with a link to their landing page
Section titled “R-APP-07 · An address that matches no page, opened by a signed-in user, shows a 404 page in the user's language inside the shell, with a link to their landing page”- Status: built
- Example: given the E2E checker signed in, when they open /tidak-ada, then the response is 404 and the page shows the shell's menu, a short text in Indonesian and a link to /dashboard, their landing page (R-APP-04); with English chosen, the text is English. /payments, which is in the page list but outside their role, shows the refusal page instead (R-APP-25). A browser with no session that opens /tidak-ada lands on /login (R-APP-01).
- Refusal: none: Next.js's notFound(), shown by the shell's not-found page.
- Who: every signed-in user with a pool. A login with no role at any pool goes to /no-access first (R-ACC-04).
- Source: the CTO's plan on #201; Next.js, Error handling (Not found); D29.
R-APP-08 · An unexpected failure while a page renders shows an error page in the user's language that keeps the menu, with "Coba lagi" and a reference to quote, and never the error's own text
Section titled “R-APP-08 · An unexpected failure while a page renders shows an error page in the user's language that keeps the menu, with "Coba lagi" and a reference to quote, and never the error's own text”- Status: built
- Example: given the E2E admin signed in, when a page in the shell fails while rendering, then the menu stays, the page area shows a short text in Indonesian, a reference such as "Ref: 3527449198" and a "Coba lagi" button, and no part of the error's message, stack or details; pressing "Coba lagi" renders the page again, and it shows if it no longer fails. With English chosen, the text is English.
- Refusal: none: Next.js's error boundary for the shell's pages. The error is reported with its reference only, never its message or details (D15, D10).
- Who: every signed-in user, on every page inside the shell. A request with a stale or missing session never reaches it: proxy.ts sends it to /login first (R-APP-01, R-ACC-48, D37).
- Source: the CTO's plan on #201; Next.js, Error handling (Handling uncaught exceptions); D15, D29.
R-APP-09 · A failure of the shell or the root layout shows a plain page, Indonesian first and English below, with a retry button and a link to /login, that needs no database or catalog
Section titled “R-APP-09 · A failure of the shell or the root layout shows a plain page, Indonesian first and English below, with a retry button and a link to /login, that needs no database or catalog”- Status: built
- Example: given the E2E admin signed in, when the shell's layout fails as it loads (its read of the user's permissions errors), then a plain page shows a short Indonesian text with the same in English below it, a button that tries again and a link to /login, and no menu, no error text and no detail; it shows the same whichever language the user chose.
- Refusal: none: Next.js's error boundary above the shell, or the global error page when the root layout fails.
- Who: every visitor. The page reads nothing from the database or the language catalog, so it shows when they are the failure.
- Source: the CTO's plan on #201; Next.js, Error handling (Global errors); D7, D15.
R-APP-10 · A refusal or a failed request from a button or form shows text next to that control, in the user's language, through the error mapper; the page stays and no error page appears
Section titled “R-APP-10 · A refusal or a failed request from a button or form shows text next to that control, in the user's language, through the error mapper; the page stays and no error page appears”- Status: built
- Example: given the E2E admin on a page, when a button's request is refused by the database with a known error key, then the text for that key shows beside the button in Indonesian (or English), the rest of the page stays as it was, and neither R-APP-08's nor R-APP-09's page appears; when the request fails with no answer, the mapper's general text shows in the same place.
- Refusal: the error key the database raised, worded by apps/web's one mapper (D10, D30); a key or a failure the mapper doesn't know shows error.unknown's text and is reported without its message or details (D15).
- Who: every signed-in user, on every button and form that calls the database. Sign-in words Supabase Auth's codes itself (R-APP-02).
- Source: the CTO's plan on #201; Next.js, Error handling (Handling expected errors; error boundaries don't catch errors in event handlers); D10, D29.
R-APP-11 · The sidebar ends, under the navigation, with an account block that holds the signed-in member's email, Keluar, the language switch and the theme switch
Section titled “R-APP-11 · The sidebar ends, under the navigation, with an account block that holds the signed-in member's email, Keluar, the language switch and the theme switch”- Status: retired (the account block is now the user card, R-APP-16 to R-APP-19, with the language switch above it, R-APP-20, and the theme switch in the header, R-APP-21; zuki 2026-11-17, #654)
- Example: given the E2E checker signed in, when the sidebar is read, then under the navigation it shows a block at its bottom edge with the checker's email, a Keluar button, the language switch (Bahasa Indonesia · English, R-APP-02's t()) and the theme switch (light · dark); the pool switcher is not in it (it stays in the header).
- Refusal: none. Keluar behaves as R-APP-03 words it, and the language and theme switches keep their current behaviour; only their place changes.
- Who: every signed-in user with a pool, whose sidebar shows.
- Source: zuki's proposal of 2026-11-12 (#618); R-APP-02, R-APP-03; D29; the journey in
apps/web/e2e/account-block.spec.tsproves it (run 2026-11-13, 4 passed).
R-APP-12 · When the navigation is longer than the viewport, the navigation scrolls and the account block stays visible
Section titled “R-APP-12 · When the navigation is longer than the viewport, the navigation scrolls and the account block stays visible”- Status: built
- Example: given the E2E admin signed in with a viewport short enough that the menu doesn't fit, when the page opens, then the navigation scrolls inside the sidebar while the account block, the user card of R-APP-16, stays pinned at the bottom, visible without scrolling, so Keluar is one press away through the card's menu (R-APP-27) from every page.
- Refusal: none.
- Who: every signed-in user with a pool.
- Source: zuki's proposal of 2026-11-12 (#618), the Slack/Linear pattern; the journey in
apps/web/e2e/account-block.spec.tsproves it (run 2026-11-13, 4 passed).
R-APP-13 · The header holds the logo and the pool switcher, and none of the account: no email, no Keluar, no language or theme switch
Section titled “R-APP-13 · The header holds the logo and the pool switcher, and none of the account: no email, no Keluar, no language or theme switch”- Status: retired (the theme switch moves into the header, R-APP-21; zuki 2026-11-17, #654)
- Example: given the E2E checker signed in, when the header is read, then it shows the logo and the pool switcher and nothing else of the account block's items; the email, Keluar, language and theme are only in the sidebar's account block (R-APP-11) and the mobile menu (R-APP-14).
- Refusal: none.
- Who: every signed-in user with a pool.
- Source: zuki's proposal of 2026-11-12 (#618); the journey in
apps/web/e2e/account-block.spec.tsproves it (run 2026-11-13, 4 passed).
R-APP-14 · The mobile menu carries the same account block as the sidebar: the member's email, Keluar, the language switch and the theme switch
Section titled “R-APP-14 · The mobile menu carries the same account block as the sidebar: the member's email, Keluar, the language switch and the theme switch”- Status: retired (below lg the sidebar is a drawer with the navigation, the language switch and the user card, R-APP-22; the theme switch is in the header, R-APP-21; zuki 2026-11-17, #654)
- Example: given the E2E checker signed in on a phone-width viewport, when the mobile menu is opened, then it shows the navigation and, at its bottom, the same account items as R-APP-11: email, Keluar, language and theme; pressing Keluar there ends the session as R-APP-03 words it.
- Refusal: none.
- Who: every signed-in user with a pool, on a viewport where the sidebar is the mobile menu.
- Source: zuki's proposal of 2026-11-12 (#618); R-APP-03; D29; the journey in
apps/web/e2e/account-block.spec.tsproves it (run 2026-11-13, 4 passed).
R-APP-15 · Persetujuan gate shows in the menu to a member holding any of the four gate approvals at the current pool
Section titled “R-APP-15 · Persetujuan gate shows in the menu to a member holding any of the four gate approvals at the current pool”- Status: built
- Example: given a finance user at PML, who holds gate_debt:approve, and an admin_fleet user at PML, who holds the other three, when their menus are read, then both hold Persetujuan gate; a checker at PML, who holds none, doesn't, until one is delegated to them (R-ACC-234).
- Refusal: none. The database still refuses the approvals they lack (R-GATE-20 to R-GATE-23).
- Who: every member; R-ACC-223 lists the holders.
- Source: D96 (gate:approve goes; each aspect has its own permission); #593.
R-APP-16 · The sidebar ends, under the navigation, with a user card that shows an initials avatar, the member's name and under it the current pool, and no email beside the name, no organization and no online dot
Section titled “R-APP-16 · The sidebar ends, under the navigation, with a user card that shows an initials avatar, the member's name and under it the current pool, and no email beside the name, no organization and no online dot”- Status: built
- Example: given the E2E checker signed in on a wide viewport, when the sidebar is read, then its bottom edge holds one card: a round avatar reading "EC", the name "E2E checker" (semibold, small) on one line, under it the current pool as the pool switcher labels it (such as PML), muted, and a chevron; the checker's email, the organization's name and any presence dot appear nowhere on the card. A member with no full name sees their email as the name (R-APP-17), and nothing beside it. Choosing another pool in the card's menu (R-APP-27) changes the pool line. The roles that join that line are R-APP-18's, which is planned; until it is built the line shows the pool alone. Pressing the card opens its menu (R-APP-27).
- Refusal: none.
- Who: every signed-in user with a pool, whose sidebar shows.
- Source: zuki 2026-11-17, #654; the layout follows zuki's reference artifact "Opleet Fleet Demo" (reference only); replaces R-APP-11.
R-APP-17 · The user card's name is the member's full name from their profile, or their email when the profile has none, and its avatar's initials come from whichever shows
Section titled “R-APP-17 · The user card's name is the member's full name from their profile, or their email when the profile has none, and its avatar's initials come from whichever shows”- Status: built
- Example: given the E2E checker, whose profiles.full_name is "E2E checker", when their card is read, then it shows "E2E checker" and the avatar "EC". The initials are the first letter of the first word and of the last word, uppercased, at most two: "Budi Agus Santoso" gives "BS", the one word "Budi" gives "B". Given a member whose full_name is empty, the card shows their email, and the avatar shows the email's first letter, uppercased: budi@example.com gives "B". The profile is read through PostgREST under the member's own session (D3, D13).
- Refusal: none.
- Who: every signed-in user with a pool.
- Source: zuki 2026-11-17, #654; the lead's answer in Align (profiles.full_name, the email as the fallback).
R-APP-18 · The user card's pool line also lists the member's roles at that pool, after the pool, in one truncated line
Section titled “R-APP-18 · The user card's pool line also lists the member's roles at that pool, after the pool, in one truncated line”- Status: planned
- Example: given the E2E checker signed in, when the card is read, then the line under the name reads the pool, then the checker role's label from its code through t() in the user's language, such as "PML · Checker"; given a member holding a system role and an organization's own role at PML and one role at another pool, then at PML the line joins the system role's label and the custom role's name as typed with a comma after "PML · ", cut off with an ellipsis when wider than the card, and after the pool switcher in the card's menu moves to the other pool it shows that pool and its one role.
- Refusal: none. The roles are read under the member's own session (D3). Today row-level security refuses that read to a member without user:read (member_roles_read, roles_read), so the roles wait for the backend to let a member read their own roles.
- Who: every signed-in user with a pool.
- Source: zuki 2026-11-17, #654, carried over to #660; D7 (system roles through t()); the role labels of #652.
R-APP-19 · Pressing the user card opens a menu that holds the label AKUN, the member's email, the pool switcher and Keluar, and nothing else
Section titled “R-APP-19 · Pressing the user card opens a menu that holds the label AKUN, the member's email, the pool switcher and Keluar, and nothing else”- Status: retired (the menu adds Profil, restated as R-APP-27; zuki 2026-11-18, #638)
- Example: given the E2E checker signed in, when they press the card, then a menu opens upward, as wide as the card, showing the label AKUN (Account in English, through t()), the checker's email as a muted line under it, the pool switcher with the member's pools (choosing one switches the pool as the switcher always has; only its place changes), a separator and Keluar styled as destructive; it holds no Profil or Pengaturan item. Pressing Keluar ends the session as R-APP-03 words it.
- Refusal: none.
- Who: every signed-in user with a pool.
- Source: zuki 2026-11-17, #654; R-APP-03; D7, D29 (Indonesian first); zuki 2026-11-17, #654 (the pool switcher moves from the header into this menu).
R-APP-20 · The language switch sits in the sidebar directly above the user card
Section titled “R-APP-20 · The language switch sits in the sidebar directly above the user card”- Status: built
- Example: given the E2E checker signed in on a wide viewport, when the sidebar is read, then the language switch (ID · EN) is the last thing above the user card (R-APP-16), below the navigation; choosing EN changes the page's text as before, and the switch is in neither the header nor the card's menu.
- Refusal: none.
- Who: every signed-in user with a pool, whose sidebar shows.
- Source: zuki 2026-11-17, #654; replaces the language part of R-APP-11.
R-APP-21 · The header holds the notification bell and the theme switch at every width, the logo below 1024 pixels wide, and no pool switcher and nothing of the account
Section titled “R-APP-21 · The header holds the notification bell and the theme switch at every width, the logo below 1024 pixels wide, and no pool switcher and nothing of the account”- Status: built
- Example: given the E2E checker signed in, when the header is read at 390 and at 1440 pixels wide, then both show the notification bell (R-APP-26, for a holder of fleet_monitor:read) and the theme switch (light · dark); at 390 the header also shows the logo, while at 1440 the logo is at the top of the sidebar and not in the header, so the page shows one logo at either width, and that logo links to the member's landing page (R-APP-04): /dashboard for the checker. Neither shows the pool switcher (it is in the user card's menu, R-APP-27), the email, Keluar, the language switch or the user card.
- Refusal: none. The theme switch keeps its current behaviour; only its place changes.
- Who: every signed-in user with a pool.
- Source: zuki 2026-11-17, #654; the lead's answers in Align (the header at every width) and on fe's review (one logo: the sidebar's at 1024 pixels and up, the header's below); zuki 2026-11-17, #654 (the pool switcher leaves the header); replaces R-APP-13.
R-APP-22 · Below 1024 pixels wide, the sidebar is a drawer from the left that holds the navigation, the language switch and the user card
Section titled “R-APP-22 · Below 1024 pixels wide, the sidebar is a drawer from the left that holds the navigation, the language switch and the user card”- Status: built
- Example: given the E2E checker signed in at 390 pixels wide, when they open the menu, then a drawer slides in from the left with the navigation, the language switch and, at its bottom, the same user card as R-APP-16; pressing the card opens the menu of R-APP-27, and Keluar there ends the session as R-APP-03 words it. At 1024 pixels and wider the sidebar shows and there is no drawer.
- Refusal: none.
- Who: every signed-in user with a pool, on a viewport narrower than 1024 pixels (Tailwind's lg).
- Source: zuki 2026-11-17, #654; the lead's answer in Align (the drawer below lg, as the mobile menu is built); replaces R-APP-14.
R-APP-23 · Below 768 pixels wide, text uses the design system's phone type scale
Section titled “R-APP-23 · Below 768 pixels wide, text uses the design system's phone type scale”- Status: built
- Example: given any page at 390 pixels wide, when its text is measured, then display is 32px on a 38px line, h1 28/34, h2 20/26, h3 17/24, body 16/24, control 16/22, small 14/20, metric 28/32 and mono 14/20, and caption and eyebrow keep the sizes they have at 768 pixels and wider; at 768 pixels and wider the sizes are the design system's desktop scale, unchanged: display 44/48, h1 30/36, h2 22/28, h3 17/24, body 15/22, control 14/20, small 13/18, metric 34/38 and mono 13/18.
- Refusal: none.
- Who: every user, on every page of apps/web, on a viewport narrower than 768 pixels (Tailwind's md).
- Source: zuki 2026-11-17, #654; zuki 2026-11-23, the scale of design system 2.2.0 binds; #722; D88: the scale is made in the design system in Claude Design and arrives by an FE import, never by editing design/opleet/ or components/ui/ by hand.
R-APP-24 · Below 768 pixels wide, the pressable area of a field, a picker's trigger and its cells and rows, a checkbox, a radio, a switch and an icon button of the default or large size, and the remove and cancel buttons of an upload item, is at least 44 pixels high and wide
Section titled “R-APP-24 · Below 768 pixels wide, the pressable area of a field, a picker's trigger and its cells and rows, a checkbox, a radio, a switch and an icon button of the default or large size, and the remove and cancel buttons of an upload item, is at least 44 pixels high and wide”- Status: built
- Example: given a form with a text field, a DatePicker, a TimePicker, a checkbox, a radio, a switch and a default-size icon button and an upload item with its remove and cancel buttons at 390 pixels wide, when each is measured, its hit area counted (a press at the edge of the area, outside the visible box, reaches the control), then each pressable area is at least 44 by 44 pixels; the day cells of the calendar and the rows of the time list are measured the same way. A text button and the small icon button (icon-sm) keep the size the design system gives them.
- Refusal: none.
- Who: every user, on every page of apps/web, on a viewport narrower than 768 pixels.
- Source: zuki 2026-11-17, #654; zuki 2026-11-24, narrowed to these controls, with the small icon button (icon-sm) exempt like text buttons, and the remove and cancel buttons of an upload item included, #722; D88: a control's size comes from components/ui, so no page and no hand edit pads it.
R-APP-25 · A system role's menu at a pool shows the pages its v1 role's menu had, renamed to v2, except v1's Backup, D96's gate changes and Notifikasi, which is the header's bell
Section titled “R-APP-25 · A system role's menu at a pool shows the pages its v1 role's menu had, renamed to v2, except v1's Backup, D96's gate changes and Notifikasi, which is the header's bell”- Status: built
- Example: given the E2E satpam login, when its menu is read, then it holds Gate and Log aktivitas and nothing else; the E2E finance menu holds Persetujuan gate, Gate, ETLE, Collection, Pembayaran, Rental harian, Master data, Laporan and Log aktivitas, and no Dasbor; the E2E checker's menu holds Vehicle Monitor and Kalender but not Notifikasi, which is the bell in its header.
- Refusal: none. A page outside the menu, opened by its address, shows the refusal page; the database refuses its data either way (R-ACC-09).
- Who: the 11 system roles (R-ACC-226). Each menu item opens with one permission held at the current pool, except Persetujuan gate, which opens with any of four (R-APP-15), and Master data, which opens with master_data:read, payment:approve, payment:read or garage:write, so a grant or deny override (R-ACC-05, R-ACC-06) adds or removes its pages. The named exceptions: v1's Backup has no v2 page, because Supabase keeps the backups; Notifikasi, which v1's menus held for every holder of fleet_monitor:read, is not in the menu but is the bell in the header (R-APP-26). The gate's permissions follow D96 (#584), not v1: admin_driver, maintenance, asuransi and checker lose v1's Admin Approval (Persetujuan gate); admin_fleet gains Admin Approval and Gate In / Out (Gate); finance gains Gate In / Out. Master data opens with payment:approve and payment:read too, so finance and viewer reach it; finance sees Jenis tagihan there, to change default due days (R-MD-16), both see Rekening bank read-only (R-MD-51), and neither sees Grup harga (R-MD-12). Master data opens with garage:write too, so admin_fleet reaches the Bengkel tab (R-MD-82); garage:read alone doesn't open it.
- Source: FE's "Needs from docs" of 2026-10-06 (menu), in M0 · Monorepo move; the v1 to v2 permission names and the v1 menus each opens (from [Ref] Roles, permissions and row-level security, brought here by #189); FE pack C (FE-M0-09), which drops Backup because Supabase keeps the backups; D96 and zuki in the session on #637 (the menus follow D96's gate permissions); zuki on #458 (2026-11-17: Master data opens with master_data:read or payment:approve); zuki on #459 (2026-11-17: payment:read opens it for the Rekening bank tab); zuki 2026-11-17, #654 (Notifikasi becomes the header's bell); zuki on #460 (2026-11-18: Master data opens with garage:write); replaces R-APP-05.
R-APP-26 · The header shows a notification bell that opens /notifications to a member who holds fleet_monitor:read at the current pool
Section titled “R-APP-26 · The header shows a notification bell that opens /notifications to a member who holds fleet_monitor:read at the current pool”- Status: built
- Example: given the E2E checker signed in, who holds fleet_monitor:read at the pool, when the header is read, then it shows a bell beside the theme switch, and pressing it opens /notifications (today the module's placeholder page); given the E2E satpam, who doesn't hold it, then the header shows no bell. The bell carries no unread count and opens no popover yet: those, and who finally sees the bell, are M7's (#507, D95).
- Refusal: none. /notifications opened by its address without the permission shows the refusal page (R-APP-25).
- Who: every member holding fleet_monitor:read at the current pool, who saw Notifikasi in the menu before this rule.
- Source: zuki 2026-11-17, #654; the layout follows zuki's reference artifact "Opleet Fleet Demo" (reference only).
R-APP-27 · Pressing the user card opens a menu that holds the label AKUN, the member's email, the pool switcher, Profil and Keluar, and nothing else
Section titled “R-APP-27 · Pressing the user card opens a menu that holds the label AKUN, the member's email, the pool switcher, Profil and Keluar, and nothing else”- Status: built
- Example: given the E2E checker signed in, when they press the card, then a menu opens upward, as wide as the card, showing the label AKUN (Account in English, through t()), the checker's email as a muted line under it, the pool switcher with the member's pools, Profil, which opens /profile (R-APP-32), a separator and Keluar styled as destructive; it holds no Pengaturan item. Pressing Keluar ends the session as R-APP-03 words it.
- Refusal: none.
- Who: every signed-in user with a pool.
- Source: zuki in the session on #638, 2026-11-18 (a personal profile page, reached from the user card's menu); zuki 2026-11-17, #654; D29 (Indonesian first); replaces R-APP-19.
R-APP-28 · /profile is the signed-in member's own page, titled Profil, showing their name and email; its only section so far is Delegasi
Section titled “R-APP-28 · /profile is the signed-in member's own page, titled Profil, showing their name and email; its only section so far is Delegasi”- Status: retired (/profile holds personal settings now; restated as R-APP-32; zuki 2026-11-19, #685)
- Example: given the E2E checker signed in, when they open /profile, then the page is titled Profil (Profile in English) and shows the checker's name (as R-APP-17) and email, and no section, as the checker holds no delegable permission or user:read (R-ACC-254); the E2E admin_fleet's /profile shows the Delegasi section too. /profile is not in the sidebar's navigation; it opens from the user card's menu (R-APP-27) or by its address.
- Refusal: none.
- Who: every signed-in user with a pool. Personal settings are added to this page later, each with its own rule.
- Source: zuki in the session on #638, 2026-11-18 (a personal profile page for the signed-in user, where personal settings go later, not /users and not /delegasi).
R-APP-29 · The pool switcher leaves out a retired pool
Section titled “R-APP-29 · The pool switcher leaves out a retired pool”- Status: built
- Example: given Deka holds checker at PML and at SBY, when an admin retires SBY, then the switcher in Deka's user card menu (R-APP-27) lists PML only; when SBY is restored, it lists both again.
- Refusal: none. Deka keeps their permissions at SBY (R-TEN-31); the switcher reads pool_is_active from my_permissions() (R-TEN-32).
- Who: every signed-in user with a pool.
- Source: zuki on #667 (a retired pool is hidden from the switcher).
R-APP-30 · When the current pool is retired, the current pool falls back to the member's first active pool
Section titled “R-APP-30 · When the current pool is retired, the current pool falls back to the member's first active pool”- Status: built
- Example: given Deka's current pool is SBY and they also hold checker at PML, when an admin retires SBY, then on Deka's next page load the current pool is PML, the first of their active pools in the switcher's order, and the menu and pages are PML's.
- Refusal: none.
- Who: every signed-in user whose current pool is retired and who holds a role at an active pool.
- Source: zuki on #667; the lead in the session on #650 (getCurrentPool falls back to the first active pool).
R-APP-31 · A member whose only pools are retired goes to /no-access
Section titled “R-APP-31 · A member whose only pools are retired goes to /no-access”- Status: built
- Example: given Deka holds checker at SBY only, when an admin retires SBY, then Deka's next sign-in or page load lands on /no-access, as a member with no role at any pool does (R-ACC-04); when SBY is restored, Deka lands on /dashboard again (R-APP-04).
- Refusal: none. Deka's role at SBY is kept (R-TEN-31).
- Who: every signed-in user whose every pool is retired.
- Source: zuki on #667; the lead in the session on #650 (only retired pools: /no-access).
R-APP-32 · /profile is the signed-in member's own page, titled Profil, with their name and email, then the sections Nama, Kata sandi, Bahasa and Tema
Section titled “R-APP-32 · /profile is the signed-in member's own page, titled Profil, with their name and email, then the sections Nama, Kata sandi, Bahasa and Tema”- Status: built
- Example: given the E2E checker signed in, when they open /profile, then the page is titled Profil (Profile in English) and shows the checker's name (as R-APP-17) and email, then the sections Nama (R-APP-33), Kata sandi (R-APP-34), Bahasa (R-APP-36) and Tema (R-APP-37), then Delegasi (R-ACC-254) and Delegasi untuk Anda (R-ACC-282), in that order, each of the last two only when it shows; and no Delegasi section, as the checker holds no delegable permission or user:read (R-ACC-254), but the Delegasi untuk Anda block, as they hold an ended delegation (R-ACC-282); the E2E viewer, who holds no delegation, sees no such block. The E2E admin_fleet's /profile shows the Delegasi section after Tema. /profile is not in the sidebar's navigation; it opens from the user card's menu (R-APP-27) or by its address.
- Refusal: none.
- Who: every signed-in user with a pool. Each section is its own rule.
- Source: zuki in the session on #638, 2026-11-18 (a personal profile page); zuki, 2026-11-19, in the session on #693 (#685: display name, password, language and theme; restates R-APP-28).
R-APP-33 · The Nama section saves the user's display name through set_my_full_name(), and the user card shows the new name
Section titled “R-APP-33 · The Nama section saves the user's display name through set_my_full_name(), and the user card shows the new name”- Status: built
- Example: given the E2E checker on /profile, when they change Nama to "Cek Satu" and save, then set_my_full_name() is called (R-ACC-284), the section shows the saved name, and the user card (R-APP-17) and the page's name line show Cek Satu without a new sign-in. Saving a blank name shows profile.name_required's text and a name over 100 characters profile.name_too_long's (R-ACC-285); the name stays as it was.
- Refusal: none of its own: set_my_full_name()'s keys, mapped by apps/web (D10).
- Who: every signed-in user with a pool, for their own name.
- Source: zuki, 2026-11-19, in the session on #693 (#685).
R-APP-34 · The Kata sandi section changes the user's password through Supabase Auth, and the session stays signed in
Section titled “R-APP-34 · The Kata sandi section changes the user's password through Supabase Auth, and the session stays signed in”- Status: built
- Example: given a member on /profile, when they enter a new password that meets R-ACC-60 and R-ACC-70 twice and save, then Auth changes it, the section says it is saved, and the member stays signed in on /profile; the next sign-in takes the new password. A password Auth refuses, such as one equal to the old password (same_password), shows its mapped text and the old password stays.
- Refusal: none of its own: Auth's codes, mapped by apps/web as /welcome maps them.
- Who: every signed-in user with a pool, for their own password. A password goes only to Auth, never to Postgres or a log. Its journey uses a login made for it through the invite flow, never a shared E2E login.
- Source: zuki, 2026-11-19, in the session on #693 (#685: a password change, through Auth); R-ACC-60, R-ACC-70.
R-APP-35 · When Auth answers reauthentication_needed, the Kata sandi section asks for the code Auth emails, then changes the password
Section titled “R-APP-35 · When Auth answers reauthentication_needed, the Kata sandi section asks for the code Auth emails, then changes the password”- Status: planned
- Example: given Deka's session began long enough ago that Auth asks to reauthenticate (R-ACC-246), when Deka saves a new password on /profile, then Auth emails Deka a code, the section asks for it, and once Deka enters it the password changes as R-APP-34 says; a wrong or expired code shows its mapped text and the password stays.
- Refusal: none of its own: Auth's codes, mapped by apps/web.
- Who: every signed-in user with a pool. Where the time-box keeps sessions short, Auth seldom asks (R-ACC-246). A fresh session never gets reauthentication_needed and no journey can age one, so this rule stays planned, as R-ACC-246 does.
- Source: zuki, 2026-11-19, in the session on #693 (#685: Auth emails a code that /profile asks for); R-ACC-246.
R-APP-36 · The Bahasa section sets the same language as the sidebar's switch
Section titled “R-APP-36 · The Bahasa section sets the same language as the sidebar's switch”- Status: built
- Example: given the E2E checker on /profile in Indonesian, when they choose English in the Bahasa section, then set_my_locale('en') is called (R-ACC-31), the page's text changes to English, and the sidebar's switch (R-APP-20) shows EN; choosing ID in the switch shows Indonesian in the section.
- Refusal: none of its own: set_my_locale()'s (R-ACC-32).
- Who: every signed-in user with a pool. The sidebar's switch stays (R-APP-20).
- Source: zuki, 2026-11-19, in the session on #693 (#685: the same settings as the shell's switchers, which stay).
R-APP-37 · The Tema section sets the same theme as the header's switch
Section titled “R-APP-37 · The Tema section sets the same theme as the header's switch”- Status: built
- Example: given the E2E checker on /profile in the light theme, when they choose dark in the Tema section, then the page turns dark and the header's switch (R-APP-21) shows dark; choosing light in the switch shows light in the section.
- Refusal: none.
- Who: every signed-in user with a pool. The header's switch stays (R-APP-21).
- Source: zuki, 2026-11-19, in the session on #693 (#685: the same settings as the shell's switchers, which stay).
R-APP-38 · A date or a time is picked with the design system's DatePicker or TimePicker, never with the browser's native input
Section titled “R-APP-38 · A date or a time is picked with the design system's DatePicker or TimePicker, never with the browser's native input”- Status: built
- Example: given an admin_fleet who opens the add-document form on a car (R-VEH-48), when they choose the expiry date, then a calendar of the design system opens and the chosen day shows in the field; the same holds for every date or time field of the entity forms, the operational forms, the delegation form (R-ACC-254) and the vehicle documents tab. No input of type date, time or datetime-local is on any page of apps/web, and a date picked is sent as YYYY-MM-DD in local time.
- Refusal: none.
- Who: every user who fills a form with a date or a time.
- Source: zuki 2026-11-24, #722 and #747; D88: the components come from the design system's artifact, never edited by hand.
R-APP-39 · A file is chosen with the design system's FileUpload, or a car photo with its image slots, and listed by its file components (an upload item while it is chosen, uploading or failed; a FileChip once stored; a photo in its slot), never with the browser's native file input
Section titled “R-APP-39 · A file is chosen with the design system's FileUpload, or a car photo with its image slots, and listed by its file components (an upload item while it is chosen, uploading or failed; a FileChip once stored; a photo in its slot), never with the browser's native file input”- Status: built
- Example: given an admin_fleet who adds a document to a car (R-VEH-48), when they choose two photos in the FileUpload, then each is listed as an upload item with its name and a way to remove it before the save; once the row is saved the files are stored as R-VEH-49 says and each shows as a FileChip, with no remove, and the lock after save and the retry of a failed file stay as they are. No visible input of type file is on any page of apps/web; the hidden file inputs that FileUpload and the image slots themselves hold are the only ones.
- Refusal: none, no error key: the page itself refuses a chosen file outside the accepted types or over 10 MB, with a message beside the field (for a type, "foto.webp: Format berkas tidak didukung."), and does not list it; Storage still refuses what the bucket's types or size do not allow (R-STO-06, R-STO-25).
- Who: every user who attaches a file in a form; today that is the vehicle documents tab and the car's photos (R-VEH-54).
- Source: zuki 2026-11-24, #722 and #747; #745 (car photos, D110); D88; D14: the storage path is unchanged.