feat: direction-aware olive branch, hero cleanup, Sheets auto-tab fix - #4
Merged
Conversation
…rites googleapis pulled in ~300 transitive deps and caused ECONNRESET timeouts on Vercel during npm install. New implementation uses Node built-in crypto (RS256 JWT signing) and native fetch to call the Sheets REST API directly, with no external packages required.
- Remove 'Explore the archive' CTA from hero (resources nav link already hidden) - ScrollingOliveBranch is now direction-aware: starts left-0 and sweeps right in LTR, right-0 sweeps left in RTL - Add OliveBranchBg client component (used on contribute/verification pages) - Replace googleapis with zero-dep native fetch + Node crypto for Sheets writes; auto-creates 'Contributions' tab if it does not exist (fixes 'Unable to parse range' error on first deploy)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
ScrollingOliveBranchnow readsdirfromuseI18n: in LTR (English) it anchors toleft-0and sweeps right on scroll; in RTL (Arabic) it anchors toright-0and sweeps left (original behaviour)OliveBranchBgclient component — extracted the static decorative olive branch into a reusable component (src/components/landing/olive-branch-bg.tsx) used on Contribute and Verification pagesgoogleapispackage with zero-dependency nativefetch+ Node.js built-incrypto(RS256 JWT); also addsensureSheetTab()which callsspreadsheets.batchUpdateto create the "Contributions" tab if it does not exist, fixing theUnable to parse range: Contributions!A1:J1error that occurred on first deploy when only the default "Sheet1" tab was presentReviewer notes
OliveBranchBgis not used on the main landing page (the moving branch is the only decoration there)201even if the Sheets call fails, with a server-sideconsole.errorensureSheetTabadds one extra GET + conditional POST per submission on first use; subsequent submissions skip the batchUpdate since the tab already exists