feat(dashboard): red-dot weak-point map on /defects (T7)
Overlay each filed defect as a red dot inside its section box with a diagonal date label; cap visible dots and collapse the remainder to a "+N more" using the authoritative per-section counts (T6). Add an `overlay` scoped slot to BoardView (C2) so the dashboard can layer dots without forking the board definition (F1); the reporting view leaves it empty. DotMap groups the bounded feed by section and the /defects page wires both endpoints.
This commit is contained in:
@@ -40,6 +40,7 @@ const hoveredId = ref<string | null>(null);
|
||||
>
|
||||
<span class="section__label">{{ section.label }}</span>
|
||||
<span class="section__size">{{ section.size }}</span>
|
||||
<slot name="overlay" :section-id="section.id" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -104,6 +105,8 @@ const hoveredId = ref<string | null>(null);
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
box-sizing: border-box;
|
||||
/* Positioning context for the dashboard's absolutely-placed dots (C5). */
|
||||
position: relative;
|
||||
/* ISO 216: every A-series sheet is landscape √2 : 1 (width : height). */
|
||||
aspect-ratio: 1.41421356 / 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user