Skip to content

feat: #962 create opening step 1 scaffolding - #997

Merged
craigyu merged 20 commits into
mainfrom
feat/962-create-opening-step-1-scaffolding
Aug 19, 2025
Merged

feat: #962 create opening step 1 scaffolding#997
craigyu merged 20 commits into
mainfrom
feat/962-create-opening-step-1-scaffolding

Conversation

@craigyu

@craigyu craigyu commented Aug 19, 2025

Copy link
Copy Markdown
Collaborator

Description

Completes #962

Allows user to upload a file and display a preview...

The text in some areas are modified from the design by me, I will discuss this with the team before this is merged.

For the form state in screens/CreateOpening, I was thinking about using a context provider but decided not to since likely only 2 components will be using it.

How to test

3 test files are added to frontend/src/__test__/fixtures

  • esf's XML file
  • polygon only GML file
  • polygon only GeoJSON file

Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@craigyu craigyu self-assigned this Aug 19, 2025
@craigyu craigyu linked an issue Aug 19, 2025 that may be closed by this pull request
@Abradat
Abradat requested a review from Copilot August 19, 2025 16:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements the initial scaffolding for the opening creation workflow (step 1) in the Silva application. It introduces a file upload interface that allows users to upload spatial geometry files (GeoJSON, GML, XML/ESF) and displays a preview of the uploaded geometry on a map.

Key changes include:

  • Implemented spatial file parsing utilities for multiple geospatial formats with coordinate system transformations
  • Created a multi-step wizard interface with progress indicator for opening creation
  • Added file upload functionality with validation and map preview capabilities

Reviewed Changes

Copilot reviewed 21 out of 23 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
frontend/src/utils/SpatialUtils.ts Core spatial processing utilities for parsing GML, ESF, and GeoJSON files with coordinate transformations
frontend/src/screens/CreateOpening/index.tsx Main component implementing the multi-step opening creation workflow
frontend/src/components/CreateOpeningSteps/FileUpload/index.tsx File upload component with validation and spatial file processing
frontend/src/components/MapPreview/index.tsx Map component for displaying uploaded geometry using Leaflet
frontend/package.json Added dependencies for spatial processing (OpenLayers, proj4)
frontend/src/utils/InputUtils.ts Added scroll utility function
frontend/src/utils/ForestClientUtils.ts Added client formatting utility
frontend/src/types/OpeningTypes.ts Added opening type definitions
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread frontend/src/screens/CreateOpening/index.tsx Outdated
Comment thread frontend/src/utils/SpatialUtils.ts Outdated
Comment thread frontend/src/utils/SpatialUtils.ts Outdated
Comment thread frontend/src/screens/CreateOpening/definitions.ts Outdated
Comment thread frontend/src/utils/SpatialUtils.ts
Comment thread frontend/src/components/CreateOpeningSteps/FileUpload/index.tsx Outdated

@Abradat Abradat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great work 🚀

@craigyu
craigyu enabled auto-merge (squash) August 19, 2025 23:43
@craigyu
craigyu merged commit 27139cd into main Aug 19, 2025
24 of 25 checks passed
@craigyu
craigyu deleted the feat/962-create-opening-step-1-scaffolding branch August 19, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create opening step 1 scaffolding

3 participants