Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
generated-by: claude-opus-5
generated-on: 2026-08-22
prompted-by: jakeross
---

# CLAUDE.md

Guidance for Claude Code in the OcotilloUI repository. The full agent guide lives in `AGENTS.md`, imported below — read it before making changes.

## Branching, in short

**Feature, fix, chore, docs, and CI branches all base off `origin/staging` and target `staging` in their PR.** Only a hotfix bases off `production`.

```bash
git fetch origin && git checkout -b chore/bdms-1234-short-description origin/staging
```

`production` is the repository's default branch, so a branch cut without passing an explicit base starts there — and a `production`-based PR into `staging` drags unrelated commits into the diff. Always pass `origin/staging` explicitly. See [Where to branch from](AGENTS.md#where-to-branch-from) for the full rule.

@AGENTS.md
3 changes: 1 addition & 2 deletions public/content/ogcapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ Review available collections before connecting from desktop GIS.
- [!CHIPS]
- Water Wells
- Springs
- Latest Depth to Water
- Average TDS
- Latest TDS
- Water Well Summary

Collection names can change by deployment. If you do not see one of these, open the [collections endpoint]({{ ocotillo_api_url }}/ogcapi/collections) and use the names published there.
49 changes: 0 additions & 49 deletions src/components/MapPopupComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,16 @@ const getFeatureType = (properties: Record<string, unknown>): string =>

const getLayerLabel = (layerKey: string): string => {
const labelByLayer: Record<string, string> = {
'ogc-latest-depth-to-water': 'Latest Depth to Water',
'ogc-average-tds': 'Average TDS',
'ogc-latest-tds': 'Latest TDS',
'ogc-major-chemistry': 'Major Chemistry',
'ogc-minor-chemistry': 'Minor Chemistry',
'ogc-depth-to-water-trend': 'Depth to Water Trend',
'ogc-water-elevation-points': 'Water Elevation',
'ogc-water-elevation-contours': 'Water Elevation Contours',
'ogc-water-well-summary': 'Water Well Summary',
'ogc-water-wells': 'Water Wells',
'ogc-actively-monitored': 'Actively Monitored',
'ogc-springs': 'Springs',
'ogc-project-areas': 'AMP Project Areas',
'ogc-locations': 'Locations',
}

return labelByLayer[layerKey] || titleCase(layerKey.replace(/^ogc-/, ''))
Expand All @@ -149,8 +145,6 @@ const isTypeImplicitFromLayer = (
[
'ogc-water-wells',
'ogc-water-well-summary',
'ogc-latest-depth-to-water',
'ogc-average-tds',
'ogc-latest-tds',
'ogc-major-chemistry',
'ogc-minor-chemistry',
Expand Down Expand Up @@ -203,38 +197,6 @@ const buildFeatureRows = (
const releaseStatus = getString(properties, 'release_status')

const layerSpecificRowsByLayer: Record<string, PopupRow[]> = {
'ogc-latest-depth-to-water': [
makeRow(
'Latest Depth to Water',
formatNumberWithUnit(getNumber(properties, 'depth_to_water_bgs'), 'ft bgs')
),
makeRow('Observation Date', formatDate(properties.observation_datetime)),
makeRow(
'Reference Elevation',
formatNumberWithUnit(getNumber(properties, 'depth_to_water_reference'), 'ft')
),
makeRow(
'Measuring Point Height',
formatNumberWithUnit(getNumber(properties, 'measuring_point_height'), 'ft')
),
],
'ogc-average-tds': [
makeRow(
'Average TDS',
formatNumberWithUnit(getNumber(properties, 'avg_tds_value'), 'mg/L')
),
makeRow(
'Records Used',
getNumber(properties, 'tds_observation_count')?.toString()
),
makeRow(
'Date Range',
formatDateRange(
getString(properties, 'first_tds_observation_date'),
getString(properties, 'last_tds_observation_date')
)
),
],
'ogc-latest-tds': [
makeRow(
'Latest TDS',
Expand Down Expand Up @@ -465,17 +427,6 @@ const buildFeatureRows = (
makeRow('Release Status', releaseStatus && titleCase(releaseStatus)),
makeRow('Formation Zone', getString(properties, 'nma_formation_zone')),
],
'ogc-locations': [
makeRow(
'Elevation',
formatNumberWithUnit(getNumber(properties, 'elevation'), 'ft')
),
makeRow('County', getString(properties, 'county')),
makeRow('State', getString(properties, 'state')),
makeRow('Quad', getString(properties, 'quad_name')),
makeRow('Release Status', releaseStatus && titleCase(releaseStatus)),
makeRow('Description', getString(properties, 'description')),
],
}

const layerSpecificRows = layerSpecificRowsByLayer[layerKey]
Expand Down
Loading
Loading