Draft
Bootstrap ObservationTracker: full project structure, web SPA, and docs#1
Conversation
- Add .gitignore and MIT LICENSE
- Create docs/ with all 11 documentation files (Vision, Requirements,
Architecture, UX, DesignSystem, DataModel, Repository, CodingStandards,
Milestones, DecisionLog, AIInstructions)
- Build complete vanilla-JS SPA under web/:
- models/: Observation factory, Category loader
- repository/: ObservationRepository (localStorage CRUD)
- services/: ObservationService, LocationService, ExportService
- components/: NavBar, ObservationCard, ObservationModal, FilterBar,
Toast, ConfirmDialog (XSS-safe via textContent/escapeHtml)
- screens/: Home, LogObservation, MyObservations, Map, Stats
- utils/: date, validation, format helpers
- data/: categories.json, species.json reference data
- assets/icons/ placeholder
- index.html app shell and styles.css design system
- Add ios/README.md placeholder for Milestone 4
- Update README.md with project overview and quickstart
Copilot
AI
changed the title
[WIP] Add iOS support to ObservationTracker
Bootstrap ObservationTracker: full project structure, web SPA, and docs
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the complete repository layout described in the project spec — previously only
README.mdexisted.Documentation (
docs/)11 spec files: Vision, Requirements, Architecture, UX, DesignSystem, DataModel, Repository, CodingStandards, Milestones, DecisionLog, AIInstructions.
Web SPA (
web/)Offline-first nature-observation tracker in vanilla JS ES2020+ — no build step, opens directly as
file://.Observation.js(factory + update),Category.js(lazy JSON loader)ObservationRepository.js— localStorage CRUDObservationService.js(list/filter/stats),LocationService.js(GPS + Nominatim reverse-geocode),ExportService.js(JSON export/import)date.js,validation.js,format.js(pure helpers)categories.json(8 categories),species.json(~150 species for autocomplete)Hash-based router in
app.jsmaps#/home,#/log,#/observations,#/map,#/statsto screen modules.iOS placeholder (
ios/)README.mdstub documenting the planned Swift/SwiftUI stack for Milestone 4.Security
CodeQL flagged 5 XSS paths in the initial pass; all resolved:
innerHTMLinterpolation of caller-suppliedtitle/messagewithtextContentassignment after DOM construction (preventsobs.speciesfrom localStorage reaching innerHTML unescaped)obs.countwas interpolated as-is; now coerced viaescapeHtml(String(obs.count))photoDataUrlmoved out of the HTML template string; set viaelement.src = obs.photoDataUrlafter render to prevent attribute-injectionOriginal prompt