Skip to content

Conversation

@seankmartin
Copy link

@seankmartin seankmartin commented Aug 26, 2025

Adds default value selection to enums via a selector

@seankmartin seankmartin marked this pull request as ready for review September 1, 2025 09:52
@seankmartin seankmartin requested a review from Copilot September 1, 2025 09:52
Copy link

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 adds default value selection functionality for enum-type annotation properties by implementing a dropdown selector that allows users to choose which enum value should be the default for new annotations.

  • Implements a dropdown selector for setting default values on enum properties
  • Updates default value handling logic to preserve valid defaults when enum values change
  • Adds explanatory text about non-retroactive nature of schema default changes

Reviewed Changes

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

File Description
src/ui/annotation_schema_tab.ts Adds enum default selector UI component and updates default value preservation logic
src/ui/annotation_schema_tab.css Adds styling for the new enum default selector component

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

@seankmartin seankmartin merged commit 0df21c5 into feature/annotation-schema Sep 2, 2025
1 check passed
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