Skip to content

Commit a82f18f

Browse files
committed
feat: add explore link in header
1 parent 83a37d4 commit a82f18f

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

daras_ai_v2/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
CONTACT_URL = config("CONTACT_URL", "https://www.help.gooey.ai/contact")
300300

301301
HEADER_LINKS = [
302+
(EXPLORE_URL, "Explore"),
302303
(DOCS_URL, "Docs"),
303304
("/api/", "API"),
304305
(BLOG_URL, "Blog"),

routers/root.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -752,13 +752,6 @@ def page_wrapper(
752752
with gui.div(
753753
className="d-flex gap-2 justify-content-end flex-wrap align-items-center"
754754
):
755-
if not show_search_bar:
756-
render_header_link(
757-
url=get_route_path(explore_page),
758-
label="Explore",
759-
icon=icons.search,
760-
)
761-
762755
for url, label in settings.HEADER_LINKS:
763756
render_header_link(
764757
url=url, label=label, icon=settings.HEADER_ICONS.get(url)
@@ -862,11 +855,6 @@ def anonymous_login_container(request: Request, context: dict):
862855

863856
gui.html('<hr class="my-1"/>')
864857

865-
workspace_selector_link(
866-
url=get_route_path(explore_page),
867-
label="Explore",
868-
icon=icons.search,
869-
)
870858
for url, label in settings.HEADER_LINKS:
871859
workspace_selector_link(
872860
url=url, label=label, icon=settings.HEADER_ICONS.get(url)

workspaces/widgets.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def global_workspace_selector(user: AppUser, session: dict):
2424
profile_route,
2525
explore_in_current_workspace,
2626
)
27-
from routers.root import explore_page, logout
27+
from routers.root import logout
2828

2929
try:
3030
del user.cached_workspaces # invalidate cache on every re-render
@@ -142,9 +142,6 @@ def global_workspace_selector(user: AppUser, session: dict):
142142
)
143143

144144
with gui.div(className="d-xl-none d-inline-block"):
145-
workspace_selector_link(
146-
url=get_route_path(explore_page), icon=icons.search, label="Explore"
147-
)
148145
for url, label in settings.HEADER_LINKS:
149146
workspace_selector_link(
150147
url=url,

0 commit comments

Comments
 (0)