Repository navigation
Add individual label fields for pivot aggregation while keeping combined labels - #19
Conversation
Co-authored-by: jumpingrabbit <13073856+jumpingrabbit@users.noreply.github.com>
…rows Co-authored-by: jumpingrabbit <13073856+jumpingrabbit@users.noreply.github.com>
|
@copilot No. The idea is to have in addition to
Also, do not commit package-lock.json |
Co-authored-by: jumpingrabbit <13073856+jumpingrabbit@users.noreply.github.com>
Updated the implementation in commit b780c89:
Cards with multiple labels now have both the combined field and individual fields, allowing pivoting on either. |
There was a problem hiding this comment.
Pull Request Overview
This PR resolves an issue where cards with multiple labels were aggregated as a single combined label instead of allowing each label to be counted independently in pivot operations.
- Adds individual dynamic fields for each label (e.g.,
Label Car,Label Home) while preserving the existing combinedLabelsfield - Updates
.gitignoreto exclude Parcel cache directory - Enables users to pivot on either combined label strings or individual labels
Reviewed Changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/js/modal.js | Adds individual label fields to the card data map, creating separate pivotable fields for each label on a card |
| .gitignore | Adds .parcel-cache/ directory to prevent build cache from being committed |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Cards with multiple labels were aggregated as a single combined label (e.g., "Car, Home") instead of allowing each label to be counted independently in pivot operations.
Changes
src/js/modal.js:Labelsfield that joins all labels with commasLabel Car,Label Home).gitignore:package-lock.jsonand.parcel-cache/to prevent unnecessary files from being committedExample
Before:
After:
This approach allows users to:
Pivot on the combined
Labelsfield for label combinationsPivot on individual
Label {name}fields to count each label separatelyFixes Labels #16
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.