fix(web): default home to Ask when Ask GitHub experiment is enabled (SOU-2281)
Draft
MS
2mo ago+69+69+01234567890123456789-15-15-01234567890123456789
Fixes SOU-2281
Summary
- Default
/to the Ask landing page whenEXPERIMENT_ASK_GH_ENABLEDis true and no home-view cookie is set. - Preserve explicit
askandsearchcookie preferences. - Keep the server home page, sidebar ordering, and Settings default-home-view control aligned.
The public app is gated by the existing EXPERIMENT_ASK_GH_ENABLED server environment variable. The client receives the server-computed default through the existing server-to-client prop pattern, so no new public environment variable is introduced.
Linear issue: https://linear.app/sourcebot/issue/SOU-2281/make-ask-the-default-interface-for-public-saas


Summary by cubic
Fixes SOU-2303 by defaulting / to the Ask landing page when the EXPERIMENT_ASK_GH_ENABLED experiment is on and no home-view cookie is set. Previously the home page, sidebar, and settings all defaulted to Code Search.
- Adds shared
getDefaultHomeViewandresolveHomeViewhelpers so the home page, sidebar, and settings compute the same default. - Explicit
askandsearchcookie choices still override the default. - No new public environment variable is introduced; the default is passed to the client through existing server-to-client props.