Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
5

Configure Feed

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

Hide tab bar on logged out search page

Grace Kind (Jul 16, 2026, 2:34 PM -0500) 48429388 51c121d3

+28 -8
+1 -1
package.json
··· 1 1 { 2 2 "name": "impro", 3 - "version": "0.17.182", 3 + "version": "0.17.183", 4 4 "type": "module", 5 5 "scripts": { 6 6 "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve",
+4 -7
src/js/views/search.view.js
··· 370 370 </button> 371 371 ` 372 372 : ""} 373 - ${showResults 373 + ${showResults && isAuthenticated 374 374 ? html` 375 375 <tab-bar 376 376 .tabs=${[ 377 377 { value: "profiles", label: "Profiles" }, 378 - ...(isAuthenticated 379 - ? [ 380 - { value: "posts", label: "Posts" }, 381 - { value: "feeds", label: "Feeds" }, 382 - ] 383 - : []), 378 + 379 + { value: "posts", label: "Posts" }, 380 + { value: "feeds", label: "Feeds" }, 384 381 ]} 385 382 active-tab=${activeTab} 386 383 full-width
+23
tests/e2e/specs/views/search.view.test.js
··· 756 756 0, 757 757 ); 758 758 }); 759 + 760 + test("should hide the tab bar entirely when logged out", async ({ 761 + page, 762 + }) => { 763 + const mockServer = new MockServer(); 764 + mockServer.addSearchProfiles([ 765 + createProfile({ 766 + did: "did:plc:profile1", 767 + handle: "alice.bsky.social", 768 + displayName: "Alice", 769 + }), 770 + ]); 771 + await mockServer.setup(page); 772 + 773 + await page.goto("/search?q=ali"); 774 + 775 + const view = page.locator("#search-view"); 776 + await expect(view.locator(".profile-list-item")).toHaveCount(1, { 777 + timeout: 10000, 778 + }); 779 + 780 + await expect(view.locator("tab-bar")).toBeHidden(); 781 + }); 759 782 }); 760 783 });