Skip to content

feat: one-tap drafting, 36-prompt decks, prompt cap, and draft deadlines - #47

Open
TimerErTim-Agent wants to merge 2 commits into
devfrom
feat/one-tap-drafting-and-deadlines
Open

TimerErTim-Agent wants to merge 2 commits into
devfrom
feat/one-tap-drafting-and-deadlines

Conversation

@TimerErTim-Agent

Copy link
Copy Markdown
Collaborator

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

PR Branch Scope
#46 feat/hunt-board-views-and-ui-cleanup Target-grouped boards & UI cleanup (closes #26)
this PR feat/one-tap-drafting-and-deadlines 36-prompt decks, 80-char prompt cap, one-tap fill & lock, quick-pick bar, mixed decks, draft deadlines & host override
PR 3 feat/shutter-first-capture-offline-queue Shutter-first capture, IndexedDB offline queue, capture retract, PWA SW
PR 4 feat/roster-lifecycle-and-game-deadline Game deadline, roster controls, late join, scheduler completion, live toasts
PR 5 feat/single-step-signup-unverified-limit 1-step signup, 1-game unverified limit, public invite preview
PR 6 feat/oidc-identity-providers Google / Apple / generic OIDC + passwordless deletion (closes #41, #43)

Backend & Schema

  • Expand all four built-in starter decks (night-out, vacation-festival, roommates, office-uni) from 25 to 36 unique target-agnostic prompts.
  • Enforce PromptText (<= 80 chars, non-empty) in domain & API validation, plus dedupe_board_prompt_texts pass in assemble_boards.
  • Add optional draft_deadline_at (v0006 migration, CreateGame, UpdateGameSettings, PUT /api/games/:game_id/draft-deadline, scheduler StartReadyGames auto-fill & start).
  • Add host-only HostFillRemainingDrafts (POST /api/games/:game_id/prompts/fill-remaining) to auto-fill and lock remaining unlocked players (with optional immediate board deal).

Frontend

  • Add "Alle Decks mischen" mixed-deck pool, one-tap "Leere füllen & bereit", Quick-Pick Suggestion Bar, maxLength={80} with live N/80 counter, draft deadline banner & countdown, and host "Offene Plätze automatisch füllen" dialog in DraftingPhase.
  • Add shared <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.

@TimerErTim
TimerErTim added this pull request to stack #52 November 28, 2026 17:00
Base automatically changed from feat/hunt-board-views-and-ui-cleanup to dev November 29, 2026 17:39

@TimerErTim TimerErTim left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a dedicated endpoint when we already have update game settings?

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants