mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
Web UI polish: thumbnail-hover preview, white thumbnail selection, Themes bullet list; global Scryfall image retry (thumbs+previews) with fallbacks and cache-bust; standardized data-card-name. Deck Summary alignment overhaul (count//name/owned grid, tabular numerals, inset highlight, tooltips, starts under header). Added diagnostics (health + logs pages, error pages, request-id propagation), global HTMX error toasts, and docs updates. Update DOCKER guide and add run-web scripts. Update CHANGELOG and release notes template.
This commit is contained in:
parent
8d1f6a8ac4
commit
f8c6b5c07e
30 changed files with 786 additions and 232 deletions
30
run-web-from-dockerhub.sh
Normal file
30
run-web-from-dockerhub.sh
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "MTG Python Deckbuilder - Web UI (Docker Hub)"
|
||||
echo "==========================================="
|
||||
|
||||
# Create directories if they don't exist
|
||||
mkdir -p deck_files logs csv_files config owned_cards
|
||||
|
||||
# Flags (override by exporting before running)
|
||||
: "${SHOW_LOGS:=1}"
|
||||
: "${SHOW_DIAGNOSTICS:=1}"
|
||||
|
||||
echo "Starting Web UI on http://localhost:8080"
|
||||
echo "Flags: SHOW_LOGS=${SHOW_LOGS} SHOW_DIAGNOSTICS=${SHOW_DIAGNOSTICS}"
|
||||
|
||||
docker run --rm \
|
||||
-p 8080:8080 \
|
||||
-e SHOW_LOGS=${SHOW_LOGS} -e SHOW_DIAGNOSTICS=${SHOW_DIAGNOSTICS} \
|
||||
-v "$(pwd)/deck_files:/app/deck_files" \
|
||||
-v "$(pwd)/logs:/app/logs" \
|
||||
-v "$(pwd)/csv_files:/app/csv_files" \
|
||||
-v "$(pwd)/owned_cards:/app/owned_cards" \
|
||||
-v "$(pwd)/config:/app/config" \
|
||||
mwisnowski/mtg-python-deckbuilder:latest \
|
||||
bash -lc "cd /app && uvicorn code.web.app:app --host 0.0.0.0 --port 8080"
|
||||
|
||||
echo
|
||||
echo "Open: http://localhost:8080"
|
||||
echo "Tip: export SHOW_LOGS=0 or SHOW_DIAGNOSTICS=0 to hide those pages."
|
||||
Loading…
Add table
Add a link
Reference in a new issue