Admin on phones: item editor, Vouchers & codes, slot Step picker #20

Merged
reudy merged 1 commit from admin-mobile-forms into main 2026-10-26 21:08:32 +01:00
Member

These are fixes for a phone, from the admin's screenshots.

Services & products → Edit

  • Each length is now one line: minutes, price, then the "1 h 30 min" reading on the right (it used to sit underneath), then ✕. On a phone the two inputs shrink to make room. From sm up they keep their fixed widths.
  • The "Active — inactive items are hidden from the shop" text wraps instead of running off the screen.

Vouchers & codes

  • Below lg each code is a card: the code and status, the bundle, the buyer and who it's for, what's left to book, the expiry date, and Manage. The table stays from lg up, and both render through the same snippets.
  • Search sits next to the search field instead of under it.
  • In the Manage window, a phone gets one row per part (for example "1× Massage (1 hour)", then "1 left · 0 used", with the share of the price on the right). From sm up it keeps the five-column table. Note: the table had to be hidden through a wrapper div, because DaisyUI's table class also sets display: table and beats hidden.

Slots → Add window / Generate slots

  • The Step picker is laid out like the Start times control above it: label on the left, or above it in a narrow row. It fills the row instead of being a fixed 10rem.
  • In the list of services for a window, the name goes on one line with its lengths underneath. They used to be two ragged columns.

Tested

  • npm run check: 0 errors.
  • Rebuilt the test admin and took Playwright screenshots at 412 px and 1300 px of the item editor, the Vouchers list and the Manage window (with a test code issued), and both slot windows. At 412 px neither the page nor any modal scrolls sideways (scrollWidth equals clientWidth). At 1300 px the desktop layouts are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW

These are fixes for a phone, from the admin's screenshots. **Services & products → Edit** - Each length is now one line: minutes, price, then the "1 h 30 min" reading on the right (it used to sit underneath), then ✕. On a phone the two inputs shrink to make room. From `sm` up they keep their fixed widths. - The "Active — inactive items are hidden from the shop" text wraps instead of running off the screen. **Vouchers & codes** - Below `lg` each code is a card: the code and status, the bundle, the buyer and who it's for, what's left to book, the expiry date, and **Manage**. The table stays from `lg` up, and both render through the same snippets. - **Search** sits next to the search field instead of under it. - In the **Manage** window, a phone gets one row per part (for example "1× Massage (1 hour)", then "1 left · 0 used", with the share of the price on the right). From `sm` up it keeps the five-column table. Note: the table had to be hidden through a wrapper div, because DaisyUI's `table` class also sets `display: table` and beats `hidden`. **Slots → Add window / Generate slots** - The **Step** picker is laid out like the Start times control above it: label on the left, or above it in a narrow row. It fills the row instead of being a fixed 10rem. - In the list of services for a window, the name goes on one line with its lengths underneath. They used to be two ragged columns. **Tested** - `npm run check`: 0 errors. - Rebuilt the test admin and took Playwright screenshots at 412 px and 1300 px of the item editor, the Vouchers list and the Manage window (with a test code issued), and both slot windows. At 412 px neither the page nor any modal scrolls sideways (`scrollWidth` equals `clientWidth`). At 1300 px the desktop layouts are unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent added 1 commit 2026-10-26 21:07:44 +01:00
- Services & products editor: each length stays on one line (minutes,
  price, then "1 h 30 min" to the right instead of underneath), and the
  Active toggle's text wraps instead of running off the screen.
- Vouchers & codes: one card per code below lg (the seven-column table
  scrolled sideways); Search sits beside the search field. The Manage
  window lists the parts as rows on a phone; its five-column table is
  kept from sm up, hidden through a wrapper because DaisyUI's "table"
  class also sets display: table and beats "hidden".
- Slots (Add window and Generate slots): the Step picker is laid out like
  the Start times control above it and fills the row; the window's
  services list each name with its lengths underneath.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
reudy merged commit 4a9d596276 into main 2026-10-26 21:08:32 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/domaino#20
No description provided.