mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 02:13:41 +00:00
fix: Apply chart/catalogNumber duplicate detection to all components
Extend the duplicate detection logic from PatternCanvas to ProgressMonitor and PatternInfo. Now all components only show the chart field when it differs from catalogNumber, preventing redundant information display. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6e38ba855c
commit
469d9860de
2 changed files with 12 additions and 2 deletions
|
|
@ -117,7 +117,13 @@ export function PatternInfo({
|
|||
.join(" ");
|
||||
|
||||
// Secondary metadata: chart and description
|
||||
const secondaryMetadata = [color.chart, color.description]
|
||||
// Only show chart if it's different from catalogNumber
|
||||
const secondaryMetadata = [
|
||||
color.chart && color.chart !== color.catalogNumber
|
||||
? color.chart
|
||||
: null,
|
||||
color.description,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ");
|
||||
|
||||
|
|
|
|||
|
|
@ -281,8 +281,12 @@ export function ProgressMonitor() {
|
|||
.join(" ");
|
||||
|
||||
// Secondary metadata: chart and description
|
||||
// Only show chart if it's different from catalogNumber
|
||||
const secondaryMetadata = [
|
||||
block.threadChart,
|
||||
block.threadChart &&
|
||||
block.threadChart !== block.threadCatalogNumber
|
||||
? block.threadChart
|
||||
: null,
|
||||
block.threadDescription,
|
||||
]
|
||||
.filter(Boolean)
|
||||
|
|
|
|||
Loading…
Reference in a new issue