Repository navigation
feat: one-tap drafting, 36-prompt decks, prompt cap, and draft deadlines - #47
Open
TimerErTim-Agent wants to merge 2 commits into
Open
TimerErTim-Agent wants to merge 2 commits into
TimerErTim-Agent wants to merge 2 commits into
Conversation
TimerErTim
requested changes
Nov 29, 2026
TimerErTim
left a comment
Owner
There was a problem hiding this comment.
Also in scope of this change should be reducing of grace_period to 10 seconds.
| * Shared preset + custom deadline picker used for draft auto-close deadlines. | ||
| */ | ||
| export function DraftDeadlinePicker({ | ||
| legend = "Entwurfsfrist (optional)", |
Owner
There was a problem hiding this comment.
"Optional" is misleading since an option has to be picked. It's just by default turned off. Remove the " (optional)" suffix.
Comment on lines
+167
to
+182
| /// Host request to configure or clear the drafting auto-close deadline. | ||
| #[derive(Debug, Clone)] | ||
| #[cfg_attr(feature = "openapi", derive(poem_openapi::Object))] | ||
| #[cfg_attr(feature = "openapi", oai(rename_all = "camelCase"))] | ||
| #[derive(serde::Serialize, serde::Deserialize)] | ||
| #[serde(rename_all = "camelCase")] | ||
| pub struct SetDraftDeadlineRequest { | ||
| /// Drafting auto-close deadline (null clears the deadline). | ||
| pub draft_deadline_at: Option<DateTime<Utc>>, | ||
| } | ||
|
|
||
| impl SetDraftDeadlineRequest { | ||
| pub fn into_use_case(self, game_id: GameId) -> SetDraftDeadline { | ||
| SetDraftDeadline { | ||
| game_id, | ||
| draft_deadline_at: self.draft_deadline_at, |
Owner
There was a problem hiding this comment.
Why a dedicated endpoint when we already have update game settings?
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduces drafting friction by expanding starter decks, preventing duplicate prompts per board, bounding prompt length, and adding one-tap drafting & optional drafting deadlines.
Part of #43
Stack
feat/hunt-board-views-and-ui-cleanupfeat/one-tap-drafting-and-deadlinesfeat/shutter-first-capture-offline-queuefeat/roster-lifecycle-and-game-deadlinefeat/single-step-signup-unverified-limitfeat/oidc-identity-providersBackend & Schema
night-out,vacation-festival,roommates,office-uni) from 25 to 36 unique target-agnostic prompts.PromptText(<= 80chars, non-empty) in domain & API validation, plusdedupe_board_prompt_textspass inassemble_boards.draft_deadline_at(v0006migration,CreateGame,UpdateGameSettings,PUT /api/games/:game_id/draft-deadline, schedulerStartReadyGamesauto-fill & start).HostFillRemainingDrafts(POST /api/games/:game_id/prompts/fill-remaining) to auto-fill and lock remaining unlocked players (with optional immediate board deal).Frontend
"Alle Decks mischen"mixed-deck pool, one-tap"Leere füllen & bereit", Quick-Pick Suggestion Bar,maxLength={80}with liveN/80counter, draft deadline banner & countdown, and host"Offene Plätze automatisch füllen"dialog inDraftingPhase.<DraftDeadlinePicker>presets (Kein Limit,+15 Min.,+1 Std.,+24 Std., custom) to Create Game and Lobby settings.Verification
mise run ci(format, lint, design/docs/branding checks, OpenAPI drift check, release build, Rust unit/conformance/scheduler/E2E tests, Vitest) passed.