Skip to content

Commit a229ac2

Browse files
fix(web): remove Ask Sourcebot banner on new visit (#1675)
* fix(web): remove Ask Sourcebot first-visit tutorial Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> * docs: note removal of Ask Sourcebot tutorial Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> * docs: move Ask Sourcebot changelog entry to unreleased Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
1 parent a28b181 commit a229ac2

8 files changed

Lines changed: 4 additions & 367 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Removed
11+
- Removed the Ask Sourcebot first-visit tutorial banner. [#1675](https://github.com/sourcebot-dev/sourcebot/pull/1675)
12+
1013
## [5.1.14] - 2026-09-17
1114

1215
### Added
-413 KB
Binary file not shown.
-1.51 MB
Binary file not shown.
-381 KB
Binary file not shown.

‎packages/web/src/actions.ts‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { createLogger, env, generateApiKey, getTokenFromConfig } from "@sourcebo
1212
import { StatusCodes } from "http-status-codes";
1313
import { cookies } from "next/headers";
1414
import { getBrowsePath } from "./app/(app)/browse/hooks/utils";
15-
import { AGENTIC_SEARCH_TUTORIAL_DISMISSED_COOKIE_NAME, MOBILE_UNSUPPORTED_SPLASH_SCREEN_DISMISSED_COOKIE_NAME } from "./lib/constants";
15+
import { MOBILE_UNSUPPORTED_SPLASH_SCREEN_DISMISSED_COOKIE_NAME } from "./lib/constants";
1616
import { RepositoryQuery } from "./lib/types";
1717
import { withAuth, withOptionalAuth } from "./middleware/withAuth";
1818

@@ -367,16 +367,6 @@ export const getRepoImage = async (repoId: number): Promise<ArrayBuffer | Servic
367367
})
368368
});
369369

370-
// eslint-disable-next-line authz/require-auth-wrapper -- UI-only preference cookie, no DB access
371-
export const setAgenticSearchTutorialDismissedCookie = async (dismissed: boolean) => sew(async () => {
372-
const cookieStore = await cookies();
373-
cookieStore.set(AGENTIC_SEARCH_TUTORIAL_DISMISSED_COOKIE_NAME, dismissed ? "true" : "false", {
374-
httpOnly: false, // Allow client-side access
375-
maxAge: 365 * 24 * 60 * 60, // 1 year in seconds
376-
});
377-
return true;
378-
});
379-
380370
// eslint-disable-next-line authz/require-auth-wrapper -- UI-only preference cookie, no DB access
381371
export const dismissMobileUnsupportedSplashScreen = async () => sew(async () => {
382372
const cookieStore = await cookies();

‎packages/web/src/app/(app)/chat/components/tutorialDialog.tsx‎

Lines changed: 0 additions & 349 deletions
This file was deleted.

0 commit comments

Comments
 (0)