Skip to content

Add support to 3 boxes#9

Merged
bence-toth merged 9 commits intomainfrom
3-box
Nov 19, 2025
Merged

Add support to 3 boxes#9
bence-toth merged 9 commits intomainfrom
3-box

Conversation

@bence-toth
Copy link
Owner

No description provided.

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 support for a 3-box view as an alternative to the existing 9-box grid, enabling simplified employee performance visualization. The implementation includes navigation between views, automatic employee unplotting on view changes, and comprehensive test coverage for core hooks and utilities.

Key Changes:

  • Added a new 3-box grid component (Boxes3.tsx) with single-dimension performance tracking
  • Implemented routing with navigation between 9-box and 3-box views
  • Extended useEmployees hook with an unplotAllEmployees function to reset employee placements
  • Added comprehensive test suites for useEmployees, useTeams, and utility functions

Reviewed Changes

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

Show a summary per file
File Description
src/utility.test.ts Comprehensive test suite for correlation calculations with p-values, covering edge cases, perfect/moderate correlations, and statistical significance
src/useTeams.test.tsx Complete test coverage for team filtering hook including initial state, toggle behavior, filtered employees, dynamic updates, and edge cases
src/useEmployees.test.tsx Full test suite for employee management hook covering initialization, drop functionality, unplotting, state persistence, and sorting
src/useEmployees.tsx Added unplotAllEmployees callback function to reset all employee box assignments to null
src/config.ts Added 3-box configuration with thresholds and group thresholds for the new view
src/Boxes3.tsx New component implementing 3-box grid layout with threshold checking and employee filtering
src/Boxes3.css Styling for 3-box grid using CSS Grid with 3 equal columns
src/App.tsx Integrated routing with navigation component, route definitions, and automatic unplotting on view changes

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

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

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


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

@bence-toth bence-toth merged commit 6bfea23 into main Nov 19, 2025
1 of 3 checks passed
@bence-toth bence-toth deleted the 3-box branch November 19, 2025 11:57
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