Skip to content

Commit 06bddbb

Browse files
author
bndct-devops
committed
fix: replace stopwatch emoji with Lucide Timer; add copilot-instructions.md
1 parent 56ca9ad commit 06bddbb

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/copilot-instructions.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# lifty — Copilot workspace instructions
2+
3+
## Icons & emoji
4+
- **Never use Unicode emoji** in UI code (JSX, HTML, CSS). Always use [Lucide React](https://lucide.dev) icons instead.
5+
- If a suitable Lucide icon doesn't exist, use a simple inline SVG.
6+
- Lucide icons are already imported per-component — add to existing imports, don't add a new import block.
7+
8+
## Themes & colors
9+
- Default theme is `lifty` (Catppuccin Mocha base + Pink `#f5c2e7` accent).
10+
- Always use CSS variables (`var(--accent)`, `var(--bg)`, etc.) — never hardcode colors in JSX unless it's a static asset (SVG icon file).
11+
- Catppuccin color reference: Mocha bg `#1e1e2e`, Pink `#f5c2e7`, Mauve `#cba6f7`.
12+
13+
## Code style
14+
- Frontend is a single `App.jsx` file — add to it, don't create new component files unless explicitly asked.
15+
- Styles go in `styles.css` — no CSS-in-JS libraries.
16+
- Backend is FastAPI + SQLModel. Keep endpoints RESTful.
17+
18+
## Git workflow
19+
- Active dev branch is `dev`. Never push directly to `main` without being asked.
20+
- Commit messages: `fix:`, `feat:`, `ci:`, `docs:` prefixes.
21+
22+
## Docker
23+
- Always rebuild with `docker compose up --build -d` after frontend/backend changes.
24+
- Local app runs at http://localhost:5173.

frontend/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export default function App() {
616616
<div className="card" style={{ border: '2px solid var(--accent)' }}>
617617
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'baseline' }}>
618618
<p className="section-heading" style={{ color: 'var(--accent)', margin: 0 }}>Workout in Progress</p>
619-
<span style={{ fontVariantNumeric: 'tabular-nums', fontSize: '0.9rem', color: timerColor, fontWeight: 500, transition: 'color 2s ease' }}>{timerStr}</span>
619+
<span style={{ fontVariantNumeric: 'tabular-nums', fontSize: '0.9rem', color: timerColor, fontWeight: 500, transition: 'color 2s ease' }}><Timer size={14} style={{ display: 'inline', verticalAlign: 'middle', marginRight: 3 }} />{timerStr}</span>
620620
</div>
621621
<div style={{ fontWeight: 600, fontSize: '1.05rem', marginTop: 8 }}>{inProgress.name}</div>
622622
<div className="muted small" style={{ margin: '4px 0 12px' }}>{(inProgress.unique_exercises_count ?? 0)} ex · {(inProgress.set_count ?? 0)} sets</div>

0 commit comments

Comments
 (0)