feat: US-012 - Add hover-highlighting between experience/skills and constellation graph

This commit is contained in:
2026-02-14 18:28:44 +00:00
parent b90706a3f6
commit 9e9962f114
6 changed files with 108 additions and 7 deletions
+8 -2
View File
@@ -234,6 +234,7 @@ function LastConsultationSubsection() {
export function DashboardLayout() {
const [commandPaletteOpen, setCommandPaletteOpen] = useState(false)
const [highlightedNodeId, setHighlightedNodeId] = useState<string | null>(null)
const activeSection = useActiveSection()
const { openPanel } = useDetailPanel()
@@ -271,6 +272,10 @@ export function DashboardLayout() {
[openPanel],
)
const handleNodeHighlight = useCallback((id: string | null) => {
setHighlightedNodeId(id)
}, [])
// Global Ctrl+K listener to open command palette
useEffect(() => {
function handleKeyDown(e: KeyboardEvent) {
@@ -379,6 +384,7 @@ export function DashboardLayout() {
<CareerConstellation
onRoleClick={handleRoleClick}
onSkillClick={handleSkillClick}
highlightedNodeId={highlightedNodeId}
/>
{/* Last Consultation subsection */}
@@ -386,8 +392,8 @@ export function DashboardLayout() {
{/* Two-column experience/skills grid */}
<div className="pathway-columns" style={{ marginTop: '24px' }}>
<WorkExperienceSubsection />
<RepeatMedicationsSubsection />
<WorkExperienceSubsection onNodeHighlight={handleNodeHighlight} />
<RepeatMedicationsSubsection onNodeHighlight={handleNodeHighlight} />
</div>
{/* Education subsection */}