feat: Astro landing for @bearstudio/ui-state - #6
Open
HugoPerard wants to merge 46 commits into
Open
HugoPerard wants to merge 46 commits into
HugoPerard wants to merge 46 commits into
Conversation
|
HugoPerard
force-pushed
the
feat/landing-astro
branch
from
August 26, 2026 13:40
db52db2 to
14cf649
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
HugoPerard
force-pushed
the
feat/landing-astro
branch
from
August 27, 2026 09:57
bb05894 to
af12801
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Marketing landing for
@bearstudio/ui-stateas an Astro 6 SSG app atapps/landing, against this TS 7 / oxlint / oxfmt branch. Unpublished; no changeset. Does not touch draft PR #1.English at
/. One primary CTA: GitHub +pnpm add @bearstudio/ui-state. Hero is zero-JS product UI (READMEmatch+exhaustivesample + pending/error/default cards). One React island (StateDemo,client:visible) usesworkspace:*and demos pending / error / default withmatch+exhaustiveandwhen. Public API not widened.How to run
From repo root (Node 24, pnpm 10.34.5):
Root
pnpm dev/pnpm build/pnpm check-types/pnpm lintinclude the app via turbo. LandingdevhasdependsOn: ["^build"]sopackages/ui-statedist exists before the island imports it.App:
check-types=tsc --noEmiton the island. Lint = oxlint. Format = oxfmt.astro checkis not the source of truth (TypeScript 7 has no compiler API).Stack
@astrojs/react6.0.4 island@tailwindcss/vite(not@astrojs/tailwind); tokens in@theme inlinetsconfig split
react-library.jsonreact-library.json. It extends newpackages/typescript-config/astro.json(module: ESNext,moduleResolution: Bundler,noEmit)Files
Workspace / toolchain:
pnpm-workspace.yaml(apps/*).gitignore(.astro).oxlintrc.json(**/.astro/**)turbo.json(dev.dependsOn: ["^build"])packages/typescript-config/astro.jsonApp:
apps/landing/package.jsonapps/landing/tsconfig.jsonapps/landing/astro.config.tsapps/landing/README.mdapps/landing/public/favicon.svgapps/landing/src/env.d.tsapps/landing/src/styles/global.cssapps/landing/src/layouts/Layout.astroapps/landing/src/pages/index.astroapps/landing/src/components/HeroCode.astroapps/landing/src/components/NestedTernary.astroapps/landing/src/components/StateDemo.tsxLockfile / what failed remotely
pnpm-lock.yamlis still the PR #4 lockfile (importers: root +packages/*only). Could not runpnpm installortschere (no git clone; package-manager invocations were blocked). After checkout:pnpm installfrom root, thenpnpm --filter landing check-types/build. CI on this PR is the first real install + build.Canonical/OG URL is the GitHub repo (no production host yet). Static samples escape
{/}with Astro expressions or HTML entities.Test plan
pnpm install(updates lockfile with landing deps)pnpm --filter landing check-types(tsc --noEmit)pnpm --filter landing lint(oxlint)pnpm --filter landing buildpnpm --filter landing dev— hero has no JS; island hydrates on view; pending/error/default all render viaexhaustive()Result