From f4aeb0675f8929ba6e9a129d9c67e84b5cd6edaf Mon Sep 17 00:00:00 2001 From: Federico Jaramillo Martinez Date: Sat, 23 May 2026 22:26:42 +0200 Subject: [PATCH] feat: make mobile breadcrumbs clickable --- .changeset/clickable-mobile-breadcrumbs.md | 5 ++++ src/client/src/components/PiWebApp.ts | 30 +++++++++++++++------- src/client/src/components/shared.ts | 5 +++- 3 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 .changeset/clickable-mobile-breadcrumbs.md diff --git a/.changeset/clickable-mobile-breadcrumbs.md b/.changeset/clickable-mobile-breadcrumbs.md new file mode 100644 index 0000000..dee1cac --- /dev/null +++ b/.changeset/clickable-mobile-breadcrumbs.md @@ -0,0 +1,5 @@ +--- +"@jmfederico/pi-web": patch +--- + +Make the mobile location breadcrumbs clickable so they open project, workspace, or session selection directly. diff --git a/src/client/src/components/PiWebApp.ts b/src/client/src/components/PiWebApp.ts index 1161af4..f4fcc75 100644 --- a/src/client/src/components/PiWebApp.ts +++ b/src/client/src/components/PiWebApp.ts @@ -559,6 +559,12 @@ export class PiWebApp extends LitElement { if (this.isMobileNavigationLayout) this.expandedMobileNavigationSection = section; } + private openNavigationSection(section: NavigationSection): void { + if (!this.isMobileNavigationLayout) return; + this.expandNavigationSection(section); + this.selectMainView("navigation"); + } + private visibleWorkspacePanels(): QualifiedWorkspacePanelContribution[] { const workspace = this.state.selectedWorkspace; if (workspace === undefined) return []; @@ -845,17 +851,23 @@ export class PiWebApp extends LitElement {