Skip to content

Fix: use full aggregation labels map for Итого row#8

Merged
greenblat17 merged 1 commit into
mainfrom
fix/frontend-ux-improvements
Mar 22, 2026
Merged

Fix: use full aggregation labels map for Итого row#8
greenblat17 merged 1 commit into
mainfrom
fix/frontend-ux-improvements

Conversation

@greenblat17

Copy link
Copy Markdown
Owner

Import aggregationLabels from types/pivot.ts instead of incomplete hardcoded map. Covers all aggregation types including int_sum, median, variance, etc.

Import aggregationLabels from types/pivot.ts instead of incomplete hardcoded map.
Covers all aggregation types including int_sum, median, variance, etc.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@greenblat17 greenblat17 self-assigned this Mar 22, 2026
@qodo-code-review

Copy link
Copy Markdown
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan

Review Summary by Qodo

Use full aggregation labels map for total row

🐞 Bug fix ✨ Enhancement

Grey Divider

Walkthroughs

Description
• Replace hardcoded aggregation labels with centralized map from types
• Support all aggregation types including int_sum, median, variance
• Add proper TypeScript typing for AggregationType
• Improve maintainability by using single source of truth
Diagram
flowchart LR
  A["Hardcoded labels<br/>in component"] -->|Replace with| B["aggregationLabels<br/>from types/pivot"]
  B -->|Covers all types| C["int_sum, median,<br/>variance, etc."]
  B -->|Adds typing| D["AggregationType<br/>type safety"]
Loading

Grey Divider

File Changes

1. frontend/src/components/PivotTable/PivotTable.tsx 🐞 Bug fix +3/-9

Replace hardcoded labels with centralized aggregation map

• Import aggregationLabels and AggregationType from centralized types module
• Remove incomplete hardcoded labels object with 11 aggregation types
• Update total row label generation to use imported aggregationLabels map
• Add TypeScript type casting for AggregationType to ensure type safety

frontend/src/components/PivotTable/PivotTable.tsx


Grey Divider

Qodo Logo

@qodo-code-review

qodo-code-review Bot commented Mar 22, 2026

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 📐 Spec deviations (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@greenblat17
greenblat17 merged commit 118b9c2 into main Mar 22, 2026
2 checks 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.

1 participant