Skip to content

Conversation

@ptaranat
Copy link
Member

Canvas Mode Implementation

  • Added full canvas mode functionality with draggable table windows
  • Implemented window management system for multiple table instances
  • Added keyboard shortcuts for toggling history in canvas mode
  • Included canvas menu state and positioning controls

Interactive Table Viewing

  • Introduced TableEntryViewer component for structured table entry display
  • Added expand/collapse functionality for table sections
  • Implemented search term highlighting and entry click handling
  • Added ability to roll specific sections and force entries

Draggable Window System

  • Created DraggableWindow component with resize and drag capabilities
  • Added customizable position, size, and constraint options
  • Implemented window focus management and close functionality

Enhanced Table Window Experience

  • Added TableWindow component for interactive table results
  • Implemented roll history tracking and reroll functionality
  • Added section-specific rolling and forced entry selection

🔧 Technical Improvements

Search Enhancement

  • Updated search weights to prioritize legacy content and section names
  • Improved search relevance for better user experience

Roll Result Refactoring

  • Refactored InteractiveRollResult component with hierarchical subroll structure
  • Added proper recursion bounds and termination conditions
  • Enhanced click handling for subtable interactions

Data Structure Updates

  • Added ForcedSelection interface for targeted table rolling
  • Enhanced SubrollData interface with entry tracking and nested references
  • Implemented rollOnTableWithForcedSelections functionality

🎨 UI/UX Improvements

Styling Updates

  • Updated button sizes, padding, and responsive layout adjustments
  • Added consistent scrollbar and table styling across components
  • Improved visual presentation with animations and transitions
  • Enhanced empty states and history list styling

Component Enhancements

  • Refactored TableList component with view mode toggles
  • Updated table expansion logic to support multiple open tables
  • Added table open/view buttons with improved interaction patterns

📦 Version & Documentation

  • Updated package version from 1.0.0 to 1.1.0
  • Enhanced spell effects documentation with color variations
  • Improved formatting and readability across documentation

🔄 State Management

  • Added comprehensive preference saving for canvas mode settings
  • Implemented window state persistence and restoration
  • Enhanced table window management with proper state tracking

@ptaranat ptaranat requested a review from Copilot May 27, 2025 01:28
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 implements full canvas mode functionality with enhanced window management and interactive table viewing features while also introducing a few technical improvements in search, rolling logic, and UI responsiveness.

  • Key changes include: duplicate interface cleaning in shared types, updated search weight factors, and refactored components for better interaction and state management.

Reviewed Changes

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

Show a summary per file
File Description
src/shared/types.ts Duplicate declaration of ForcedSelection interface that should be consolidated
src/renderer/hooks/useTableSearch.ts Adjusted search weight configurations to better prioritize legacy and section names
src/renderer/components/TableWindow.tsx Added and refined roll history, forced entry handling, and draggable window integration
src/renderer/components/TableList.tsx Updated inline expansion logic from a single ID to a Set-based approach for multiple tables
Others Various UI and utility improvements ensuring consistency and enhanced user experience

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ptaranat ptaranat merged commit b077383 into main May 27, 2025
@ptaranat ptaranat deleted the ui branch May 27, 2025 01:30
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