feat(admin): event form parity with the webapp (v1.6.1-aio.13) #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/admin-form-parity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Brings the LNbits admin "New Event" / "Update Event" dialog up to parity with the webapp's
CreateEventDialog.vue(webappdev). Based onmain(pre-promo-codes, #45), so it can land independently of #44 and #45.What was wrong
c2d9a96(aio.8) wired the template topaymentMethodOptionsandacceptsFiatbut never defined them inindex.js, so theq-option-groupgotoptions=undefinedand the fiat-currency select was gated onundefined. Every event created from this UI since aio.8 has been Lightning-only unless it was edited through the webapp.YYYY-MM-DDTHH:MM;_to_unixtreats that as UTC, so 18:00 CEST entered here was published as 18:00 UTC (the webapp already stamps the offset).undefinedfields tonull, so info, closing date, ticket count and price all had to be touched before Create lit up. The webapp requires only a title and a start date.Changes (
static/js/index.js,static/js/index.vue)q-checkboxrails (Lightning / Card). Card is disabled with a tooltip wheng.user.fiat_providersis empty, and lists the configured providers otherwise. Same rule as the webapp'suseFiatProviders.location) and Categories multi-select with the same 25-item list as the webapp'scategory.ts(NIP-52t).withLocalTzOffseton submit, mirroring the webapp; the events table showsYYYY-MM-DD HH:MMinstead of the raw ISO string.reactive-rules), fiat currency required when a sat-priced event accepts Card. Create needs only wallet + title + start; end date / closing date explain their backend defaults.fiat_currency = currencyon save (as the webapp does) so thetickets_fiat_currencytag stays coherent.Prettier-clean (3.8.3). No backend changes, no migration.
Deliberately not in scope
display.vue) still does not render location / categories; separate follow-up.aio.13on the assumption #44 = aio.11 and #45 = aio.12 land first; renumber whichever merges last.Manual check
extra.payment_methods == ["fiat"]andallow_fiat == trueonGET /events/api/v1/events.locationandttags.event_start_datecarries:00+02:00and the table showsYYYY-MM-DD HH:MM.🤖 Generated with Claude Code
https://claude.ai/code/session_018b1bDExMX7W3a47wcgFUjb