Skip to content

Advanced Search: UDS & Finish Line#89

Merged
stdavis merged 15 commits intomainfrom
uds/fileinput
Dec 3, 2025
Merged

Advanced Search: UDS & Finish Line#89
stdavis merged 15 commits intomainfrom
uds/fileinput

Conversation

@stdavis
Copy link
Copy Markdown
Member

@stdavis stdavis commented Dec 2, 2025

  • Switch to UDS file input
  • Add clear button

Unless you have other ideas, I'm ready to just deal with the strange blank map issue in dev for now.

Copilot AI review requested due to automatic review settings December 2, 2025 16:10
Copy link
Copy Markdown
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 modernizes the file upload UI for shapefiles by migrating from a native HTML file input to the UDS (Utah Design System) FileInput component and adds a clear button for the area of interest. The changes improve consistency with the design system and enhance user experience with better file handling feedback and the ability to clear drawn polygons.

Key changes:

  • Refactored useShapefileUpload hook to accept FileList directly instead of React change events
  • Integrated UDS FileInput component with proper error handling and loading states
  • Added "Clear Area of Interest" button with extracted clear functionality

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
src/hooks/useShapefileUpload.ts Modified hook signature to accept FileList instead of React.ChangeEvent, added onClear callback, removed manual input reset logic, and reordered error clearing for better UX
src/AppSearch.tsx Replaced native file input with UDS FileInput component, extracted clear logic into reusable function, added clear button, improved accessibility with aria-hidden, and includes debug console.log to remove
package.json & package-lock.json Updated @ugrc/utah-design-system to v1.33.0 and added @types/terraformer__arcgis type definitions
.vscode/settings.json Added "shapefiles" to spell check dictionary

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@stdavis stdavis enabled auto-merge (rebase) December 2, 2025 16:13
@stdavis stdavis requested a review from steveoh December 2, 2025 16:17
Copy link
Copy Markdown
Contributor

@steveoh steveoh left a comment

Choose a reason for hiding this comment

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

looks good. Is it missing dark styles?

Copy link
Copy Markdown
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

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.


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

@stdavis stdavis requested a review from Copilot December 2, 2025 22:46
@stdavis stdavis linked an issue Dec 2, 2025 that may be closed by this pull request
6 tasks
Copy link
Copy Markdown
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

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.


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

@stdavis
Copy link
Copy Markdown
Member Author

stdavis commented Dec 2, 2025

Waiting on agrc/kitchen-sink#567

@stdavis stdavis disabled auto-merge December 2, 2025 22:51
Copy link
Copy Markdown
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

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.


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

@stdavis stdavis merged commit 9d348db into main Dec 3, 2025
12 checks passed
@stdavis stdavis deleted the uds/fileinput branch December 3, 2025 16:32
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.

3 participants