Skip to content

112 add front end coordinate file parsing functionality#142

Open
joshnorlin wants to merge 50 commits intomainfrom
112-add-front-end-coordinate-file-parsing-functionality
Open

112 add front end coordinate file parsing functionality#142
joshnorlin wants to merge 50 commits intomainfrom
112-add-front-end-coordinate-file-parsing-functionality

Conversation

@joshnorlin
Copy link
Copy Markdown
Collaborator

This PR accomplishes the following:

  • User can upload a file containing coordinates, and a corresponding file parser grabs the coordinates.
  • The parsing program can handle many popular file formats, such as .csv, .json, .geojson, and .kml, and .shp (zip folder) files.
  • Bad input is prevented via input validation.
  • User can visualize their successfully parsed coordinates on a map and confirm the boundaries.

Copy link
Copy Markdown
Owner

@JosephPBaruch JosephPBaruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshnorlin I'll circle back to reviewing once the package issue is resolved.

Comment thread frontend/package.json
Comment thread frontend/tests/charai.spec.ts
@JosephPBaruch JosephPBaruch moved this from Backlog to In review in CharAI Development Apr 9, 2026
@joshnorlin joshnorlin force-pushed the 112-add-front-end-coordinate-file-parsing-functionality branch from c84fce4 to 1e95cb4 Compare April 10, 2026 00:24
Copy link
Copy Markdown
Owner

@JosephPBaruch JosephPBaruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really great! Super impressed on how this came together and it worked super well. Just need a few organization changes and renaming to clear up some confusion.

Comment thread frontend/tests/file-parser.spec.ts Outdated
Comment thread frontend/tests/file-parser.spec.ts
Comment thread frontend/src/pages/LandingPage.tsx Outdated
backgroundColor: theme.palette.mode === "dark" ? "rgba(100, 108, 255, 0.1)" : "rgba(100, 108, 255, 0.08)",
backgroundColor:
theme.palette.mode === "dark"
? "rgba(100, 108, 255, 0.1)"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colors like these are used often. Can we define this once and reuse? Perhaps store in the useTheme() hook?

Comment thread frontend/src/features/coordinate_upload/helpers.ts Outdated
Copy link
Copy Markdown
Owner

@JosephPBaruch JosephPBaruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like You're still working on some stuff so I wont say much. Looking good so far though. I'd say, the validator functions in helper are a bit too tied to the example files. These could be more general like checking a passed in "Total Grid Cells" count

@JosephPBaruch JosephPBaruch moved this from In review to Done in CharAI Development Apr 14, 2026
@joshnorlin joshnorlin force-pushed the 112-add-front-end-coordinate-file-parsing-functionality branch from ff0a74b to 5230ac1 Compare April 16, 2026 22:56
- Fixed __dirname not defined by using import.meta.url with fileURLToPath
- Updated all hard-coded fixture paths to use fixture() helper function
- Added scrolling to MUI Dialog to find coordinate upload button
- Tests now executing successfully (14 passing, 7 failing with error message validation issues)
- Error message validation selectors need refinement for strict mode compliance
@joshnorlin joshnorlin force-pushed the 112-add-front-end-coordinate-file-parsing-functionality branch from 5230ac1 to 85935eb Compare April 20, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Implement front-end coordinate file parsing functionality

2 participants