- #21: Add missing await in removeChoiceIfPresent() to prevent user appearing in two restaurants - #15: Add 1-hour TTL for menu refetching to avoid scraping on every page load - #9: Block stats API and UI navigation for future dates - #14: Add restaurant warnings (missing soup/prices, stale data) with warning icon - #12: Pre-fill restaurant/departure dropdowns from existing choices on page refresh - #10: Add voting statistics endpoint and table on stats page
This commit is contained in:
@@ -66,6 +66,8 @@ paths:
|
||||
$ref: "./paths/voting/getVotes.yml"
|
||||
/voting/updateVote:
|
||||
$ref: "./paths/voting/updateVote.yml"
|
||||
/voting/stats:
|
||||
$ref: "./paths/voting/getVotingStats.yml"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
||||
9
types/paths/voting/getVotingStats.yml
Normal file
9
types/paths/voting/getVotingStats.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
get:
|
||||
operationId: getVotingStats
|
||||
summary: Vrátí agregované statistiky hlasování o nových funkcích.
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../schemas/_index.yml#/VotingStats"
|
||||
@@ -176,6 +176,11 @@ RestaurantDayMenu:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/Food"
|
||||
warnings:
|
||||
description: Seznam varování o kvalitě/úplnosti dat menu
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
RestaurantDayMenuMap:
|
||||
description: Objekt, kde klíčem je podnik ((#Restaurant)) a hodnotou denní menu daného podniku ((#RestaurantDayMenu))
|
||||
type: object
|
||||
@@ -258,6 +263,12 @@ FeatureRequest:
|
||||
- UI
|
||||
- DEVELOPMENT
|
||||
|
||||
VotingStats:
|
||||
description: Statistiky hlasování - klíčem je název funkce, hodnotou počet hlasů
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
|
||||
# --- EASTER EGGS ---
|
||||
EasterEgg:
|
||||
description: Data pro zobrazení easter eggů ssss
|
||||
|
||||
Reference in New Issue
Block a user