Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix: stop access gate from hiding local-only skip button' (#9) from feat/login-ux-polish into main

scott d82bd326 6abb3298

+2 -14
+1 -7
src/lib/access-gate.ts
··· 24 24 } 25 25 26 26 export async function applyAccessGate(): Promise<void> { 27 - const info = await getInstanceInfo(); 28 - const ac = info.accessControl; 29 - 30 - if (ac && ac.mode === 'allowlist') { 31 - const skip = document.getElementById('username-skip'); 32 - if (skip) skip.style.display = 'none'; 33 - } 27 + await getInstanceInfo(); 34 28 } 35 29 36 30 export function showWaitlistModal(handle?: string): void {
+1 -7
tests/access-gate.test.ts
··· 81 81 `; 82 82 }); 83 83 84 - it('hides skip button when allowlist mode is active', async () => { 84 + it('keeps skip button visible regardless of access mode', async () => { 85 85 mockGetInstanceInfo.mockResolvedValue(makeInfo({ mode: 'allowlist', allowlist: [] })); 86 - await applyAccessGate(); 87 - expect(document.getElementById('username-skip')!.style.display).toBe('none'); 88 - }); 89 - 90 - it('keeps skip button visible when access is open', async () => { 91 - mockGetInstanceInfo.mockResolvedValue(makeInfo({ mode: 'open' })); 92 86 await applyAccessGate(); 93 87 expect(document.getElementById('username-skip')!.style.display).not.toBe('none'); 94 88 });