# Atelier II admin

Open **http://127.0.0.1:8765/admin-atelier-v2/**.

Public mobile preview: **https://pub.bananalegends.com/Abnabot/admin-atelier-v2/index.html?v=receipt-queues-3#/payments/receipts**.
This mock viewer opens without Telegram authentication or an admin role. Its API
adapter opts into document-local mock access, including when an older demo saved
an expired/non-admin identity. Other concepts retain their access simulations.
Receipt image URLs resolve relative to the shared module, including `/Abnabot/`.

Receipt-review preview: **http://127.0.0.1:8765/admin-atelier-v2/#/payments/receipts**
(Payments → Receipts). Swipe to review, approve the requested or corrected amount,
reject with a reason, or find a payment by ID with the bot's conditional actions.
Pending-card capsules show counts and automatically advance to the next queue.
History loads ten at a time; the deck keeps a rolling five-receipt buffer. See
[RECEIPTS_DESIGN.md](RECEIPTS_DESIGN.md) for the mock boundary and verification.

A separate adaptation of the admin layout in
`C:/Projects/Bots/Abnabot/miniapp/web`, using the selected `02-atelier`
visual language. The original admin remains at `../admin-atelier/`.

The original navigation, six overview counters, daily revenue breakdown,
section tabs, forms and nested editors are retained. Charcoal surfaces,
apricot controls, local Vazirmatn, 8px cards, line icons, native dialogs,
light mode and restrained motion match Atelier. Revenue filters fold on
mobile so the report is immediately visible.

Activity now has separate sticky tabs for bulk operations and notification
dispatch history, including counts and direct URLs (`#/activity/bulk` and
`#/activity/notifications`). Payment provider settings are in **Payments →
Methods**: use the Tronado/NOWPayments shortcuts or each provider's settings
button. The old `#/payments/crypto` link opens Methods for compatibility.

Payment rules use an outcome-first form: select payment methods, describe
conditions with explicit units, and read a live explanation of the result.
Nested ALL/ANY groups remain under the advanced condition controls. User
evaluation, notes, priority and activation remain available in the editor.

The header settings button provides appearance options, links to the user
side and first admin version, and expandable demo controls. The seven-step
setup flow is at [setup.html](setup.html). Choose the fresh setup fixture
in the demo controls to explore first-run setup; reset requires confirmation
because the data is shared with every concept.

## Data and running

Serve the repository root over HTTP; no build or package installation is
required. Keep `shared/` and `admin-atelier/` beside this folder: the latter
also supplies common icon and error-formatting helpers. If the existing preview server is stopped:

```powershell
python -m http.server 8765 --bind 127.0.0.1
```

`admin/core/api.js` adapts the source screens' endpoint-shaped calls to
`../shared/admin-api.js`. It handles the few response-envelope differences.
The original API remains responsible for validation, authorization, ledgers,
job progression and persistence. There is no additional fixture world or
live backend fallback. Production files and services are untouched.

Telegram loads asynchronously. Local startup has a retry screen and a
12-second deadline; an unavailable Telegram SDK cannot block the preview.
Telegram theme hooks attach when running inside Telegram; identity is not required.
This folder remains a working demo, like the other concepts.

## Files

- `admin/`: adapted source screen modules and browser helpers.
- `base.css`: source layout rules.
- `style.css`: Atelier styling and responsive refinements.
- `setup*`: source setup layout, shared API integration and matching styling.
- [DESIGN.md](DESIGN.md): reference ownership and design decisions.
- [QA.md](QA.md): verification and screenshots.
