Skip to content

Foss sandbox#41

Merged
UsamaSadiq merged 3 commits into
foss-mainfrom
foss-sandbox
Jun 2, 2026
Merged

Foss sandbox#41
UsamaSadiq merged 3 commits into
foss-mainfrom
foss-sandbox

Conversation

@UsamaSadiq

Copy link
Copy Markdown
Collaborator

jawad-khan and others added 3 commits May 20, 2026 20:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an SSO-build feature flag helper for the web app and uses it to hide/disable account security and deactivation UI when the build is configured for SSO authentication.

Changes:

  • Added a shared isSsoAuth() helper (based on VITE_AUTH_TYPE) and refactored onboarding to use it.
  • Hid the Profile “Security” tab in the sidebar and prevented opening it via modal/route when in SSO builds.
  • Hid the “Deactivate account” UI in profile general settings for SSO builds, and added a TS global type shim for process.env usage in Vite builds.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apps/web/vite-process-env.d.ts Adds TS global typing for process.env which is injected/replaced via Vite define.
apps/web/helpers/auth-config.helper.ts Introduces shared isSsoAuth() helper for consistent SSO-build gating.
apps/web/core/components/settings/profile/sidebar/item-categories.tsx Filters out the “security” tab from the profile settings sidebar when SSO is enabled.
apps/web/core/components/settings/profile/modal.tsx Prevents the profile settings modal from opening directly on the “security” tab in SSO builds.
apps/web/core/components/settings/profile/content/pages/general/form.tsx Hides deactivate-account modal entry point and section in SSO builds.
apps/web/core/components/onboarding/steps/profile/root.tsx Refactors onboarding “optional password” gating to use the shared SSO helper.
apps/web/core/components/onboarding/profile-setup.tsx Refactors onboarding “optional password” gating to use the shared SSO helper.
apps/web/app/(all)/settings/profile/[profileTabId]/page.tsx Redirects /settings/profile/security to /settings/profile/general in SSO builds.

@UsamaSadiq UsamaSadiq merged commit 2679704 into foss-main Jun 2, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants