docs(react_frontend): add comprehensive documentation & AGENTS.md
- docs/README.md: overview and table of contents - docs/tech_stack.md: full dependency inventory and design decisions - docs/project_structure.md: directory tree with conventions - docs/architecture.md: data flow, layer responsibilities, key patterns - docs/routing.md: route table, code splitting, discover categories - docs/state_management.md: Zustand stores and React Query conventions - docs/api_layer.md: all API modules with endpoint mappings - docs/components.md: layout, entries, collections, charts, dialogs, UI primitives - docs/pages.md: all 16 pages with features and routes - docs/styling.md: theming, CSS tokens, responsive breakpoints, animations - AGENTS.md: architecture summary, code conventions, data flow, key files
This commit is contained in:
1 parent
6bff2055b4
commit
d28b4caa7e
14 files changed
+1266
-78
No files matched your search
+27
-65
@@ -1,73 +1,35 @@
|
||||
# React + TypeScript + Vite
|
||||
# Showy — React Frontend Documentation
|
||||
|
||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
||||
> **Last reviewed:** 2026-04-09
|
||||
|
||||
Currently, two official plugins are available:
|
||||
## Table of Contents
|
||||
|
||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
||||
1. [Overview](#overview)
|
||||
2. [Tech Stack](docs/tech_stack.md)
|
||||
3. [Project Structure](docs/project_structure.md)
|
||||
4. [Architecture](docs/architecture.md)
|
||||
5. [Routing](docs/routing.md)
|
||||
6. [State Management](docs/state_management.md)
|
||||
7. [API Layer](docs/api_layer.md)
|
||||
8. [Components](docs/components.md)
|
||||
9. [Pages](docs/pages.md)
|
||||
10. [Styling & Theming](docs/styling.md)
|
||||
|
||||
## React Compiler
|
||||
---
|
||||
|
||||
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
||||
## Overview
|
||||
|
||||
## Expanding the ESLint configuration
|
||||
Showy's React frontend is a **single-page application** for tracking movies and TV series. It communicates with the Showy backend REST API and proxies TMDB discovery requests through it.
|
||||
|
||||
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
||||
**Key capabilities:**
|
||||
|
||||
```js
|
||||
export default defineConfig([
|
||||
globalIgnores(['dist']),
|
||||
{
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
extends: [
|
||||
// Other configs...
|
||||
|
||||
// Remove tseslint.configs.recommended and replace with this
|
||||
tseslint.configs.recommendedTypeChecked,
|
||||
// Alternatively, use this for stricter rules
|
||||
tseslint.configs.strictTypeChecked,
|
||||
// Optionally, add this for stylistic rules
|
||||
tseslint.configs.stylisticTypeChecked,
|
||||
|
||||
// Other configs...
|
||||
],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
// other options...
|
||||
},
|
||||
},
|
||||
])
|
||||
```
|
||||
|
||||
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
||||
|
||||
```js
|
||||
// eslint.config.js
|
||||
import reactX from 'eslint-plugin-react-x'
|
||||
import reactDom from 'eslint-plugin-react-dom'
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(['dist']),
|
||||
{
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
extends: [
|
||||
// Other configs...
|
||||
// Enable lint rules for React
|
||||
reactX.configs['recommended-typescript'],
|
||||
// Enable lint rules for React DOM
|
||||
reactDom.configs.recommended,
|
||||
],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
// other options...
|
||||
},
|
||||
},
|
||||
])
|
||||
```
|
||||
- Browse, search, and discover movies & TV series via TMDB
|
||||
- Manage a personal media library (add/remove/favourite/watchlist/hide)
|
||||
- Track watch history for movies and individual episodes
|
||||
- Organize entries into user-defined or TMDB-sourced collections
|
||||
- View cast & crew details with filmography
|
||||
- Dashboard with watch-time, activity, and rating statistics
|
||||
- Calendar view for upcoming episode air dates
|
||||
- Manage custom media assets (posters, backdrops, logos)
|
||||
- Light / dark theme with persistent preference
|
||||
- Responsive design (mobile-first)
|
||||
Reference in new issue
Block a user