-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: serve stack-specific default project favicons #3854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b9d03fc
7e1b784
11a57af
d265a73
5e7467f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,11 +25,7 @@ import * as HttpApiBuilder from "effect/unstable/httpapi/HttpApiBuilder"; | |
| import { OtlpTracer } from "effect/unstable/observability"; | ||
|
|
||
| import * as ServerConfig from "./config.ts"; | ||
| import { | ||
| ASSET_ROUTE_PREFIX, | ||
| FALLBACK_PROJECT_FAVICON_SVG, | ||
| resolveAsset, | ||
| } from "./assets/AssetAccess.ts"; | ||
| import { ASSET_ROUTE_PREFIX, resolveAsset } from "./assets/AssetAccess.ts"; | ||
| import * as BrowserTraceCollector from "./observability/BrowserTraceCollector.ts"; | ||
| import * as EnvironmentAuth from "./auth/EnvironmentAuth.ts"; | ||
| import { traceRelayRequest } from "./cloud/traceRelayRequest.ts"; | ||
|
|
@@ -197,7 +193,7 @@ export const assetRouteLayer = HttpRouter.add( | |
| return HttpServerResponse.text("Not Found", { status: 404 }); | ||
| } | ||
| if (asset.kind === "project-favicon-fallback") { | ||
| return HttpServerResponse.text(FALLBACK_PROJECT_FAVICON_SVG, { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cached fallback hides stack changesMedium Severity The fallback favicon SVG is now dynamically generated based on workspace configuration, but the Reviewed by Cursor Bugbot for commit 5e7467f. Configure here. |
||
| return HttpServerResponse.text(asset.svg, { | ||
| status: 200, | ||
| contentType: "image/svg+xml", | ||
| headers: { | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Native shows Android icon
Medium Severity
Projects with
expoorreact-nativedependencies are incorrectly assigned the Android favicon. The current dependency check order returns the Android icon before thereactcheck, which was intended for React Native projects.Reviewed by Cursor Bugbot for commit 5e7467f. Configure here.