events/static/js
Padreug f835766935
Some checks failed
lint.yml / feat(admin): event form parity with the webapp (1.6.1-aio.13) (pull_request) Failing after 0s
lint.yml / feat(admin): event form parity with the webapp (1.6.1-aio.13) (push) Failing after 0s
feat(admin): event form parity with the webapp (1.6.1-aio.13)
The LNbits admin form lagged the webapp's CreateEventDialog:

- Payment methods never rendered. c2d9a96 wired the template to
  `paymentMethodOptions` / `acceptsFiat` but never defined them, so the
  q-option-group got `options=undefined` and the fiat-currency select
  was gated on `undefined`. Rails are now two q-checkboxes; Card is
  disabled with an explanatory tooltip when `g.user.fiat_providers` is
  empty (same rule as the webapp) and names the providers otherwise.
- Location (NIP-52 `location` tag) and Categories (NIP-52 `t` tags,
  same 25-item list as the webapp's category.ts) were missing from the
  form even though the model, CRUD and publisher already carry them.
- Datetimes are stamped with the browser's UTC offset on submit, as the
  webapp does; `_to_unix` treats naive values as UTC, so 18:00 CEST
  entered here went out on Nostr as 18:00 UTC. Table columns render
  "YYYY-MM-DD HH:MM" instead of the raw ISO string.
- Validation: title + start date required, end >= start on the folded
  date+time, fiat currency required when a sat-priced event accepts
  card. Create is enabled once wallet + title + start are set; info,
  closing date, tickets and price were all effectively required before
  because the disable check compared undefined fields to null.
- Labels follow the payment-rails vocabulary: "Unit" -> "Price
  currency", "Fiat checkout currency" -> "Fiat currency"; ticket
  closing date and end date explain their defaults.
- A fiat-priced event mirrors `fiat_currency = currency` on save so the
  payload and the `tickets_fiat_currency` tag stay coherent.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018b1bDExMX7W3a47wcgFUjb
2026-09-10 13:43:53 +02:00
..
display.js feat: per-event payment methods (extra.payment_methods) 2026-09-06 19:53:05 +02:00
display.vue feat: per-event payment methods (extra.payment_methods) 2026-09-06 19:53:05 +02:00
index.js feat(admin): event form parity with the webapp (1.6.1-aio.13) 2026-09-10 13:43:53 +02:00
index.vue feat(admin): event form parity with the webapp (1.6.1-aio.13) 2026-09-10 13:43:53 +02:00
register.js feat: register public page saves to localstorage (#48) 2026-05-05 10:45:14 +02:00
register.vue feat: register public page saves to localstorage (#48) 2026-05-05 10:45:14 +02:00
ticket.js feat: add paid/registered badge to ticket page (#49) 2026-05-07 17:06:38 +02:00
ticket.vue feat: add paid/registered badge to ticket page (#49) 2026-05-07 17:06:38 +02:00