198 Commits

Author SHA1 Message Date
Serreau Jovann
80b48b9dbf Add financial dashboard for organizer in payouts tab
- 6 KPIs: encaissé, en attente, remboursé, com E-Ticket, com Stripe, net perçu
- Calculated from all orders linked to organizer's events
- Displayed above export buttons and payouts table

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 22:23:59 +01:00
Serreau Jovann
608b746989 Add monthly export CSV + PDF for admin and organizers
- ExportService: monthly stats query, CSV generation, PDF generation via dompdf
- Admin: /admin/export/{year}/{month} (CSV) + /admin/export/{year}/{month}/pdf
- Orga: /mon-compte/export/{year}/{month} (CSV) + /mon-compte/export/{year}/{month}/pdf
- Admin CSV: commande, date, événement, orga, acheteur, billets, total HT, com E-Ticket, com Stripe
- Orga CSV: + net perçu column
- PDF A4 landscape: KPIs + orders table with commissions breakdown
- Buttons in admin dashboard and orga payouts tab (current + previous month)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 22:16:55 +01:00
Serreau Jovann
47916f5f30 Add admin dashboard stats: CA, commissions E-Ticket/Stripe, orders, billets, orgas
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 22:09:16 +01:00
Serreau Jovann
94ebe09181 Enforce sub-account permissions on events and tickets routes
- SubAccountPermissionSubscriber: checks events/tickets permissions for sub-accounts
- Blocks access with redirect + flash error if permission missing
- Hide events/subaccounts/payouts tabs for sub-accounts without permission
- 5 tests: non-sub-account, blocked events, allowed events, blocked tickets

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 22:05:16 +01:00
Serreau Jovann
6db0566f69 Add admin orders page with search, status filter, KPIs
- /admin/commandes: paginated list of all orders
- Search by order number, name, email
- Filter by status (pending, paid, cancelled, refunded)
- 4 KPIs: paid count, CA total HT, refunded count, cancelled count
- Table: order number, buyer, event, billets, total, date, status badges
- Navigation link 'Commandes' in admin header

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 21:25:32 +01:00
Serreau Jovann
372bf46136 Add organizer suspension: toggle, badge, block access, audit log
- User.isSuspended (nullable bool, null = not suspended)
- Admin: toggle suspend/reactivate button on organizers list
- SuspendedUserSubscriber: redirects suspended users to homepage with error
- Audit log: organizer_suspended / organizer_reactivated
- Badge 'Suspendu' (red) replaces offer badge when suspended

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:53:46 +01:00
Serreau Jovann
66ac2379ec Add audit trail: AuditLog entity, AuditService, admin logs page
- AuditLog entity: action, entityType, entityId, data (JSON), performedBy, ipAddress
- AuditService: logs actions with current user and IP
- Audit on: order_created, order_paid, order_cancelled, order_refunded
- Admin /admin/logs: paginated table with action badges, details, user, IP
- Navigation link 'Logs' in admin header

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:48:10 +01:00
Serreau Jovann
6ae9b1c7ff Add brocantes and vote to Basic offer, add billet type verification task
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:39:39 +01:00
Serreau Jovann
349219005d Add interactive commission slider on /tarifs page, remove no-subscription text
- Slider 0% to 3% updates commission examples table in real-time
- Remove 'Pas d abonnement mensuel' text

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:38:13 +01:00
Serreau Jovann
d4941c6c23 Redesign /tarifs page: 3 offers (free/basic 20EUR/mo/custom), commissions table, examples
- Free: 0 EUR, 1 event, billets standards
- Basic: 20 EUR/mois, events illimites, PDF, invitations
- Sur-mesure: sur devis, design personnalise, brocantes, vote
- Commission examples table: 1, 2, 5, 10, 15, 20 EUR
- Stripe fees + E-Ticket fees breakdown
- Includes section with 6 feature cards
- Neo-brutalist design matching the rest of the app

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:36:26 +01:00
Serreau Jovann
e5a63b1a33 Add search bar on homepage hero section, redirects to /evenements
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:33:47 +01:00
Serreau Jovann
44845b6313 Add city and date filters on /evenements page
- City filter: LIKE search on event.city
- Date filter: events starting on selected date
- Combines with Meilisearch text search
- Labels on filter inputs, clear button when any filter active

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:32:51 +01:00
Serreau Jovann
830e3359d9 Fix billet preview iframe overflow on mobile, mark responsive check done
- Preview iframe: overflow-x-auto container instead of fixed overflow
- All public pages verified for 320px: flex-wrap, responsive breakpoints OK

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:29:40 +01:00
Serreau Jovann
1db878dfd4 Add og:url, Twitter Card meta, og:type event on detail page
- base.html.twig: add og:url (dynamic), twitter:card, twitter:title, twitter:description
- event_detail: og:type = event
- All public pages already have title + description blocks that propagate to OG

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:24:18 +01:00
Serreau Jovann
68ed76eba5 Fix breadcrumb JSON-LD: use absolute URLs for item field
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:18:06 +01:00
Serreau Jovann
aaad00ede0 Add invitation registration flow: accept sends email, prefilled signup form
- Accept: sends email with unique registration link
- /invitation/{token}/inscription: prefilled form (company, email, offer, commission)
  with password, SIRET, address, phone fields
- Account created as ROLE_ORGANIZER, pre-approved, pre-verified
- Response page: link to finalize registration immediately
- Email: welcome message with offer recap and register button

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:23:01 +01:00
Serreau Jovann
ddeee82dd8 Add commission examples table for 1, 2, 5, 10, 15, 20 EUR on invitation landing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:18:11 +01:00
Serreau Jovann
d7a498292f Complete invitation landing: offers, commissions, how it works, unsubscribe handling
- Landing page: features grid, 3-step how it works, 3 offers with highlight,
  commissions breakdown (E-Ticket + Stripe) with example calculation
- Unsubscribe: auto-refuse pending invitations, notify contact@e-cosplay.fr
- Email: enable List-Unsubscribe header for invitation emails
- Accept/refuse now via POST forms (CSRF safe)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:16:22 +01:00
Serreau Jovann
0bb6f43339 Add invitation landing page with E-Ticket showcase, accept/refuse buttons
- /invitation/{token} GET: landing page with platform presentation
- Sets status to 'opened' on first view
- Neo-brutalist design: offer banner, features grid, message block
- Accept/refuse via POST forms (not GET links)
- Shows current status if already responded
- Email links to landing page instead of direct accept/refuse
- Admin uses viewUrl instead of acceptUrl/refuseUrl

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:12:31 +01:00
Serreau Jovann
abd0b13ea5 Add delete invitation button
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:07:29 +01:00
Serreau Jovann
ac65d4af64 Add offer and commission rate to organizer invitation
- offer (free/basic/custom) and commissionRate fields on OrganizerInvitation
- Admin form: select offer + commission rate input
- Invitation list: show offer badge + rate
- Email: gold banner with proposed offer and commission rate (hors Stripe)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 18:24:40 +01:00
Serreau Jovann
a0724ccf88 Redesign invitation email: prominent CTA, E-Ticket by E-Cosplay showcase block
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 18:21:08 +01:00
Serreau Jovann
24e7eb5734 Add resend invitation button for non-accepted invitations
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:53:05 +01:00
Serreau Jovann
ca41078adf Redesign invite organizer page to match admin theme (table, cards, badges)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:44:43 +01:00
Serreau Jovann
cca5575274 Add organizer invitation system: invite, accept, refuse
- OrganizerInvitation entity: companyName, firstName, lastName, email,
  message, status (sent/opened/accepted/refused), unique token (64 hex chars)
- Admin route /admin/organisateurs/inviter: form + invitation list with status
- Button "Inviter un organisateur" on admin organizers page
- Email with accept/refuse links using unique token
- Public route /invitation/{token}/{action}: accept or refuse without auth
- Response page: confirmation message for accept/refuse
- Migration, PHPStan config, 7 entity tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:41:31 +01:00
Serreau Jovann
06dcc95a32 Add per-billet sales stats in stats tab
- Calculate sold count and revenue per billet from paid orders
- Display 'Ventes par billet' card between KPIs and orders list

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 20:06:31 +01:00
Serreau Jovann
a13ee33078 Force gold accent color on invitation tickets, change header to 'Invitation'
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:18:58 +01:00
Serreau Jovann
be630e1c67 Add isInvitation field on BilletBuyer to distinguish invitations from free billets
- isInvitation (nullable bool) on BilletBuyer instead of checking totalHT == 0
- Set isInvitation=true when creating invitation in controller
- Email subject/content based on order.isInvitation
- Invoice shows organizer as buyer when order.isInvitation
- Invitations list filtered by isInvitation=true

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:14:45 +01:00
Serreau Jovann
ec8f8537ce Show organizer as buyer on invoice for invitations (totalHT = 0)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:12:24 +01:00
Serreau Jovann
b472399878 Add view order button in stats, resend invitation button
- Stats tab: "Voir" button on each order linking to public order page
- Invitations tab: "Renvoyer" button to resend invitation email
- New route app_account_event_resend_invitation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:11:15 +01:00
Serreau Jovann
66ddc297b1 Fix invitation list (use dedicated variable), invitation email subject and content
- Pass invitations from controller instead of Twig filter on paginator
- Email subject: "Votre invitation" for invitations, "Vos billets" for purchases
- Email content: different intro text for invitations

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:09:49 +01:00
Serreau Jovann
bcd08ba09f Add crossorigin to Stripe script, ignore SRI check (Stripe does not provide SRI hashes)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:48:05 +01:00
Serreau Jovann
6005c438c4 Fix PHPStan config (path vs paths), label accessibility, ignore table headers in PDF
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:41:11 +01:00
Serreau Jovann
7167cb5fe0 Allow multiple billets in invitation form, dynamic add/remove lines
- Form sends items[] array with billet_id and quantity per line
- JS button to add more billet lines with remove button
- Controller iterates over items to create multiple BilletBuyerItems
- Same flow: all tickets generated with isInvitation=true

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:30:18 +01:00
Serreau Jovann
58d325f60c Add invitations tab: create free invitation with ticket generation and email
- New tab "Invitations" on event edit page
- Form: name, email, billet type, quantity
- Creates BilletBuyer with totalHT=0 (no payment), generates BilletOrders
  with isInvitation=true, sends email with PDF tickets
