Repository navigation
chore(cleanup): finish the whitelabel, Redis and self-hosted provider leftovers - #10331
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryThis cleanup moves the SSO flag to server-provided props and shares the code that builds discovered model entries.
Reviews (1) · Last reviewed commit: "chore(providers): share one unpriced-mod..." · Reviewed by Greptile |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A final cleanup pass after #10246, #10271, #10272 and #10286. Three read-only audits swept staging for leftovers of whitelabel removal, Redis-required, and the enterprise-flag and self-hosted provider work; the verified findings are below. No product behavior changes.
Auth: SSO flag comes from the server
'use client'and importedisSsoEnabledfromenv-flags, which breaks the browser deployment-flag rule. The value was correct (the browser resolves it from the deployment-shape projection), butcheck:client-boundarydoesn't scanapp/(auth), so nothing caught it.ssoEnabledas a prop, the same way they already passemailPasswordEnabled/emailSignupEnabled.SSOLoginButtondrops its redundant self-check; all three render sites already gate onssoEnabled.SocialLoginButtons.ssoEnabledis now required.Providers
map. They now sharetoUnpricedModels.require()of a moduleutils.tsalready imports statically. They now use the static import, like Ollama.Redis-required leftovers (tests)
getRedisClientasnulland only bypassed the usage cache because the resulting TypeError was caught. The mock now throws an explicit error on the path the cache already handles.redis.test.ts.Whitelabel leftovers
manifest.tsgoes back to static rendering.force-dynamicwas added only so brand env values weren't baked in at build time, and those inputs are gone.--auth-primary-btn-hover-textCSS variable.post.test.tsrequests now use/api/mothership/chat, the only mounted path.Docs and Helm
values.yamland its schema listVLLM_BASE_URL,VLLM_API_KEY,LITELLM_BASE_URLandLITELLM_API_KEYnext toOLLAMA_URL. Chart 1.15.3.Type of Change
Testing
apps/simtype-check passes.check:client-boundary,check:comment-hygiene,check:test-patterns,check:test-types,check:unused-exports,check:utils.redis.test.ts,post.test.ts.ci/default-values.yamlplusVLLM_BASE_URL.content:verify-compatibility./simplify, four reviewers: the reuse finding (shared unpriced builder) and the simplification nits (required prop, unaliased import) are applied; efficiency and altitude found nothing.Checklist
test-auditauthoring gate)