-
Notifications
You must be signed in to change notification settings - Fork 13
chore: sync staging with prod #1703
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
70 commits
Select commit
Hold shift + click to select a range
25f310d
style: bring marketing/SEO pages in line with Peanut design system
Hugo0 3fbc449
feat: programmatic SEO pages, i18n, DS showcase, LP refactor
Hugo0 5c147f9
Add image support and draft/published filtering to content loaders
Hugo0 e488e6a
fix: prettier formatting, dynamicParams, content caching
Hugo0 931a050
✨ V3 transitivity UI + binary cashback + points animations
Hugo0 2e79309
fix: useCountUp render loop causing flickering animation
Hugo0 e821397
style: fix prettier formatting
Hugo0 c4869b2
fix: kernel client stuck loading screen + retry logic
jjramirezn bb3d194
Merge pull request #1685 from peanutprotocol/hotfix/loading-screen
Hugo0 e6b966f
zerodev package update
Hugo0 2dbe78f
feat: MDX content rendering pipeline with interactive components
Hugo0 ac8534e
fix: CI auth for private content submodule, publish argentina
Hugo0 bd0e575
feat: MDX-first rendering for all marketing pages + cleanup
Hugo0 8e2694f
feat: SEO improvements — breadcrumbs, FAQ schema, sitemap dates, ping…
Hugo0 46053e2
Merge branch 'feat/seo' into release/prod-2025-02-25
Hugo0 9dd6178
merge prod hotfixes into release (hotfix/loading-screen #1685)
Hugo0 533d245
merge V3 transitivity UI + points animations into release
Hugo0 3f305a0
chore: gitignore .claude directory
Hugo0 05a104d
fix: use hasCashbackLeft (boolean) in CashCard, matching BE response
Hugo0 25f385f
chore: point content submodule to main (new content pages)
Hugo0 8b70a98
fix: publish all SEO content + guard corridor loader against undefine…
Hugo0 d28d85a
fix: SEO page polish — breadcrumbs, flags, hero, exchange widget, con…
Hugo0 9e07236
fix: ExchangeWidget overflow + bulk migrate content to inline widget
Hugo0 580887b
fix: SEO audit — OG URL, robots.txt locales, deduplicate extractors, …
Hugo0 848151c
chore: remove thin programmatic pages, unpublish blog/team from produ…
Hugo0 3b47bdd
fix: scroll freeze on mobile, modal bug, null guards, small fixes
Hugo0 1a0c833
fix: update content submodule — escape <20 in MDX tables
Hugo0 c9561fa
ci: retrigger after pushing content submodule
Hugo0 f314e48
fix: show loading spinner on sign test tx button while user data loads
Hugo0 2c054ff
style: run prettier on all files
Hugo0 c536f83
docs: add CI and tech stack badges to README
Hugo0 d509eb7
fix: prevent withdraw success screen from redirecting away from /home
Hugo0 0421615
fix: prevent infinite loading from stale SW-cached auth responses
Hugo0 4e48a4c
fix: refresh JWT cookie maxAge only on successful auth
Hugo0 33a6fe0
fix: typo "friends your friends" and document blog dynamicParams gotcha
Hugo0 3da3330
ci: add SUBMODULE_TOKEN to preview workflow for private content submo…
Hugo0 5f2745b
test: add unit tests for get-user-from-cookie auth cookie lifecycle
Hugo0 ce45dd0
chore: remove one-shot migration script, stale TODO doc, deprecated a…
Hugo0 9f29a47
ci: add --archive=tgz to vercel deploy to handle >15k files
Hugo0 3d25321
fix: sanitize blog slug to prevent stored XSS (CodeQL high)
Hugo0 5a251a7
fix: restore lockfile to zerodev 5.5.7, revert CashCard threshold (BE…
Hugo0 f9e26b0
Merge pull request #1691 from peanutprotocol/release/prod-2025-02-25
Hugo0 50e71ca
fix: lazy-load bundle analyzer to avoid prod build failure
Hugo0 154c3cc
fix: remove hardcoded 20% from cashback CTA, cap invite graph at 200 …
Hugo0 f5425c1
fix: improve QR scanner detection reliability
Hugo0 8333000
fix: currency picker z-index on SEO pages, accurate cashback percentage
Hugo0 53f81ed
style: run prettier
Hugo0 9549863
Expand help center: i18n, Crisp chat, new articles
Hugo0 9632b9d
Deprecate peanut.to, fix CI workflows and README badges
Hugo0 9c3e981
Redirect /support to /en/help and remove dead support page
Hugo0 d360045
Merge pull request #1698 from peanutprotocol/fix/support-redirect
Hugo0 e6bc884
Fix broken internal links, add validation script, fix RelatedPages ca…
Hugo0 e05ff76
Add internal link validation to CI pipeline
Hugo0 28f676e
Add valid-links generator script for content LLM context
Hugo0 a1ff12a
Fix validate-links: match single-quoted href, strip trailing slashes
Hugo0 99ea9fc
Format generate-valid-links.ts with prettier
Hugo0 7a31491
Update content submodule to main (PR #4 merged)
Hugo0 a512647
Auto-update content submodule on peanut-content changes
Hugo0 4a561d6
Address CodeRabbit review feedback
Hugo0 16d5740
Merge pull request #1700 from peanutprotocol/fix/broken-internal-links
Hugo0 73eaa42
Fix auto-update workflow: use GITHUB_TOKEN for push
Hugo0 8896da6
Fix auto-update: clear persisted credentials before push
Hugo0 d7379b0
Auto-update content: create PR instead of direct push
Hugo0 92e0cf8
Fix auto-update: override credentials for branch push
Hugo0 d97c43c
Fix auto-update: separate checkout from submodule auth
Hugo0 fab5971
Fix auto-update: use GitHub API for signed commits
Hugo0 0c1ef20
Fix auto-update: remove non-existent label
Hugo0 3b5f3e8
Update content submodule to latest main
github-actions[bot] 78d93fa
Merge pull request #1701 from peanutprotocol/auto/update-content-2026…
Hugo0 907c878
Merge branch 'main' into chore/sync-131
kushagrasarathe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
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,60 @@ | ||
| name: Update content submodule | ||
|
|
||
| on: | ||
| repository_dispatch: | ||
| types: [content-updated] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Init and update submodule | ||
| env: | ||
| SUBMODULE_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} | ||
| run: | | ||
| git config submodule.src/content.url "https://x-access-token:${SUBMODULE_TOKEN}@github.com/peanutprotocol/peanut-content.git" | ||
| git submodule update --init src/content | ||
| cd src/content | ||
| git fetch origin main | ||
| git checkout origin/main | ||
|
|
||
| - name: Check for changes | ||
| id: check | ||
| run: | | ||
| if git diff --quiet src/content; then | ||
| echo "changed=false" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "changed=true" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Create PR | ||
| if: steps.check.outputs.changed == 'true' | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| BRANCH="auto/update-content-$(date -u +%Y%m%d-%H%M%S)" | ||
| TREE=$(git write-tree) | ||
| PARENT=$(git rev-parse HEAD) | ||
| # create signed commit via GitHub API (verified signature) | ||
| COMMIT_SHA=$(gh api repos/${{ github.repository }}/git/commits \ | ||
| --method POST \ | ||
| -f message="Update content submodule to latest main" \ | ||
| -f "tree=$TREE" \ | ||
| -f "parents[]=$PARENT" \ | ||
| --jq '.sha') | ||
| # create branch pointing to signed commit | ||
| gh api repos/${{ github.repository }}/git/refs \ | ||
| --method POST \ | ||
| -f "ref=refs/heads/$BRANCH" \ | ||
| -f "sha=$COMMIT_SHA" | ||
| gh pr create \ | ||
| --head "$BRANCH" \ | ||
| --title "Update content submodule" \ | ||
| --body "Auto-generated: updates content submodule to latest peanut-content main." | ||
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 |
|---|---|---|
|
|
@@ -76,3 +76,4 @@ public/swe-worker* | |
|
|
||
| # mobile POC | ||
| android/ | ||
| .claude/ | ||
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,3 +1,7 @@ | ||
| [submodule "src/assets/animations"] | ||
| path = src/assets/animations | ||
| url = https://github.com/peanutprotocol/peanut-animations.git | ||
| [submodule "src/content"] | ||
| path = src/content | ||
| url = https://github.com/peanutprotocol/peanut-content.git | ||
| branch = main |
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
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.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: peanutprotocol/peanut-ui
Length of output: 986
🏁 Script executed:
Repository: peanutprotocol/peanut-ui
Length of output: 1995
🏁 Script executed:
Repository: peanutprotocol/peanut-ui
Length of output: 1226
🏁 Script executed:
Repository: peanutprotocol/peanut-ui
Length of output: 978
Stage
src/contentbeforegit write-treeto capture the updated submodule SHA.The step "Init and update submodule" runs
git checkout origin/maininsidesrc/content, but this updates only the submodule's working tree—not the parent repo's index. The parent index still holds the old submodule SHA fromgit submodule update --init. Whengit write-treereads the index, it snapshots the old SHA, producing a commit that doesn't reflect the actual submodule update.Proposed fix
run: | BRANCH="auto/update-content-$(date -u +%Y%m%d-%H%M%S)" + git add src/content TREE=$(git write-tree) PARENT=$(git rev-parse HEAD)🤖 Prompt for AI Agents