- List of sent invitations below the form

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:27:18 +01:00
Serreau Jovann
3ac47d9a57 Remove settings tab, fix duplicated stats tab link
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:23:40 +01:00
Serreau Jovann
03d14a643b Add stats tab with orders list, search, cancel and refund actions
- OrderIndexService: Meilisearch index order_event_{id} for order search
- Stats tab: 4 KPI cards (orders, tickets sold, CA HT, total percu)
- Orders list with KnpPaginator, search bar via Meilisearch
- Each order shows: number, status, date, buyer, items, total, payment
- Cancel order: sets status cancelled, invalidates all tickets
- Refund order: Stripe refund on connected account, sets status refunded,
  invalidates all tickets
- Orders indexed in Meilisearch after payment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:19:58 +01:00
Serreau Jovann
8d772328f7 Show real stats on homepage and real sold counts in event categories
- Homepage: count BilletOrders for tickets sold, sum paid orders for totalHT
- Event categories: count BilletOrders per billet for real sold counts
- Remove placeholder text from tickets stat block

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:15:34 +01:00
Serreau Jovann
d080870bfb Increase invoice footer text size
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:14:25 +01:00
Serreau Jovann
273ddff75b Add platform mention on invoice, prefix order number with N°
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:14:08 +01:00
Serreau Jovann
dfeed0ab5e Add invoice PDF generation, download, and email attachment
- InvoiceService: generates A4 invoice PDF with dompdf (organizer info,
  buyer info, event details, items table, totals, payment details)
- Route /ma-commande/{orderNumber}/{token}/facture to download invoice
- Invoice attached to confirmation email alongside ticket PDFs
- /mon-compte factures tab: list paid orders with download button
- /mon-compte achats tab: add facture download button
- /ma-commande public page: add facture download button
- Confirmation page: add facture download button

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:08:26 +01:00
Serreau Jovann
c6fd76da28 Show purchase history in /mon-compte achats tab with paid/cancelled/refunded status
- Add STATUS_REFUNDED constant to BilletBuyer
- Filter out pending orders, show only paid/cancelled/refunded
- Display: order number, status badge, date, event info, items breakdown,
  total, payment method, link to order page

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:03:09 +01:00
Serreau Jovann
85c2b1baa5 Show purchased tickets in /mon-compte billets tab
- Load user's BilletOrders via BilletBuyer orders
- Display each ticket with: name, status badge (Actif/Expire/Annule),
  first scan date, event info (name, date, address), reference,
  order number, price, download PDF and view order buttons

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:01:13 +01:00
Serreau Jovann
51cda95efe Update billet preview to match PDF layout: orga, conditions, payment, footer
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:59:25 +01:00
Serreau Jovann
1cfd826fc3 Add payment details block on ticket PDF after practical info and conditions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:57:55 +01:00
Serreau Jovann
7a29372b60 Save Stripe payment details on order confirmation, add arrive early tip
- Retrieve PaymentIntent on success redirect, save payment_method, card_brand, card_last4
- Display payment info on /ma-commande page (card type + last 4 digits)
- Add "Il est recommande d'arriver en avance" to practical info on ticket PDF
- Migration for payment_method, card_brand, card_last4 columns

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:56:50 +01:00
Serreau Jovann
c8faf76741 Increase font size for practical info and conditions on ticket PDF
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:53:39 +01:00
Serreau Jovann
4b812bdcbf Add E-Ticket liability disclaimer: platform does not manage events or disputes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:52:58 +01:00
Serreau Jovann
714c6f1bb7 Add force majeure refund clause to ticket conditions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:52:12 +01:00
Serreau Jovann
cb7bdc0b18 Add practical info and legal conditions block on ticket PDF
- Practical info: prepare ticket for entry, prepare belongings for security
- Legal: non-refundable (art. L.121-21-8 12° Code de la consommation),
  resale forbidden, ticket cancellation on infraction

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:51:41 +01:00