-
Notifications
You must be signed in to change notification settings - Fork 196
feat: upgrade to Next.js 16, TailwindCSS v4, Storybook 10, and Biome #422
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
Merged
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
326c6c5
feat: upgrade to Next.js 16, TailwindCSS v4, Storybook 10, and Biome
hari 4aa1a6b
fix: add .node-version to set Node 22 for Cloudflare Pages builds
hari f549f51
fix: border trail animation and storybook build
hari a271010
fix: add prebuild script to build storybook previews before Next.js
hari 5f527a5
fix: storybook preview integration for dev and production
hari 276b1f8
fix: run velite separately for Turbopack compatibility
hari df0b157
fix: migrate deprecated Tailwind v3 opacity utilities to v4 syntax
hari 891602f
fix: restore storybook.css and fix -z-1 for Tailwind v4
hari a3f7cd3
fix(storybook): add @reference directive for Tailwind v4 @apply support
hari a3a1199
fix(components): fix animations for Tailwind v4 and Motion v12
hari 1ffeed2
chore(docs): unpublish subpar and broken components
hari e348ca3
chore(deps): add @tailwindcss/typography, @xyflow/react, and sonner
hari ebb98a8
feat(orbiting-items): premium styling with dark theme and colored icons
hari 33e583e
refactor(mdx): remove all any types with proper UnistNode/UnistTree t…
hari e0a17d9
feat(storybook): enable autodocs with controls in embedded preview
hari 0c79b7f
fix(storybook): hide zoom controls and borders in embedded preview
hari 17cb76a
fix(styles): convert step/chunk-container to @utility for Tailwind v4
hari 1aec830
fix(mdx): add relative positioning to Step for counter circles
hari 3494902
fix(storybook): sync docs theme with parent app light/dark mode
hari 827daa5
fix(preview): wait for mount to detect resolved theme for storybook
hari 0a2f47d
fix(storybook): restore missing semicolon after @apply mb-0!
hari a2e71ab
fix(storybook): read theme from Storybook globals context instead of URL
hari 1865484
fix(storybook): use URL detection and postMessage for theme sync
hari ae8f769
chore(docs): unpublish animated dock and hero section
hari 83d5fec
refactor(preview): render stories directly instead of storybook iframe
hari bd09ee9
feat(preview): add inline props editor for interactive story controls
hari de6efb9
fix(preview): separate preview and props editor into distinct containers
hari 9588ef2
refactor: clean up dead iframe embedding code from storybook preview
hari 600a80d
feat(component-preview): add other stories section and reset button
hari 9cd650b
feat(component-preview): add full-content class and fix marquee reverse
hari 61f1635
feat(stories): add select argTypes for union type props
hari 1b05567
feat(component-preview): add select control for options and update docs
hari aba8abf
refactor(components): localize generic group classes with named modif…
hari 99cc027
fix(background): use theme tokens for placeholder text colors
hari 9a6e46e
fix(bento-grid): fix gradient card text color and rotation value
hari 1471763
refactor(components): clean up image and text components
hari e63bf91
fix(components): replace transition-all with transition for Tailwind v4
hari 8edb70c
docs: update installation steps from tailwind.config.js to v4 CSS
hari a16b134
fix(components): update gradient syntax and theme colors for v4
hari 5abb609
fix(components): migrate remaining Tailwind v3 utilities to v4
hari dd73034
docs: fix audit issues in setup, PR template, and shape-shifter
hari ccf083a
feat(stories): expose primitive props in stories for PropsEditor
hari 46eac31
feat(stories): add missing primitive props across all categories
hari c6cdebf
chore(docs): unpublish survey-card component
hari 9c00ab9
feat(preview): add dot background pattern to component previews
hari 8c1d5f3
refactor(container): improve shift-tabs semantic HTML and key stability
hari 0de6a58
fix(graphs): reduce progress bar transition delay for snappier animation
hari 3f7e72a
fix(image): fix tilted-cover Tailwind v4 syntax and invalid classes
hari ae8b2fc
fix(list): extract OrbitingItem as proper component with valid hooks
hari 9e3dcb8
fix(list): tune orbiting-items-3d z-index and scale for depth
hari ed816d5
fix(list): fix orbiting-items pause-on-hover and use full-content
hari e70bd29
fix(list): fix orbiting-items animation for Tailwind v4
hari 798975f
chore(docs): unpublish transaction-list and transition-list
hari 4e60bf2
fix(list): improve transaction-list with motion best practices
hari c863d9e
fix(text): restore bold-copy zoom font effect for Tailwind v4
hari d077d96
feat(text): add full-content class to glitch-text for edge-to-edge pr…
hari ca57cc5
fix(text): fix scroll-reveal by allowing overflow in full-content pre…
hari c8efd7e
fix(text): fix underline-hover-text animation for Tailwind v4
hari 10ed372
chore(docs): unpublish pricing component
hari 72dfa29
fix(text): fix scroll-reveal highlight selectors for icon children
hari 9b75724
fix(text): remove full-content from scroll-reveal to fix scroll tracking
hari b5ee9de
fix(text): replace useScroll with native scroll listener in scroll-re…
hari f83c244
fix(preview): fix optional chaining on argTypes options access
hari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| NEXT_PUBLIC_STORYBOOK_URL=http://localhost:6006 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Deploy v3 | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - v3 | ||
|
|
||
| jobs: | ||
| deploy-v3: | ||
| runs-on: ubuntu-latest | ||
| environment: v3-deployment | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| - name: Install yarn | ||
| run: npm install -g yarn | ||
| - name: Restore cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| .next/cache | ||
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}- | ||
| - name: Install dependencies | ||
| run: yarn install --immutable | ||
| - name: Build component previews | ||
| run: yarn storybook:build | ||
| - name: Build with Next.js | ||
| env: | ||
| NEXT_PUBLIC_APP_URL: ${{ vars.NEXT_PUBLIC_APP_URL }} | ||
| NEXT_PUBLIC_SUPABASE_URL: ${{ vars.NEXT_PUBLIC_SUPABASE_URL }} | ||
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ vars.NEXT_PUBLIC_SUPABASE_ANON_KEY }} | ||
| NEXT_PUBLIC_POSTHOG_KEY: ${{ vars.NEXT_PUBLIC_POSTHOG_KEY }} | ||
| NEXT_PUBLIC_POSTHOG_HOST: ${{ vars.NEXT_PUBLIC_POSTHOG_HOST }} | ||
| NEXT_PUBLIC_PLUNK_API_KEY: ${{ vars.NEXT_PUBLIC_PLUNK_API_KEY }} | ||
| run: yarn build | ||
| - name: Deploy to Cloudflare Pages | ||
| uses: cloudflare/wrangler-action@v3 | ||
| with: | ||
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
| command: pages deploy out --project-name=animata-v3 --branch=main | ||
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 22 |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,12 @@ | ||
| import type { StorybookConfig } from "@storybook/nextjs"; | ||
|
|
||
| const config: StorybookConfig = { | ||
| stories: [ | ||
| "../animata/**/*.mdx", | ||
| "../animata/**/*.stories.@(js|jsx|mjs|ts|tsx)", | ||
| ], | ||
| addons: [ | ||
| "@storybook/addon-onboarding", | ||
| "@storybook/addon-links", | ||
| "@storybook/addon-essentials", | ||
| "@chromatic-com/storybook", | ||
| "@storybook/addon-interactions", | ||
| "@storybook/addon-styling-webpack", | ||
| "@storybook/addon-themes", | ||
| "storybook-dark-mode", | ||
| ], | ||
| stories: ["../animata/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
| addons: ["@storybook/addon-themes", "@storybook/addon-docs"], | ||
| framework: { | ||
| name: "@storybook/nextjs", | ||
| options: {}, | ||
| }, | ||
| staticDirs: [], | ||
| tags: {}, | ||
| }; | ||
| export default config; |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ | |
| "esbenp.prettier-vscode", | ||
| "streetsidesoftware.code-spell-checker" | ||
| ] | ||
| } | ||
| } | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 27 days ago
To fix the problem, explicitly define a minimal
permissionsblock so that theGITHUB_TOKENused by this workflow/job is limited to read-only repository contents unless more is required. The safest pattern is to declarepermissionsat the workflow root (applies to all jobs) or at thedeploy-v3job level. Since there is only a single job and no evidence of needing write permissions (the job checks out code, builds, caches, and then deploys to Cloudflare using Cloudflare credentials), we can safely setcontents: readas the only permission.The best minimal change is to add a
permissionsblock near the top of.github/workflows/deploy-v3.yml, right after thename:line (or before/afteron:; all are valid) so that it applies to the entire workflow. No imports or additional methods are needed since this is just YAML configuration. Concretely, in.github/workflows/deploy-v3.yml, insert:between line 1 (
name: Deploy v3) and line 3 (on:), keeping indentation consistent. This documents that the workflow only needs read access to repository contents and ensures theGITHUB_TOKENis not given unnecessary write permissions.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.
@claude fix