Skip to content

five-on-it / apps/client/src/ui/CreatePage

apps/client/src/ui/CreatePage ​

The creation page (?create, one of the game pages): an owner describes a game and the platform's own model makes it with them, in a conversation (TECHNICAL_SPECS §9.8). Its header says the creations left today (and when they start again) and whether creation is open now (off on the platform, the account: on a Steam platform a lent copy, or no Steam account; or the day's budget spent and when it resumes). The brief's composer, one clear path: two big choices, "Remix a curated city" (its picker: a search and a paged grid of the curated cities' previews, CityPicker.tsx) or "A new city" (the default, drawn freely and large); how it is played (single player, co-op, cops and robbers); the model that makes it (GET /creations/models: each with what it is good for and about how many FireTokens a turn costs, the best one recommended and picked); and the brief (4,000 characters at most, counted, with a lead-in and examples to start from). Then the owner's creations, newest first and filtered by tab (all, under way, the owner's turn, over; &job=<id>, the in-game toast's link, puts one in view): each a card with its state (its place in line or why it waits, its step while it runs), how long it has taken, the model making it, Delete (in any state, after a confirmation that offers to delete its city and missions too when nothing of it was published), its conversation in plain words (the brief, the model's answers, the owner's messages, the platform's word when a turn could not finish), once the model answered (waiting) a box to say more with the model for the next turns (Send) or End the conversation, with the share of its FireTokens spent; Cancel while it is under way; and its result, the draft so far: its preview picture, its missions, Playtest, Look round, Open in the studio, Publish (by link) and Revise (a new creation on the same draft, once its conversation is over). The list is asked again every second and a half while a creation is under way. A guest is asked to sign in; on a platform for the game's owners, a visitor nobody signed in to is offered Steam's sign-in. The ids are the end-to-end tests' contract.

Interfaces ​

Functions ​