From fee82fa686f6df57ddc1f912221b515b6953d12d Mon Sep 17 00:00:00 2001 From: NguyenND Date: Fri, 29 May 2026 12:11:47 -0400 Subject: [PATCH] 05/29 Fix shared items aren't displayed on user page --- app/static/js/vault.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/static/js/vault.js b/app/static/js/vault.js index 6581a66..561e0cf 100644 --- a/app/static/js/vault.js +++ b/app/static/js/vault.js @@ -1931,6 +1931,11 @@ const Vault = (() => { '
  • No items have been shared with you.
  • '; return; } + // Auto-switch to "Shared with me" tab when there are pending shares so the + // recipient doesn't miss them (the default active tab is "Shared by me"). + if (shares.some((s) => !s.accepted)) { + document.querySelector('.tab-btn[data-tab="shared-in"]')?.click(); + } ul.innerHTML = shares .map( (s) => {