Rename game, redesign UI as a noir case-file, simplify narrator flow

Renames the game to "Sí, no, o indiferente" across the app, README,
Capacitor config and Android strings. Replaces the dark-purple theme
with a distinct case-file/dossier look (monospace type, black/cream/red
palette, stamped difficulty badges, stacked-card shadows). Removes the
progressive hint system and the two-step solution confirmation: the
narrator's solution is now always rendered, gated only by a blur
show/hide toggle with a "Confidencial" stamp. Adds a back button from
the narrator screen to the picker (without marking the story as used),
drops dev-facing cruft (story source/count badge), converts remaining
UI copy to Peninsular Spanish, and adds a post-game screen where players
can optionally rate a story's difficulty (1-5), sent to the new backend
ratings endpoint.
This commit is contained in:
dasemu committed 2026-08-24 04:53:25 +02:00
1 parent 99a903f6e1
commit 2681039074
15 files changed
+521 -304

No files matched your search

+18 -18
View File
@@ -1,34 +1,34 @@
# Frontend — Historias Incompletas
# Frontend — Sí, no, o indiferente
App React + Vite. Se empaqueta como sitio web y, con Capacitor, como APK
Android.
React + Vite app. Packaged as a website and, with Capacitor, as an Android
APK.
## Desarrollo
## Development
```bash
npm install
cp .env.example .env # VITE_API_URL apuntando a tu backend
cp .env.example .env # VITE_API_URL pointing to your backend
npm run dev
```
## Build web
## Web build
```bash
npm run build # genera dist/
npm run build # generates dist/
```
## APK (Capacitor)
Ver instrucciones completas en el [README raíz](../README.md#frontend-apk-con-capacitor).
Resumen: `npm run cap:sync` (build + `cap sync android`) y después
`npm run android:open` o `cd android && ./gradlew assembleDebug` con Android
SDK/JDK instalados.
See the full instructions in the
[root README](../README.md#frontend-apk-with-capacitor).
Summary: `npm run cap:sync` (build + `cap sync android`) and then
`npm run android:open`, or `cd android && ./gradlew assembleDebug` with the
Android SDK/JDK installed.
## Estructura relevante
## Relevant structure
- `src/api.ts` — obtiene el mazo de historias del backend, con fallback a
cache local y al set default embebido.
- `src/data/defaultStories.json` — historias por defecto (contenido
original).
- `src/screens/` — Home, selector de historia y vista del narrador.
- `capacitor.config.ts` — config de la app nativa.
- `src/api.ts` — fetches the story deck from the backend, with fallback to
the local cache and the embedded default set.
- `src/data/defaultStories.json` — default stories (original content).
- `src/screens/` — Home, story picker, and narrator view.
- `capacitor.config.ts` — native app config.