GeezerVison is showing github.com — chore: remove beta what's new and visual svgs (#63325) · drpr/opencode@6eac537
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/pull_request_template.md -7Lines changed: 0 additions & 7 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,13 +17,6 @@ Please provide a description of the issue, the changes you made to fix it, and w | 17 | 17 |
| 18 | 18 | ### How did you verify your code works? | 19 | 19 |
| 20 | | -### Visual | 21 | | - | 22 | | -_Optional, for user-facing changes: a small looping animated SVG (240×72) of the change, shown in the desktop app's "What's new in beta". Replace the block below or delete this section._ | 23 | | - | 24 | | -```svg | 25 | | -``` | 26 | | - | 27 | 20 | ### Screenshots / recordings | 28 | 21 |
| 29 | 22 | _If this is a UI change, please include a screenshot or recording._ | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/release.yml -9Lines changed: 0 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -318,7 +318,6 @@ jobs: | 318 | 318 | if: needs.plan.outputs.desktop == 'true' | 319 | 319 | permissions: | 320 | 320 | contents: read | 321 | | - pull-requests: read # beta builds read who made each change and what it does for "What's new in beta" | 322 | 321 | strategy: | 323 | 322 | fail-fast: false | 324 | 323 | matrix: | @@ -346,13 +345,6 @@ jobs: | 346 | 345 | - name: Set up rpm | 347 | 346 | if: runner.os == 'Linux' | 348 | 347 | run: sudo apt-get update && sudo apt-get install -y --no-install-recommends rpm | 349 | | - # The beta build embeds the subjects of its newest commits for "What's new in beta" | 350 | | - # (packages/desktop/script/beta-notes.ts). Commits without file contents are enough. | 351 | | - - name: Fetch beta history | 352 | | - if: needs.plan.outputs.channel == 'beta' | 353 | | - run: git fetch --no-tags --filter=blob:none --depth=300 origin "$SHA" | 354 | | - env: | 355 | | - SHA: ${{ needs.tag.outputs.sha }} | 356 | 348 | # Dev and beta trade larger packages for faster packaging. fpm sets XZ_OPT for the deb and rpm level, but xz | 357 | 349 | # still reads XZ_DEFAULTS, so it uses every CPU. | 358 | 350 | - name: Preview packaging settings | @@ -367,7 +359,6 @@ jobs: | 367 | 359 | VITE_SENTRY_DSN: ${{ vars.WEB_SENTRY_DSN }} | 368 | 360 | VITE_SENTRY_ENVIRONMENT: ${{ needs.plan.outputs.channel == 'latest' && 'production' || needs.plan.outputs.channel }} | 369 | 361 | VITE_SENTRY_RELEASE: desktop@${{ needs.plan.outputs.version }} | 370 | | - GITHUB_TOKEN: ${{ github.token }} # read-only; beta notes read pull request authors and descriptions | 371 | 362 | - name: Pack | 372 | 363 | working-directory: packages/desktop | 373 | 364 | timeout-minutes: 60 | |
Collapse file Copy file name to clipboardExpand all lines: AGENTS.md -2Lines changed: 0 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -44,8 +44,6 @@ Valid types are `feat`, `fix`, `docs`, `chore`, `refactor`, and `test`. Scopes a | 44 | 44 |
| 45 | 45 | Examples: `fix(tui): simplify thinking toggle styling`, `docs: update contributing guide`, `chore(sdk): regenerate types`. | 46 | 46 |
| 47 | | -For user-facing `feat`, `fix` and `perf` PRs, add a small looping animated SVG of the change under `### Visual` in the PR body (a `svg` code block, 240×72, for example a dock growing out of the composer or spinners turning in step). Draw with `currentColor` and opacity so it works in light and dark, make the unanimated state a good still (it is shown under reduced motion), animate with CSS or SMIL only, and keep it under 8 KB with no scripts or external references. The desktop beta's "What's new" dialog shows it. | 48 | | - | 49 | 47 | ## Style Guide | 50 | 48 |
| 51 | 49 | ### General Principles | |
Collapse file Copy file name to clipboardExpand all lines: bun.lock -1Lines changed: 0 additions & 1 deletion Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components-lab/lab.tsx +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -724,11 +724,7 @@ function Tile(props: { entry: LabEntry }) { | 724 | 724 | } | 725 | 725 |
| 726 | 726 | function isDialogEntry(entry: LabEntry) { | 727 | | - return ( | 728 | | - entry.title.startsWith("App/Dialogs/") || | 729 | | - entry.file.endsWith("/beta-dialog.stories.tsx") || | 730 | | - entry.file.endsWith("/overlays/dialog/dialog.stories.tsx") | 731 | | - ) | | 727 | + return entry.title.startsWith("App/Dialogs/") || entry.file.endsWith("/overlays/dialog/dialog.stories.tsx") | 732 | 728 | } | 733 | 729 |
| 734 | 730 | function tileSize(entry: LabEntry) { | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/README.md -5Lines changed: 0 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,11 +41,6 @@ the `beta` update channel. Beta publishes only the desktop app; the CLI and SDK | 41 | 41 | from `dev`. Install it from `https://opencode.ai/update/api/beta/desktop/opencode/<asset>`, for example | 42 | 42 | `opencode-desktop-mac-arm64.dmg` or `opencode-desktop-win-x64.exe`. Installed builds update in place on every platform. | 43 | 43 |
| 44 | | -Each beta build compiles in its commit and the `feat`, `fix` and `perf` commits among its newest 200 | 45 | | -(`script/beta-notes.ts`, embedded by `electron.vite.config.ts`; run `bun script/beta-notes.ts` to preview them). After an | 46 | | -update, the beta app lists the ones after the commit of the build the user saw last in a "What's new in beta" dialog, | 47 | | -unless release notes are turned off in Settings. | 48 | | - | 49 | 44 | ## Startup benchmark | 50 | 45 |
| 51 | 46 | `perf/startup.bench.ts` times a launch with [strobe](https://github.com/anomalyco/strobe), from process spawn to what a | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/electron.vite.config.ts +1-13Lines changed: 1 addition & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { defineConfig } from "electron-vite" | 2 | 2 | import type { Plugin } from "vite" | 3 | | -import { BetaNotes } from "./script/beta-notes" | 4 | 3 | import { pickerPlugin } from "./script/picker" | 5 | 4 | import { nodePtyPackage } from "./script/utils" | 6 | 5 |
| @@ -34,19 +33,10 @@ const initialChunk: Plugin = { | 34 | 33 | }, | 35 | 34 | } | 36 | 35 |
| 37 | | -export default defineConfig(async ({ command }) => { | | 36 | +export default defineConfig(({ command }) => { | 38 | 37 | const channel = resolveChannel() | 39 | 38 | const nodePtyPkg = nodePtyPackage() | 40 | 39 |
| 41 | | - // Beta builds carry their commit and recent history for the updater's "What's new in beta"; the dev server carries | 42 | | - // them without asking GitHub, so the page can be tried; other channels none. | 43 | | - const betaNotes = | 44 | | - channel === "beta" | 45 | | - ? await BetaNotes.enrich(BetaNotes.embed(), { token: process.env.GITHUB_TOKEN }) | 46 | | - : command === "serve" | 47 | | - ? BetaNotes.embed() | 48 | | - : undefined | 49 | | - | 50 | 40 | return { | 51 | 41 | main: { | 52 | 42 | resolve: { | @@ -118,8 +108,6 @@ export default defineConfig(async ({ command }) => { | 118 | 108 | define: { | 119 | 109 | "import.meta.env.OPENCODE_VERSION": JSON.stringify(process.env.OPENCODE_VERSION), | 120 | 110 | "import.meta.env.VITE_OPENCODE_CHANNEL": JSON.stringify(channel), | 121 | | - "import.meta.env.OPENCODE_COMMIT": betaNotes ? JSON.stringify(betaNotes.sha) : "undefined", | 122 | | - "import.meta.env.OPENCODE_BETA_NOTES": betaNotes ? JSON.stringify(JSON.stringify(betaNotes)) : "undefined", | 123 | 111 | "import.meta.env.OPENCODE_TEST_ONBOARDING": JSON.stringify( | 124 | 112 | command === "serve" && process.env.OPENCODE_TEST_ONBOARDING === "1", | 125 | 113 | ), | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/package.json -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 50 | 50 | "electron": "44.9.1", | 51 | 51 | "electron-builder": "26.15.7", | 52 | 52 | "electron-vite": "6.0.0-beta.1", | 53 | | - "htmlparser2": "8.0.2", | 54 | 53 | "magic-string": "0.30.21", | 55 | 54 | "solid-js": "catalog:", | 56 | 55 | "typescript": "catalog:", | |
|