-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] dev from anomalyco:dev #266
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
Changes from all 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 |
|---|---|---|
|
|
@@ -10,15 +10,16 @@ export type HeaderLink = { href: string; label: string } | |
| export const githubLink = { | ||
| href: "https://github.com/anomalyco/opencode", | ||
| apiHref: "https://api.github.com/repos/anomalyco/opencode", | ||
| fallbackStars: "150K", | ||
| fallbackStars: "195K", | ||
| } | ||
| export const themePreferences = ["dark", "light", "system"] as const | ||
| export const themeStorageKey = "opencode:stats-theme" | ||
| export type ThemePreference = (typeof themePreferences)[number] | ||
|
|
||
| const compactNumberFormatter = new Intl.NumberFormat("en", { | ||
| notation: "compact", | ||
| maximumFractionDigits: 1, | ||
| maximumFractionDigits: 0, | ||
| roundingIncrement: 5, | ||
|
Comment on lines
19
to
+22
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. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
bun -e '
const formatter = new Intl.NumberFormat("en", {
notation: "compact",
maximumFractionDigits: 0,
roundingIncrement: 5,
})
for (const value of [194_999, 197_500, 1_234_567, 2_499_999, 2_750_000]) {
console.log(value, formatter.format(value))
}
'Repository: bolt-builder/bolt-cli Length of output: 200 🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
printf '%s\n' '--- target file ---'
sed -n '1,80p' packages/stats/app/src/routes/stats-shell.tsx
printf '%s\n' '--- available runtimes ---'
command -v node || true
node --version 2>/dev/null || true
command -v deno || true
deno --version 2>/dev/null || true
printf '%s\n' '--- Intl behavior ---'
node <<'JS'
const values = [194_999, 197_500, 1_234_567, 2_499_999, 2_750_000]
const options = {
notation: "compact",
maximumFractionDigits: 0,
roundingIncrement: 5,
}
try {
const formatter = new Intl.NumberFormat("en", options)
for (const value of values) console.log(value, formatter.format(value))
console.log("resolved", formatter.resolvedOptions())
} catch (error) {
console.log(error.name, error.message)
}
JSRepository: bolt-builder/bolt-cli Length of output: 3867 Remove This formatter returns incorrect values, such as 🤖 Prompt for AI Agents |
||
| }) | ||
|
|
||
| export const getGitHubStars = query(async () => { | ||
|
|
||
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.
🚀 Performance & Scalability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: bolt-builder/bolt-cli
Length of output: 29733
🏁 Script executed:
Repository: bolt-builder/bolt-cli
Length of output: 50378
🏁 Script executed:
Repository: bolt-builder/bolt-cli
Length of output: 10742
🏁 Script executed:
Repository: bolt-builder/bolt-cli
Length of output: 27249
Declare the
referralIDindex in the schema.inviteeRewardsandcompleteFromLiteSubscriptionqueryreferralIDwithout an equality predicate onworkspaceID. The composite primary key cannot efficiently support these lookups. Although20260803084635_married_misty_knightcreatesreferral_id,referral.sql.tsdoes not declare it. Add an equivalentreferralID-leading index to keep the schema and database aligned.🤖 Prompt for AI Agents