From 74be2509121f7376efdd5faee94493197b3059fe Mon Sep 17 00:00:00 2001 From: indigo Date: Mon, 20 Jul 2026 12:11:07 +0800 Subject: [PATCH] Generalize aggregated notes to a shared component, reuse in Asset panel Moves shot/ShotNotes.vue to shared/EntityNotes.vue (it had no shot-specific logic) and wires it into AssetDetailPanel.vue too, replacing the old read-only AssetNotes.vue. Asset panel gains the same multi-select task filter, sort, client-only/submission-notes toggles, and bottom composer that Shot's panel already had, plus the same min-h-0 layout fix needed for the pinned composer. NoteItem's absolute-format timestamp now shows date-only (y/m/d) with an info icon whose tooltip reveals the full y/m/d H:M:S - applied to both note and submission-note entries. Co-Authored-By: Claude Sonnet 5 --- .../src/components/asset/AssetDetailPanel.vue | 55 ++++++++-------- frontend/src/components/asset/AssetNotes.vue | 66 ------------------- .../ShotNotes.vue => shared/EntityNotes.vue} | 24 +++++-- .../src/components/shot/ShotDetailPanel.vue | 4 +- frontend/src/components/task/NoteItem.vue | 19 +++++- 5 files changed, 63 insertions(+), 105 deletions(-) delete mode 100644 frontend/src/components/asset/AssetNotes.vue rename frontend/src/components/{shot/ShotNotes.vue => shared/EntityNotes.vue} (93%) diff --git a/frontend/src/components/asset/AssetDetailPanel.vue b/frontend/src/components/asset/AssetDetailPanel.vue index 30fac7c..46b006b 100644 --- a/frontend/src/components/asset/AssetDetailPanel.vue +++ b/frontend/src/components/asset/AssetDetailPanel.vue @@ -10,8 +10,8 @@ /> -
- +
+