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

Function hidesCluster

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

Source from the content-addressed store, hash-verified

130// the bar leaves so a half-edited page cannot be abandoned by a tab. A
131// conversation is the same, and its composer takes the bar's place.
132export const hidesCluster = (pathname: string, asPath?: string): boolean => {
133 const path = withoutLayoutVariantPrefix(pathname ?? '');
134
135 return (
136 noClusterPrefixes.some(
137 (prefix) => path === prefix || path.startsWith(`${prefix}/`),
138 ) || isMessageThread(asPath)
139 );
140};
141
142// The in-app route stack: this tab's history entries in order, with a
143// 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