Skip to content

Commit b674ad7

Browse files
chore(web): Remove general settings (#1065)
* remove general settings * changelog * move analytics and license pages into owner only visibility
1 parent 470360d commit b674ad7

File tree

10 files changed

+164
-490
lines changed

10 files changed

+164
-490
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Added
11-
- Added `GET /api/diff` endpoint for retrieving structured diffs between two git refs ([#1063](https://github.com/sourcebot-dev/sourcebot/pull/1063))
11+
- Added `GET /api/diff` endpoint for retrieving structured diffs between two git refs [#1063](https://github.com/sourcebot-dev/sourcebot/pull/1063)
1212

1313
### Fixed
14-
- Fixed `GET /api/mcp` hanging with zero bytes by returning `405 Method Not Allowed` per the MCP Streamable HTTP spec ([#1064](https://github.com/sourcebot-dev/sourcebot/pull/1064))
14+
- Fixed `GET /api/mcp` hanging with zero bytes by returning `405 Method Not Allowed` per the MCP Streamable HTTP spec [#1064](https://github.com/sourcebot-dev/sourcebot/pull/1064)
15+
16+
### Removed
17+
- Removed "general" settings page with options to change organization name and domain. [#1065](https://github.com/sourcebot-dev/sourcebot/pull/1065)
18+
19+
### Changed
20+
- Changed the analytics and license settings pages to only be viewable by organization owners. [#1065](https://github.com/sourcebot-dev/sourcebot/pull/1065)
1521

1622
## [4.16.3] - 2026-03-27
1723

packages/web/src/actions.ts

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import InviteUserEmail from "./emails/inviteUserEmail";
2828
import JoinRequestApprovedEmail from "./emails/joinRequestApprovedEmail";
2929
import JoinRequestSubmittedEmail from "./emails/joinRequestSubmittedEmail";
3030
import { AGENTIC_SEARCH_TUTORIAL_DISMISSED_COOKIE_NAME, MOBILE_UNSUPPORTED_SPLASH_SCREEN_DISMISSED_COOKIE_NAME, SINGLE_TENANT_ORG_DOMAIN, SOURCEBOT_GUEST_USER_ID, SOURCEBOT_SUPPORT_EMAIL } from "./lib/constants";
31-
import { orgDomainSchema, orgNameSchema } from "./lib/schemas";
3231
import { ApiKeyPayload, RepositoryQuery, TenancyMode } from "./lib/types";
3332
import { withAuthV2, withOptionalAuthV2 } from "./withAuthV2";
3433
import { getBrowsePath } from "./app/[domain]/browse/hooks/utils";
@@ -186,54 +185,6 @@ export const withTenancyModeEnforcement = async<T>(mode: TenancyMode, fn: () =>
186185
}
187186

188187
////// Actions ///////
189-
190-
export const updateOrgName = async (name: string, domain: string) => sew(() =>
191-
withAuth((userId) =>
192-
withOrgMembership(userId, domain, async ({ org }) => {
193-
const { success } = orgNameSchema.safeParse(name);
194-
if (!success) {
195-
return {
196-
statusCode: StatusCodes.BAD_REQUEST,
197-
errorCode: ErrorCode.INVALID_REQUEST_BODY,
198-
message: "Invalid organization url",
199-
} satisfies ServiceError;
200-
}
201-
202-
await prisma.org.update({
203-
where: { id: org.id },
204-
data: { name },
205-
});
206-
207-
return {
208-
success: true,
209-
}
210-
}, /* minRequiredRole = */ OrgRole.OWNER)
211-
));
212-
213-
export const updateOrgDomain = async (newDomain: string, existingDomain: string) => sew(() =>
214-
withTenancyModeEnforcement('multi', () =>
215-
withAuth((userId) =>
216-
withOrgMembership(userId, existingDomain, async ({ org }) => {
217-
const { success } = await orgDomainSchema.safeParseAsync(newDomain);
218-
if (!success) {
219-
return {
220-
statusCode: StatusCodes.BAD_REQUEST,
221-
errorCode: ErrorCode.INVALID_REQUEST_BODY,
222-
message: "Invalid organization url",
223-
} satisfies ServiceError;
224-
}
225-
226-
await prisma.org.update({
227-
where: { id: org.id },
228-
data: { domain: newDomain },
229-
});
230-
231-
return {
232-
success: true,
233-
}
234-
}, /* minRequiredRole = */ OrgRole.OWNER)
235-
)));
236-
237188
export const completeOnboarding = async (domain: string): Promise<{ success: boolean } | ServiceError> => sew(() =>
238189
withAuth((userId) =>
239190
withOrgMembership(userId, domain, async ({ org }) => {
@@ -1164,18 +1115,6 @@ export const getInviteInfo = async (inviteId: string) => sew(() =>
11641115
}
11651116
}));
11661117

1167-
export const checkIfOrgDomainExists = async (domain: string): Promise<boolean | ServiceError> => sew(() =>
1168-
withAuth(async () => {
1169-
const org = await prisma.org.findFirst({
1170-
where: {
1171-
domain,
1172-
}
1173-
});
1174-
1175-
return !!org;
1176-
}));
1177-
1178-
11791118
export const getOrgMembers = async (domain: string) => sew(() =>
11801119
withAuth(async (userId) =>
11811120
withOrgMembership(userId, domain, async ({ org }) => {

packages/web/src/app/[domain]/settings/(general)/components/changeOrgDomainCard.tsx

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

packages/web/src/app/[domain]/settings/(general)/components/changeOrgNameCard.tsx

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

0 commit comments

Comments
 (0)