Skip to content

Phase 2.3 [Frontend]: Guests and Companies pages #302

Done

Description

@Flapjacck

Overview

Add the Guests and Companies sections to the admin, so execs can manage speakers, workshop leads and their companies without SQL. Uses 2.3 Backend (and 1.3 Backend for data).

Replaces the frontend half of #282 and the guest CSV part of #283. Part of #201.

What to do

Routes and nav

  • paths.ts: guests, newGuest, importGuests, editGuest (/guests/:id), companies, newCompany, editCompany (/companies/:id).
  • routes.tsx: lazy routes for each.
  • SectionNav: add Guests and Companies tabs, each with its own accent.

Guests

  • pages/GuestsPage.tsx: searchable list using a new GuestCard (headshot, name, title, company with logo and colour), plus Add, Import CSV and Export CSV buttons (GUESTS_CSV).
  • pages/NewGuestPage.tsx / EditGuestPage.tsx with components/guests/GuestForm.tsx:
    • name, title, company picker (searchable, with an "Add a company" link), and link URL
    • headshot through PictureField with the square crop (SquareCropDialog), saved to guest-photos
    • edit page: "Hosting" list of their events (links to each event) and delete with a confirm that mentions those events
  • pages/ImportGuestsPage.tsx using CsvImport with GUESTS_CSV.

Companies

  • pages/CompaniesPage.tsx: list with logo, name and colour swatch.
  • New and edit pages with components/companies/CompanyForm.tsx: name, colour (a colour input + hex text field) and logo (PictureField; PNG, JPEG, WebP or AVIF up to 2 MB, no SVG). A live preview of how the company chip looks.
  • Edit page: a list of guests who work there. Delete warns that those guests lose their company.

General

  • SavedNotice after create and update, useUnsavedChangesWarning, and loading and error states like the team pages.
  • The how-to guide (GuideLink target): add a short Guests and Companies section.

Tests

  • tests/pages/GuestPages.test.tsx and CompanyPages.test.tsx: list, create, edit, delete and CSV import for guests.

Done when

  • Guests and companies have full create, edit and delete with photos and logos
  • Guest CSV import and export work
  • Tests pass, with screenshots in the PR

Activity

  1. added
    admin
    frontend
    v2-migration
    phase-2
    on Nov 28, 2026
  2. Flapjacck commented on Nov 28, 2026

    @Flapjacck
    MemberAuthor

    Progress from the admin stack (#315, #316). Note that #316 says Closes #302, but this isn't fully done yet:

    Done

    Still to do

    • Delete a company: there's no delete in the sheet or the list, and no warning that its guests lose their company.
    • Guest CSV import and export: no importGuests route, ImportGuestsPage, Import or Export buttons, or GUESTS_CSV. That needs Phase 1.4 [Frontend]: V2 CSV formats for events and guests #296 first.
    • The company sheet doesn't list who works there (only a count on the list).
    • Screenshots in the PR.
  3. Flapjacck commented on Nov 30, 2026

    @Flapjacck
    MemberAuthor

    Follow-up: this was closed by #316, but there's still no way to delete a company (lib/data/companies.ts has no delete, and the Companies page has no delete button). Worth a small follow-up PR or issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    adminfrontendphase-2v2-migration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions