-
Notifications
You must be signed in to change notification settings - Fork 4
fix: metadata #289
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
fix: metadata #289
Changes from 2 commits
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
data/* |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,7 +2,7 @@ | |||||
<html lang="en"> | ||||||
<head> | ||||||
<meta charset="utf-8" /> | ||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> | ||||||
<link rel="icon" href="%sveltekit.assets%/Logo.svg" /> | ||||||
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. 💡 Verification agent 🧩 Analysis chainNormalize asset case and add type/sizes for SVG The path uses an uppercase L (Logo.svg) whereas other apps use lowercase (logo.svg). On case-sensitive filesystems this can 404 if the filename differs. Also add type/sizes. - <link rel="icon" href="%sveltekit.assets%/Logo.svg" />
+ <link rel="icon" href="%sveltekit.assets%/logo.svg" type="image/svg+xml" sizes="any" /> Run to verify asset existence and references: 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "References in pictique app.html:"
rg -n 'Logo\.svg|logo\.svg' platforms/pictique/src/app.html || true
echo ""
echo "Matching files in repo (case-insensitive):"
fd -a -i 'logo.svg' || true
fd -a -i 'Logo.svg' || true Length of output: 821 Add SVG favicon type and sizes (retain existing filename casing) Verified that the pictique app’s static assets use – platforms/pictique/src/app.html (line 5) - <link rel="icon" href="%sveltekit.assets%/Logo.svg" />
+ <link rel="icon" href="%sveltekit.assets%/Logo.svg" type="image/svg+xml" sizes="any" /> If you’d rather normalize to lowercase across all apps, you’ll need to:
📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||||
%sveltekit.head% | ||||||
</head> | ||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -24,7 +24,7 @@ const initializeDatabase = async () => { | |||||||||
await AppDataSource.initialize(); | ||||||||||
server.log.info("Database connection initialized"); | ||||||||||
} catch (error) { | ||||||||||
server.log.error("Error during database initialization:", error); | ||||||||||
server.log.error({message: "Error during database initialization", detail: error}); | ||||||||||
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. 🛠️ Refactor suggestion Use Fastify/Pino error semantics to preserve stack traces Passing the Error as the first arg ensures proper err field and stack in logs. Current object logging may drop structured error fields. - server.log.error({message: "Error during database initialization", detail: error});
+ server.log.error(error as any, "Error during database initialization");
+ // Or:
+ // server.log.error({ err: error }, "Error during database initialization"); 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||
process.exit(1); | ||||||||||
} | ||||||||||
}; | ||||||||||
|
@@ -100,7 +100,7 @@ server.post("/platforms/certification", async (request, reply) => { | |||||||||
|
||||||||||
server.get("/platforms", async (request, reply) => { | ||||||||||
const platforms = [ process.env.PUBLIC_PICTIQUE_BASE_URL, process.env.PUBLIC_BLABSY_BASE_URL, process.env.PUBLIC_GROUP_CHARTER_BASE_URL, process.env.PUBLIC_CERBERUS_BASE_URL ] | ||||||||||
|
||||||||||
return platforms | ||||||||||
}); | ||||||||||
|
||||||||||
|
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.
🛠️ Refactor suggestion
Good move to SVG; add maskable purpose and consider PNG fallbacks for iOS
SVG with sizes "any" is fine for many platforms. Add purpose "any maskable" for better Android adaptive icons, and consider providing PNG fallbacks (192x192, 512x512) plus an apple-touch-icon for iOS (iOS ignores Web Manifest icons).
Optional: add additional PNG entries and an <link rel="apple-touch-icon" ...> in the HTML head.
📝 Committable suggestion
🤖 Prompt for AI Agents