feat(demo): extend mask() to all breadcrumbs, page titles, and identifiers

Covers workspace IDs, session IDs, peer IDs in breadcrumbs and titles,
server base URL in sidebar, webhook URLs/IDs, and session metadata source
tags across all 11 components.
This commit is contained in:
Offending Commit
2026-04-27 14:27:37 -05:00
parent 8f9d806eef
commit 123828ccb6
11 changed files with 45 additions and 35 deletions

View File

@@ -25,7 +25,7 @@ export function Sidebar() {
const matchRoute = useMatchRoute();
const config = loadConfig();
const { theme, toggle } = useTheme();
const { demo, toggle: toggleDemo } = useDemo();
const { demo, toggle: toggleDemo, mask } = useDemo();
return (
<motion.aside
@@ -62,9 +62,9 @@ export function Sidebar() {
<p
className="text-xs mt-2 truncate font-mono hidden sm:block"
style={{ color: "var(--text-4)" }}
title={config.baseUrl}
title={mask(config.baseUrl)}
>
{config.baseUrl.replace(/^https?:\/\//, "")}
{mask(config.baseUrl.replace(/^https?:\/\//, ""))}
</p>
)}
</div>