Skip to content

Conversation

@Sambhram1
Copy link

Add workspace setting to make polygon direction arrows and initial points always visible instead of only on hover/activation.

Features:

  • New 'Always show polygon direction' checkbox in workspace settings
  • Redux state management for showPolygonDirectionAlways setting
  • Canvas integration to respect the new configuration
  • Dynamic toggle support with immediate effect
  • Smart activation logic to avoid redundant direction displays

Changes:

  • Add showPolygonDirectionAlways to WorkspaceSettingsState interface
  • Add SWITCH_SHOWING_POLYGON_DIRECTION_ALWAYS action type and creator
  • Add reducer case with default value false
  • Add UI checkbox component with proper styling and description
  • Add canvas configuration property alwaysShowDirection
  • Modify canvas view logic to show direction arrows persistently
  • Add configuration change handling for dynamic updates

Technical improvements:

  • Fix TypeScript errors with Redux AnyAction payload support
  • Add proper JSX namespace declarations
  • Fix Ant Design InputNumber type compatibility issues
  • Add comprehensive module declarations for better type safety
  • Enhance Canvas class method declarations

This addresses the user requirement to improve validation and annotation processes by making polygon direction indicators permanently visible.

Motivation and context

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Add workspace setting to make polygon direction arrows and initial points
always visible instead of only on hover/activation.

Features:
- New 'Always show polygon direction' checkbox in workspace settings
- Redux state management for showPolygonDirectionAlways setting
- Canvas integration to respect the new configuration
- Dynamic toggle support with immediate effect
- Smart activation logic to avoid redundant direction displays

Changes:
- Add showPolygonDirectionAlways to WorkspaceSettingsState interface
- Add SWITCH_SHOWING_POLYGON_DIRECTION_ALWAYS action type and creator
- Add reducer case with default value false
- Add UI checkbox component with proper styling and description
- Add canvas configuration property alwaysShowDirection
- Modify canvas view logic to show direction arrows persistently
- Add configuration change handling for dynamic updates

Technical improvements:
- Fix TypeScript errors with Redux AnyAction payload support
- Add proper JSX namespace declarations
- Fix Ant Design InputNumber type compatibility issues
- Add comprehensive module declarations for better type safety
- Enhance Canvas class method declarations

This addresses the user requirement to improve validation and annotation
processes by making polygon direction indicators permanently visible.
@Sambhram1 Sambhram1 requested a review from bsekachev as a code owner August 11, 2025 16:05
@Sambhram1 Sambhram1 changed the title feat: Add always show polygon direction setting feat: Add always show polygon direction setting #1858 Aug 11, 2025
@sonarqubecloud
Copy link

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.

1 participant