You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Format code and improve line wrapping across the site (#126)
* Show alert title when there is only one active alert
When the Current Conditions card has exactly one alert, display
the alert's title instead of the generic "1 active alert" text.
https://claude.ai/code/session_01DkQd81sxvLc4w5VkZCwenM
* Apply formatting and update lockfile
Run pnpm format across the codebase and update pnpm-lock.yaml
after fresh install.
https://claude.ai/code/session_01DkQd81sxvLc4w5VkZCwenM
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+42-5Lines changed: 42 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,22 +3,26 @@
3
3
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
4
5
5
## Project Overview
6
+
6
7
This is an Astro-based website for the Ebbetts Pass Radio Safety Net (ERSN). The site provides information about emergency communications, GMRS radios, mesh networking, and amateur radio resources.
7
8
8
9
## Build Commands
10
+
9
11
-`pnpm dev` or `pnpm start`: Start dev server
10
12
-`pnpm build`: Build for production
11
13
-`pnpm preview`: Preview production build
12
14
-`pnpm check`: Run Astro type checking
13
15
-`pnpm format` or `pnpm fmt`: Format code with Prettier
14
16
15
17
## Quality Assurance
18
+
16
19
-**Always run checks**: After making changes, run `pnpm check` to verify TypeScript compilation
17
20
-**Format code**: Run `pnpm format` before committing to ensure consistent formatting
18
21
-**Test builds**: Run `pnpm build` to ensure production builds work correctly
19
22
-**Preview changes**: Use `pnpm preview` to test the production build locally
20
23
21
24
## Code Style Guidelines
25
+
22
26
-**Formatting**: 100 char line width, 2-space indentation, single quotes, trailing commas
23
27
-**Imports**: Framework imports first, then path aliases (@components, @layouts), then local
24
28
-**Component Structure**: Props declaration in frontmatter, clear script/template separation
@@ -29,6 +33,7 @@ This is an Astro-based website for the Ebbetts Pass Radio Safety Net (ERSN). The
29
33
-**React Components**: Used sparingly when needed for interactivity
30
34
31
35
## Autonomous Operation Guidelines
36
+
32
37
-**Make changes confidently**: You have permission to edit files, add components, and modify content
33
38
-**Follow existing patterns**: Study existing components and pages to understand conventions
34
39
-**Validate changes**: Always run `pnpm check` and `pnpm build` after making changes
@@ -37,13 +42,15 @@ This is an Astro-based website for the Ebbetts Pass Radio Safety Net (ERSN). The
37
42
-**Maintain consistency**: Follow the established patterns for page structure and styling
38
43
39
44
## Common Tasks
45
+
40
46
-**Adding pages**: Create .astro files in src/pages/, use Layout.astro wrapper
41
47
-**Styling**: Use Tailwind CSS classes, follow existing color/spacing patterns
42
48
-**Content updates**: Edit existing .astro files in src/pages/ for content changes
43
49
-**Component updates**: Modify files in src/components/ for reusable functionality
44
50
-**Asset management**: Add images to src/assets/img/, reference with @img/ alias
45
51
46
52
## Technology Stack
53
+
47
54
-**Framework**: Astro (Static Site Generator)
48
55
-**Styling**: Tailwind CSS
49
56
-**Package Manager**: pnpm
@@ -53,17 +60,19 @@ This is an Astro-based website for the Ebbetts Pass Radio Safety Net (ERSN). The
53
60
## News & Bulletin Management
54
61
55
62
### Adding News Posts
63
+
56
64
You are authorized to autonomously add news, bulletins, and updates to the website using Astro's content collections.
57
65
58
66
**Location**: Create new files in `src/content/bulletins/`
59
67
60
68
**File Format**:
69
+
61
70
```markdown
62
71
---
63
-
title: "Short descriptive title"
72
+
title: 'Short descriptive title'
64
73
date: 2025-06-07T00:00:00Z
65
-
slug: "url-friendly-slug"
66
-
summary: "One or two sentence plain text preview of the post content."
74
+
slug: 'url-friendly-slug'
75
+
summary: 'One or two sentence plain text preview of the post content.'
67
76
---
68
77
69
78
Content body with proper markdown formatting.
@@ -81,6 +90,7 @@ Use double line breaks between paragraphs.
81
90
**File Naming**: Use kebab-case names like `practice-net-update.md`
82
91
83
92
**Summary Requirements**:
93
+
84
94
-**Plain text only**: No markdown formatting in summaries
85
95
-**1-2 sentences**: Concise preview of the main content
86
96
-**Key details**: Include who, what, when for events
@@ -90,21 +100,25 @@ Use double line breaks between paragraphs.
90
100
### Content Guidelines & Privacy Rules
91
101
92
102
**REQUIRED Content Filtering**:
103
+
93
104
-**Remove surnames**: Use first names only (e.g., "Jay" not "Jay Smith") unless explicitly told to keep them
94
105
-**Remove GMRS codes**: Strip out PL tones, CTCSS codes, access codes, or frequency details
95
106
-**Remove phone numbers**: Never include personal phone numbers unless explicitly instructed
96
107
-**Emergency contacts**: Keep official emergency numbers (911, etc.)
97
108
98
109
**Content Examples**:
110
+
99
111
```markdown
100
112
# ✅ GOOD - Event Formatting
113
+
101
114
ERSN member Jay will be hosting a practice net on Wednesday.
102
115
103
116
-**When:** 7:30 PM, Wednesdays
104
117
-**Where:** Forest Meadows Repeater
105
118
-**Contact:**ersnnets@gmail.com for more info
106
119
107
-
# ❌ BAD
120
+
# ❌ BAD
121
+
108
122
Jay Williams will be hosting...
109
123
Use PL tone 156.7 to access...
110
124
Call Jay at (555) 123-4567...
@@ -115,6 +129,7 @@ Single line breaks that don't create paragraphs
115
129
```
116
130
117
131
**Markdown Formatting Rules**:
132
+
118
133
-**Double line breaks** create paragraphs (required for proper rendering)
119
134
-**Use headings** (## Heading) to structure content sections
120
135
-**Event details as lists**: Use bulleted lists for event information, not headings
@@ -124,6 +139,7 @@ Single line breaks that don't create paragraphs
124
139
-**Hyperlink text properly** using `[link text](url)` format instead of bare URLs
0 commit comments