Skip to content

Commit 889617a

Browse files
authored
Add the start of a note UI (#29)
* Add initial notes overview page * Make the match layout 2-column, consolidate the team note counts * Update styling for clarity on stations. * Update swagger with better information * Support adding notes * Fix lint issues in SettingsModal * Add display of team notes inline * Add event note display * Start on centralizing styles * Centralize alliance colors * Move fieldMonitor to its own page, update the sidebar bottom * Set collapsed by default * Use buttons instead of a links. * Prettier * Scaling issues on large and smaller screens
1 parent 8149966 commit 889617a

25 files changed

+6816
-4302
lines changed

.github/.copilot-instructions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copilot Instructions for FTA-Notepad
2+
3+
## Project Overview
4+
FTA-Notepad: SvelteKit web app for FIRST Robotics Competition field technical advisors. Client-side app for real-time collaboration on match notes, issues, and team interactions.
5+
6+
## Tech Stack
7+
- **Frontend**: SvelteKit 2.x + Svelte 5.x + TypeScript
8+
- **Styling**: Tailwind CSS v4 (CSS-based config, NO tailwind.config.js)
9+
- **Build**: Vite 6.x with `@tailwindcss/vite` plugin
10+
- **Package Manager**: npm
11+
- **Icons**: @steeze-ui/heroicons, **Data**: D3.js, **Realtime**: SignalR
12+
13+
## Development
14+
```bash
15+
cd ui && npm run dev
16+
```
17+
18+
## File Structure
19+
```
20+
ui/src/
21+
├── lib/components/ # Svelte components
22+
├── routes/ # SvelteKit pages
23+
├── fms/ # Field Management System
24+
└── app.css # Tailwind config
25+
```

ui/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
44

5+
## Shared Styles
6+
7+
This project uses a focused approach to shared styles in `src/lib/styles.ts`. Only genuinely reusable patterns that appear across multiple components are centralized:
8+
9+
- **Form inputs** - Standard input styling for consistent form appearance
10+
- **Badges** - Color-coded badges used in notes, match cards, and team cards
11+
- **Section headers** - Interactive headers for collapsible sections
12+
- **Empty states** - Consistent styling for "no data" states
13+
- **Error states** - Error messaging and retry button styling
14+
15+
**Philosophy**: Keep component-specific and one-off styles local to the component. Only centralize styles that are truly shared to maintain a consistent visual theme while avoiding over-abstraction.
16+
517
## Developing
618

719
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

0 commit comments

Comments
 (0)