Skip to content

Conversation

@Sinrefvol
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

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 refactors the outcrop data structure throughout the application by updating the API-generated types and adjusting the components accordingly. The changes transition from array-based basin and location data to simpler nullable fields, aligning with the updated API schema.

  • Refactored GetOutcropsDto structure to use nullable single values for basin and location instead of arrays
  • Updated OutcropType interface to match the new data structure with nested location object
  • Modified components to access location data through the new structure (region.location.locationName vs region.locations[0].locationName)

Reviewed Changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Added trailing comma for consistency
src/stores/GlobalStore.tsx Updated type from OutcropDto[] to GetOutcropsDto[] for outcrops state
src/components/OutcropAnalogue/OutcropSelect/OutcropSelect.tsx Refactored to use new single-value location structure and basin field instead of arrays
src/components/OutcropAnalogue/OutcropAnalogueGroup/OutcropAnalogueGroup.tsx Updated interface definition and table rendering to use new location structure
src/api/generated/types.gen.ts Updated type definitions for outcrop DTOs with new structure including Delft3D types
src/api/generated/sdk.gen.ts Added new Delft3D preprocess endpoint
src/api/generated/schemas.gen.ts Updated schemas to reflect new outcrop structure and Delft3D additions
.eslintignore Simplified to use wildcard pattern for generated files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sinrefvol Sinrefvol merged commit 2392bcb into main Nov 5, 2025
1 check passed
@Sinrefvol Sinrefvol deleted the fix/new-outcrop-endpoint branch November 5, 2025 06:40
@pepm-ci pepm-ci bot mentioned this pull request Nov 5, 2025
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.

2 participants