web/docs/design/ELECTIONS-ADVERTISING-DESIGN.md

38 lines
4.4 KiB
Markdown

# Elections and Starport advertising — commit 1 design
This batch contains presentation and local preview interactions only. No election, bank, key, booking or advertisement publication writer is added or changed. Existing Politics reference pages remain available. Commit 2 connects these interfaces to existing election and J.A.R.V.I.S. services.
## Navigation
- Clan CP / Household Affairs / Elections: Clan Delegate to the Landsraad only. Four tabs: Applications, Voting, Results, Calendar.
- Clan CP / Household Affairs / Advertising: own advertisement promotion agenda and shared card template gallery.
- User CP / Realm & Politics / Elections: Your Faction, Emperor, Bene Gesserit, Spacing Guild. Each election has the same four tabs.
- Company CP reuses these presentation components. Company Elections follows personal eligibility and creates no extra voting entitlement. Company Advertising uses its own promotion context.
- The shared organisation shell also exposes the design links from Politics CP. Office membership continues to follow existing office deeds.
## Two different calendars
The election Calendar tab displays the existing timetable, including application close and voting periods, as non-bookable reminders. Four-week elections, three-hour voting and immediate three-hour tie runoffs remain unchanged. No personal appointment feature is introduced.
Each candidature opens a separate campaign booking agenda for its own election, not a combined agenda or a list of other elections. One reusable FullCalendar component renders each isolated context. Ordinary visitors see active advertisements on Starport; the booking agenda is for advertisers. Clan and Company promotion agendas reuse the component with their own context.
FullCalendar Standard 7.1.5 is vendored with its MIT licence and provenance metadata, including the standard bundle, Monarch theme and CSS. All files are served from the CP origin through an exact allowlist. No Google account, external runtime script or Premium scheduler is required.
## Booking preview and agreed rules
- Advertising window: seven days before voting until voting starts. Advertisements stop at that boundary.
- Hourly selection, including multiple hours. Free, booked and selected have labels and different colours; a click or keyboard activation is enough. No mandatory drag or hover.
- Current preview availability and selections are explicit examples, held only in page memory. Confirm booking is disabled.
- Base prices per hour: Clan Delegate100DM; House, Bene Gesserit and Spacing Guild250DM; Emperor1000DM.
- Nine campaign Featured places: Atreides, Harkonnen, Ordos, Corrino, Fremen, Bene Gesserit, Spacing Guild, Emperor, Clan Delegate. Each place belongs to its corresponding election. Item promotion has its own inventory; three item places and10DM/hour remain a proposal.
- Featured surcharges are not final, including the proposed100DM Clan Delegate surcharge. Do not charge an invented surcharge.
- Commit 2 must atomically reserve the current balance and exact exclusive slots. A competing request must fail without a debit and return fresh availability. Ordinary concurrent advertisements do not consume the exclusive Featured place.
- Bookings and dossiers remain in the ledger after visibility ends. Existing J.A.R.V.I.S. processing publishes and expires the cards. Do not create a parallel election engine or change ranks/AD.
## Card templates
A shared presentation module defines item, kit, job, advertisement, campaign, quest, event, deed and key cards. Existing item/kit/vacancy actions keep their handlers. Campaign panels are wide, editorial and distinct from product cards: portrait/seal, candidate, office, headline, message, running time and View candidature, with no Buy/stock/item-price fields. Public previews are isolated in a clearly marked design gallery and are not real listings. The build copies the same card component and styles to the public Starport origin.
## Commit 2 integration contract
Reuse existing election applications, ballot, runoff and office-ledger code. J.A.R.V.I.S. supplies dossier references and status transitions. Results write the office deed; the office register retains term history; the existing office-deed adapter determines Polclan access. Advertising booking requires a valid scoped candidature or owned listing. Availability, campaign boundaries, fees and final booking are checked on the server. An agenda event is not an entitlement or permission.