Skip to content

Extract marketing download logic into shared helpers#46

Merged
BunsDev merged 2 commits into
mainfrom
okcode/fix-marketing-typecheck
Mar 28, 2026
Merged

Extract marketing download logic into shared helpers#46
BunsDev merged 2 commits into
mainfrom
okcode/fix-marketing-typecheck

Conversation

@BunsDev

@BunsDev BunsDev commented Mar 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Moved marketing download platform detection and asset selection into apps/marketing/src/lib/download.ts.
  • Added Vitest coverage for platform detection and asset picking edge cases.
  • Tightened the homepage TypeScript usage by typing DOM lookups and tab handlers.
  • Added vitest and a marketing package test script so the new helper tests can run in isolation.

Testing

  • Not run (bun fmt)
  • Not run (bun lint)
  • Not run (bun typecheck)
  • Not run (bun run test)

- Move platform detection and asset selection into `download.ts`
- Add Vitest coverage and wire up the marketing test script
- Tighten Astro page typings to satisfy typecheck
@vercel

vercel Bot commented Mar 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 28, 2026 3:07am

@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 28, 2026
Keep extracted download module (import from ../lib/download) and adopt
`astro sync && astro check` typecheck script from main.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@BunsDev BunsDev merged commit 30f77fc into main Mar 28, 2026
8 of 9 checks passed
@BunsDev BunsDev deleted the okcode/fix-marketing-typecheck branch March 31, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant