MCPcopy Create free account
hub / github.com/dailydotdev/apps / hidesCluster

Function hidesCluster

packages/shared/src/components/shell/shellNav.ts:135–143  ·  view source on GitHub ↗
(pathname: string, asPath?: string)

Source from the content-addressed store, hash-verified

133// the bar leaves so a half-edited page cannot be abandoned by a tab. A
134// conversation is the same, and its composer takes the bar's place.
135export const hidesCluster = (pathname: string, asPath?: string): boolean => {
136 const path = withoutLayoutVariantPrefix(pathname ?? '');
137
138 return (
139 noClusterPrefixes.some(
140 (prefix) => path === prefix || path.startsWith(`${prefix}/`),
141 ) || isMessageThread(asPath)
142 );
143};
144
145// The in-app route stack: this tab's history entries in order, with a
146// pointer at the current one, so a back can skip the entries that belong

Callers 5

ShellClusterFunction · 0.90
ShellFieldFunction · 0.90
shellNav.spec.tsFile · 0.90
usePostCapsulePositionFunction · 0.90
FooterSpacerFunction · 0.90

Calls 2

isMessageThreadFunction · 0.85

Tested by

no test coverage detected