Skip to content

Feature/agentic setup - #14

Merged
saurabh73 merged 7 commits into
devfrom
feature/agentic-setup
Aug 9, 2026
Merged

saurabh73 merged 7 commits into
devfrom
feature/agentic-setup

Conversation

@saurabh73

@saurabh73 saurabh73 commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Added About, Careers, Privacy, Terms, and enhanced Contact pages.
    • Added functional contact form submission with validation, success, and error states.
    • Added CMS-backed services, products, blog, careers, clients, and testimonials.
    • Added clearer loading, empty, outage, and not-found experiences.
    • Added smoother page, image, navigation, and theme transitions.
  • Enhancements
    • Improved responsive navigation, accessibility, SEO metadata, sitemap, and crawler controls.
    • Refreshed branding across social sharing images and site layouts.
    • Added permanent redirects for Services and Clients sections.

saurabh73 and others added 7 commits August 5, 2026 00:26
Careers
- Replace the /careers redirect stub with a real page mirroring /products:
  section header, .job-grid of job cards, and an empty fallback.
- Remove the duplicated #careers section from the home page along with its now
  dead code (getCareers, typeLabels, careersQuery import).
- Stop the nav script intercepting /careers as a scroll-to-anchor, so the link
  actually navigates. Add /careers to the sitemap.

Motion
- Animate transform instead of gap on .link-inline and .back-link, so hover no
  longer triggers layout.
- Neutralise hover motion under (hover: none)/(pointer: coarse); touch taps no
  longer leave cards and buttons stuck in their lifted state. Exclude
  .nav-active from the underline collapse so the active link keeps its rule.
- Move the skeleton shimmer from background-position to a composited ::after
  transform.
- Narrow the reduced-motion blanket rule: keep colour/opacity feedback at 150ms,
  drop only movement, and give skeletons a non-moving loading pulse.
- Give the mobile menu an interruptible exit instead of display:none.
- Add press feedback to clickable cards; calibrate the hero status pulse.
- Add entry animations for contact-form field errors and status alerts, and
  cross-fade the theme-toggle icons instead of swapping display.

Scroll reveal
- Staggered entrance for the home page's below-fold grids, scoped to
  .services-grid and .client-grid only; content stays visible without JS and
  under reduced motion.
- Rebind on soft navigation. next/link does not re-fire DOMContentLoaded, so a
  revisit rendered fresh grid nodes that CSS hid with nothing observing them.
- Track bound nodes in a WeakSet rather than a data attribute, which was causing
  a React hydration mismatch.

Skeletons
- Add route-matched loading.js for blog, products and careers; the single root
  skeleton promised the wrong column count everywhere and cover images on
  /careers, which has none. Column geometry now matches each real grid.

Copy and consistency
- Remove em-dashes and en-dashes from user-visible strings.
- One label per CTA intent ("Start a project"); trim hero subtext.
- Comma-separate product platforms; align client-card radius with other cards.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…e sweep

Pages and navigation
- Add /about (journey, address, registration details) and link it from the
  top nav and footer. Registration rows with no value are skipped, so the
  GSTIN line stays out until a real number is supplied.
- Replace Services and Clients in the top nav with About. Both routes stay
  live: the hero CTA and the 404 page still link to them.
- Rebuild the footer as two weighted clusters (brand + copyright / socials +
  legal) so it balances at every breakpoint.

Motion
- Add page transitions via React <ViewTransition> and transitionTypes.
  Lateral navigation is strictly sequential rather than a cross-fade: with
  72px display headlines, overlapping snapshots put two of them on top of
  each other. Nav and footer are pinned as persistent chrome.
- Scroll-driven ghost letterforms on the value cards, keyed to a named
  view-timeline (an ancestor with overflow:hidden breaks bare view()).
- Drop the route skeletons; they read as a flash against the transitions.

Platform
- Upgrade to Next 16.3. styled-components is now an explicit dependency
  rather than a pruned peer of sanity.
- Remove the OpenNext and Wrangler config along with the Cloudflare-only
  assumptions in the contact route.
- Allow SVG through next/image, sandboxed and served as an attachment under
  a script-blocking CSP. Client logos are SVG wordmarks and were 400ing.

Cleanup
- Stop fetching Bricolage Grotesque and Instrument Sans. Both were requested
  on every page load but never referenced; sans and display resolve to the
  self-hosted Satoshi. Only the mono face is still fetched.
- Remove careerQuery and careerSlugsQuery: no careers detail route consumes
  them and they are absent from the sitemap.
- Correct three comments that no longer matched the code, including one
  claiming the view-transition recipe was copied unmodified when the lateral
  case had been rewritten, and one describing the Cloudflare runtime.
- Delete a stray screenshot and the orphaned .dev.vars ignore rule.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The agent skills live in .agents/skills/ with symlinks from .claude/skills/.
Both are gitignored (7.2M of third-party markdown), so a fresh clone has none
of the 74 skills that skills-lock.json records.

scripts/restore-skills.mjs rebuilds both directories from the lock. Skills are
grouped by source repository and each repo is fetched once as a tarball, so a
full restore is six requests and about seven seconds rather than one request
per file. Re-running touches the network only when something is missing, and
rebuilds just the symlinks when .claude/ is lost but .agents/ survives.

Exposed as `npm run skills:restore` and `npm run skills:check`. Deliberately
not wired into npm's prepare lifecycle: it would put a network fetch in the
path of every npm install, and nothing in the site build depends on it.

The lock records a content hash but no commit, so a restore takes whatever is
on each default branch that day; 51 of the 74 already differ from their
recorded hash. The script reports that count rather than treating it as a
failure, and honours an optional per-entry "ref" for pinning a commit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`npm install` and `npm ci` now restore any missing skills automatically.

prepare invokes the restore with a new --soft flag, which downgrades every
failure path to a warning and exits 0. Skills are developer tooling that
nothing in the site build reads, so an unreachable GitHub should not be able
to fail an install; `npm run skills:restore` still exits non-zero so a
deliberate run reports real failures.

The restore already no-ops when nothing is missing, so a repeat install pays
about a second and makes no network requests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The root layout set an absolute `alternates.canonical`. Next inherits any
metadata field a child does not redefine, so /about, /blog, /products,
/careers, /privacy and /terms every one emitted a canonical pointing at the
homepage, declaring themselves duplicates of it. Resolved with `canonical:
'./'`, which resolves against the current pathname; verified across all eight
routes in a production render.

The same inheritance was serving the homepage og:title and og:url on those six
pages, so every share of a blog or careers link advertised the homepage. Each
route now builds its own Open Graph block through lib/seo.js. That helper
exists because Next replaces `openGraph` wholesale rather than deep-merging it,
so declaring it per page silently drops the image contributed by
app/opengraph-image.js — /contact had already lost its og:image this way.

/blog, /products and /careers are empty by design pre-launch. Rather than hand
-removing them, they noindex themselves and drop out of the sitemap while their
CMS query returns nothing, and reverse automatically on first publish. Both
conditions require the fetch to have succeeded: an outage must not deindex a
page that really has content.

productSlugsQuery lacked the `featured == true` filter that the /products
listing applies, so every unfeatured product would have received an indexable,
sitemap-submitted detail page that nothing linked to. A listing filter and an
indexation filter should not disagree by accident.

Also:
- /services and /clients redirect 308 rather than 307; these consolidations are
  permanent and only a permanent status passes the signal on.
- /studio is noindex via a server layout, the page itself being a Client
  Component. The robots rule was /studio/, which never matched the bare path
  that actually serves the CMS.
- robots.txt moves to app/robots.js so the crawl rules cannot drift from
  sitemap.js.
- Sitemap carries real _updatedAt timestamps; stamping every URL with the build
  time claimed all eight pages changed on every deploy. CMS failures log
  instead of being swallowed by a bare catch.
- JetBrains Mono moves to next/font, removing a render-blocking stylesheet
  request to fonts.googleapis.com from every page.
- Organization schema gains email, foundingDate and a contactPoint with
  areaServed. It stays Organization rather than becoming a LocalBusiness
  subtype: the registered address is in Bengaluru but the market is not, so
  local-pack optimisation would target the wrong audience.
- title.template replaces the brand suffix repeated across seven files.
  Rendered titles are unchanged.
- /privacy and /terms had no description and were inheriting the homepage's.
- Empty-string meta descriptions become undefined, which omits the tag instead
  of shipping a deliberate blank.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The PR rebuilds the site around Sanity-backed content, adds contact submission storage, introduces shared SEO and Open Graph systems, improves navigation and transitions, adds About and Careers pages, and adds agent, skill, and repository tooling.

Changes

Repository and agent tooling

Layer / File(s) Summary
Agent setup and skill restoration
.claude/*, AGENTS.md, CLAUDE.md, scripts/restore-skills.mjs, skills-lock.json, package.json
Adds agent hooks, Next.js guidance, skill restoration and verification commands, lockfile validation, hash checks, symlink management, and lifecycle integration.
Graph reporting and animation plans
graphify-out/*, plans/*, .gitignore, .tool-versions, README.md
Adds generated graph artifacts, repository ignore rules, Node.js version selection, skill documentation, and five completed animation plans.

CMS and contact flow

Layer / File(s) Summary
Sanity data access and schemas
lib/sanity.js, lib/seo.js, sanity/schemas/*
Adds cached failure-aware fetching, authenticated writes, testimonial and contact schemas, updated slug queries, and shared Open Graph metadata generation.
Contact submission flow
app/contact/page.js, app/contact/layout.js, app/api/contact/route.js
Adds accessible client validation, honeypot and duplicate-submit guards, asynchronous submission states, server validation, and Sanity persistence.
Shared site shell
app/layout.js, app/page-transition.js, app/error.js, app/not-found.js, app/about/page.js, app/privacy/page.js, app/terms/page.js, app/studio/layout.js, app/robots.js
Adds shared navigation behavior, view transitions, metadata, accessibility handling, document layouts, About content, error states, and crawler rules.

Content and image routes

Layer / File(s) Summary
CMS-backed pages
app/page.js, app/blog/*, app/careers/page.js, app/products/*, app/sitemap.js, app/clients/page.js, app/services/page.js
Rebuilds homepage, blog, careers, and product flows with CMS data, explicit outage and empty states, structured cards, dynamic metadata, transitions, permanent redirects, and content-aware sitemap entries.
Shared Open Graph branding
app/og-brand.js, app/opengraph-image.js, app/blog/[slug]/opengraph-image.js, app/products/[slug]/opengraph-image.js, next.config.js
Adds shared Satori-compatible branding components and applies them to site, blog, and product Open Graph images with shared colors and dimensions.

Estimated code review effort: 5 (Critical) | ~120 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Visitor
  participant ContactPage
  participant ContactAPI
  participant Sanity
  Visitor->>ContactPage: Enter contact details
  ContactPage->>ContactPage: Validate fields and submit
  ContactPage->>ContactAPI: POST /api/contact
  ContactAPI->>Sanity: Create contactSubmission
  Sanity-->>ContactAPI: Persist submission
  ContactAPI-->>ContactPage: Return submission status
  ContactPage-->>Visitor: Show success or validation state
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 36.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the pull request as an agentic setup change, which matches the added agent guidance, skills tooling, and Claude configuration.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/agentic-setup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@saurabh73
saurabh73 requested a review from shkkonda August 9, 2026 09:46

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

Note

Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.

🟡 Minor comments (13)
app/contact/page.js-210-216 (1)

210-216: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Align the budget value contract.

Line 215 submits not-sure. Line 16 rejects that value with a 422 response. A visitor who selects “Not sure yet” cannot submit the form.

  • app/contact/page.js#L210-L216: keep only values accepted by the API.
  • app/api/contact/route.js#L16-L16: add not-sure if “Not sure yet” remains a supported option.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/contact/page.js` around lines 210 - 216, Align the budget value contract
between the contact form and API: in app/contact/page.js lines 210-216, retain
only options accepted by the API; in app/api/contact/route.js line 16, add
not-sure to the validation accepted by the request handler if the “Not sure yet”
option remains supported.
app/api/contact/route.js-46-60 (1)

46-60: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Reject a null JSON body before reading its fields.

A request body of null passes request.json(). Line 56 then reads body.honeypot and throws. Return a 400 response unless the parsed value is a non-array object.

Proposed fix
   try {
     body = await request.json()
   } catch {
     return Response.json({ ok: false, reason: 'malformed' }, { status: 400 })
   }
+  if (!body || typeof body !== 'object' || Array.isArray(body)) {
+    return Response.json({ ok: false, reason: 'malformed' }, { status: 400 })
+  }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/api/contact/route.js` around lines 46 - 60, Validate the parsed body
immediately after request.json() in POST, returning the existing 400 malformed
response unless it is a non-null, non-array object. Only then access
body.honeypot and continue to validate(body).
app/products/page.js-81-81 (1)

81-81: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

The duplicated status map defaults an unknown status to "Live". Both files define the same statusMeta object and both resolve a missing or unrecognised product.status to the "Live" badge. That turns a data gap into a public claim that the product is live. Move statusMeta into one shared module and return undefined for unknown keys so the badge is omitted.

  • app/products/page.js#L81: replace statusMeta[product.status] || statusMeta['live'] with a lookup that may be undefined, and render the badge only when it resolves.
  • app/products/[slug]/page.js#L116: apply the same lookup and guard the badge in the detail header.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/products/page.js` at line 81, The duplicated statusMeta definitions in
app/products/page.js (line 81) and app/products/[slug]/page.js (line 116) must
be moved into one shared module. Update both product views to perform a direct
lookup that returns undefined for unknown product.status values, and render each
status badge only when the lookup succeeds; never fall back to the live status.
app/blog/page.js-52-56 (1)

52-56: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Listing queries do not require a slug, so both listings can emit /undefined links. postsQuery and productsQuery in lib/sanity.js select documents without a defined(slug.current) constraint. Each consumer therefore has to guard, and the shared ViewTransition names also collapse to a single …-undefined value when the slug is missing. Add defined(slug.current) to both queries, or filter at each call site.

  • app/blog/page.js#L52-L56: filter items on post.slug?.current before destructuring lead and rest.
  • app/products/page.js#L78-L92: filter items on product.slug?.current before mapping the product cards.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/blog/page.js` around lines 52 - 56, Filter the listing results by valid
slugs before rendering cards: in app/blog/page.js lines 52-56, filter items on
post.slug?.current before destructuring lead and rest; in app/products/page.js
lines 78-92, filter items on product.slug?.current before mapping product cards.
This prevents undefined links and duplicate undefined ViewTransition names.
app/page.js-240-250 (1)

240-250: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

The heading states four services, but the grid renders as few as one.

bentoTiles is services.slice(0, 4), and the section renders when bentoTiles.length > 0. If the CMS returns one, two, or three featured services, the page shows "Four ways we ship with you" above fewer than four cards. showClosingStrip already handles the layout case, but the heading text is fixed.

Derive the heading from bentoTiles.length, or gate the section on the full set.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/page.js` around lines 240 - 250, Update the services section heading near
bentoTiles.map and ServiceCard so its wording reflects bentoTiles.length instead
of always claiming four services. Preserve rendering for any non-empty
bentoTiles array and keep the existing section layout and card mapping
unchanged.
plans/003-remove-nav-status-pulse.md-76-80 (1)

76-80: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use a complete reference search before deleting pulse.

The current pattern misses longhand references such as animation-name: pulse;. If another rule uses that form, step 3 can delete a live keyframe. Search for every pulse reference, inspect the matches, and use the same search for verification.

Proposed command
-`grep -n "animation: pulse\|pulse " app/globals.css`
+`rg -n '\bpulse\b' app/globals.css`

Also applies to: 97-98

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@plans/003-remove-nav-status-pulse.md` around lines 76 - 80, Update the
instructions around the pulse keyframe removal to perform a complete reference
search for every use of “pulse”, including longhand properties such as
animation-name, and inspect each match. Delete the `@keyframes` pulse block only
when no live references remain; otherwise retain it, and repeat the same
comprehensive search to verify the result.
README.md-101-103 (1)

101-103: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Make the drift count dynamic.

The value 51 of 74 will become stale as upstream content or lock entries change. State that the script reports the current count, or generate this text from skills:check.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` around lines 101 - 103, Update the README text near the repository
drift description to avoid the hardcoded “51 of 74” count; state that
skills:check reports the current drift count, or generate the displayed count
from that command while preserving the existing guidance about pinning entries
with a ref commit SHA.
plans/002-shorten-card-hover-surfaces.md-91-93 (1)

91-93: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the timing-band explanation.

Lines 91-93 call 200ms the middle of the sub-300ms budget and the 125–200ms band. 200ms is near the upper end of both ranges. Use “within the sub-300ms budget and at the upper edge of the analogue band.”

Proposed wording
-`200ms` sits in the middle of the sub-300ms UI budget and matches the
-"tooltips, small popovers: 125–200ms" band, which is the right analogue for a
+`200ms` sits within the sub-300ms UI budget and at the upper edge of the
+"tooltips, small popovers: 125–200ms" band, which is the right analogue for a
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@plans/002-shorten-card-hover-surfaces.md` around lines 91 - 93, Update the
timing rationale around the 200ms value to describe it as within the sub-300ms
UI budget and at the upper edge of the analogous 125–200ms tooltip/popover band,
replacing the inaccurate “middle” characterization.
plans/005-page-header-entrances.md-173-178 (1)

173-178: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Make the hero-rise count internally consistent.

Lines 174-178 state both 6 and 3. The target contains three expected occurrences in app/globals.css: the keyframe, the home-page rule, and the new header rule. Keep one expected value.

Proposed wording
-- `grep -c "hero-rise" app/globals.css` returns `6` ...
+- `grep -c "hero-rise" app/globals.css` returns `3`: one keyframe, one home-page rule, and one new header rule.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@plans/005-page-header-entrances.md` around lines 173 - 178, Update the
mechanical verification bullet in the page-header plan so the hero-rise grep
expectation is consistently 3 occurrences. Remove the contradictory count and
retain the explanation identifying the keyframe, home-page rule, and new header
rule.
plans/001-shorten-testimonial-accordion.md-82-84 (1)

82-84: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the duration-band explanation.

Line 82 says that 260ms is inside the 150–250ms band. 260ms is above that range. State that it is slightly above the band because the panel travels farther, or choose a value at or below 250ms.

Proposed wording
-`260ms` sits inside the "dropdowns, selects: 150–250ms" band's upper edge,
+`260ms` sits just above the "dropdowns, selects: 150–250ms" band,
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@plans/001-shorten-testimonial-accordion.md` around lines 82 - 84, Correct the
duration explanation in the “dropdowns, selects: 150–250ms” discussion so it
does not claim that 260ms is inside the band; describe 260ms as slightly above
the band due to the panel’s greater travel distance, or change the duration to
250ms or less while preserving the intended rationale.
app/privacy/page.js-29-29 (1)

29-29: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Stale "Last updated" dates on both legal documents. This PR rewrites the privacy policy and the terms of service, but both pages still declare "Last updated: March 2026". A revision date that predates the revision misleads visitors and weakens the record of when the terms changed.

  • app/privacy/page.js#L29: set the date to the month this version ships.
  • app/terms/page.js#L29: set the same date.

Consider deriving both from a single exported constant so the next edit updates one place.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/privacy/page.js` at line 29, Update the “Last updated” date in
app/privacy/page.js (line 29) and app/terms/page.js (line 29) to the month this
version ships, using the same value in both documents. Prefer deriving both
displays from a single exported date constant so future revisions require one
update.
app/layout.js-34-53 (1)

34-53: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Make openGraph.url route-relative like alternates.canonical.

alternates.canonical uses './', so every route self-canonicals. openGraph.url is the absolute homepage URL. Any route that does not set its own openGraph inherits og:url pointing at the homepage while its canonical points at itself. metadataBase resolves relative URLs, so './' works here as well and keeps both signals on the same page.

Note: app/about/page.js, app/privacy/page.js, and app/terms/page.js set openGraph through buildOpenGraph, so they are unaffected. Routes without an openGraph export still inherit the homepage URL.

🐛 Proposed fix
   openGraph: {
     title: DEFAULT_TITLE,
     description: DEFAULT_DESCRIPTION,
-    url: 'https://appweave.tech',
+    url: './',
     siteName: SITE_NAME,
     type: 'website',
   },
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` around lines 34 - 53, Update the openGraph metadata
configuration to make openGraph.url route-relative by using './', matching
alternates.canonical. Leave the existing title, description, siteName, and type
values unchanged so routes without their own openGraph metadata resolve og:url
to the current page.

Source: Linters/SAST tools

app/layout.js-218-223 (1)

218-223: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

has-navigated is set for clicks that do not navigate.

The listener sets the flag for any click on an internal link. It does not check the mouse button or the modifier keys. A Ctrl-click, Cmd-click, or middle-click opens a new tab and leaves the current page in place, but the flag stays set for the rest of the session. Every later page entrance animation is then suppressed on a page that never ran a view transition. The same applies to /services and /clients clicks, which the handler below intercepts for anchor scrolling instead of navigating.

Filter the non-navigating clicks before setting the flag.

🐛 Proposed fix
                 document.addEventListener('click', function(e) {
+                  if (e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
                   var link = e.target.closest && e.target.closest('a[href^="/"]');
                   if (link && !link.target) {
                     document.documentElement.classList.add('has-navigated');
                   }
                 }, true);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` around lines 218 - 223, Update the click listener around the
internal-link lookup so it sets has-navigated only for unmodified primary-button
clicks that will actually navigate in the current tab. Exclude modifier-key
clicks, middle/non-primary buttons, and the /services or /clients links handled
by the anchor-scrolling listener, while preserving the existing class addition
for valid navigations.
🧹 Nitpick comments (10)
app/page.js (1)

12-21: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Reuse fetchList instead of the local fetchOrEmpty.

lib/sanity.js exports fetchList, which is wrapped in cache() and returns { items, failed }. The other routes in this PR use it. fetchOrEmpty duplicates that logic, drops the failed flag, and is not deduplicated across the render pass. The homepage therefore cannot distinguish a CMS outage from empty content, which is the distinction the rest of the PR is built around.

♻️ Proposed refactor
 import {
-  client,
   clientsQuery,
+  fetchList,
   servicesQuery,
   testimonialsQuery,
   urlFor,
 } from '`@/lib/sanity`'
 import { PageTransition } from './page-transition'
-
-/* Each fetch reports failure separately so a single outage degrades one section
-   rather than emptying the page. */
-async function fetchOrEmpty(query, label) {
-  try {
-    return await client.fetch(query)
-  } catch (error) {
-    console.error(`Error fetching ${label}:`, error)
-    return []
-  }
-}
-  const [clients, services, testimonials] = await Promise.all([
-    fetchOrEmpty(clientsQuery, 'clients'),
-    fetchOrEmpty(servicesQuery, 'services'),
-    fetchOrEmpty(testimonialsQuery, 'testimonials'),
-  ])
+  const [clientsResult, servicesResult, testimonialsResult] = await Promise.all([
+    fetchList(clientsQuery),
+    fetchList(servicesQuery),
+    fetchList(testimonialsQuery),
+  ])
+  const clients = clientsResult.items
+  const services = servicesResult.items
+  const testimonials = testimonialsResult.items
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/page.js` around lines 12 - 21, Remove the local fetchOrEmpty helper and
update the homepage fetches to reuse fetchList from lib/sanity.js. Preserve each
query’s label and consume the returned { items, failed } values so CMS failures
remain distinguishable from genuinely empty results and requests are
deduplicated.
app/products/[slug]/page.js (1)

256-258: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Use the Sanity _key instead of the array index for CMS-backed lists.

Sanity gives every array member a stable _key. platforms, useCases, and techStack hold primitives, so keying by value works there. features and screenshots hold objects, so _key applies directly. Index keys make React reuse the wrong DOM node when an editor reorders or deletes an entry.

♻️ Proposed refactor for the object arrays
-                {product.features.map((feature, i) => (
-                  <article key={i} className="feature-card">
+                {product.features.map((feature, i) => (
+                  <article key={feature._key || i} className="feature-card">
-                {product.screenshots.map((screenshot, i) => (
-                  <figure key={i} className="shot">
+                {product.screenshots.map((screenshot, i) => (
+                  <figure key={screenshot._key || i} className="shot">

Also applies to: 267-268, 286-287, 297-298, 308-309

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/products/`[slug]/page.js around lines 256 - 258, Replace array-index keys
in the CMS-backed list renderers on the product page. Use each item's Sanity
_key for object arrays such as features and screenshots, and use the primitive
value for platforms, useCases, and techStack; update all affected map callbacks
while preserving their existing labels and rendering.

Source: Linters/SAST tools

app/layout.js (5)

157-157: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

The copyright year is hard-coded.

Line 157 renders © 2026. The value becomes wrong on 1 January. The footer is a server component, so the year can be computed at render time without a hydration mismatch.

♻️ Proposed change
-              <span className="footer-copy">© 2026 AppWeave Labs Pvt Ltd</span>
+              <span className="footer-copy">© {new Date().getFullYear()} AppWeave Labs Pvt Ltd</span>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` at line 157, Update the footer markup in the layout component
to compute the copyright year at render time using the current date instead of
hard-coding 2026. Keep the existing footer-copy styling and surrounding text
unchanged.

225-229: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

The comment names /careers, but the map no longer holds it.

Line 225 states the handler intercepts /services, /clients, and /careers. The map on line 229 holds only /services and /clients. /careers is now a real route. Update the comment.

♻️ Proposed change
-                // Clean URL scroll — intercept /services, /clients, /careers nav clicks
+                // Clean URL scroll — intercept /services and /clients nav clicks
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` around lines 225 - 229, Update the comment above the click
handler to list only the routes actually intercepted by the map in the clean URL
scroll logic, removing the `/careers` reference while leaving the handler
implementation unchanged.

32-32: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Reuse DEFAULT_DESCRIPTION for the meta description.

Line 32 holds a third variant of the description text. The OpenGraph and Twitter blocks use DEFAULT_DESCRIPTION, and the JSON-LD block uses the same wording. The extra phrase ", from MVP to production" appears only in the meta description. Keep one string so the three surfaces stay in step.

♻️ Proposed change
-  description: 'Boutique full-stack development studio. We design, build, and ship AI applications, mobile apps, and data platforms, from MVP to production.',
+  description: DEFAULT_DESCRIPTION,
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` at line 32, Update the meta description in the layout metadata
to reference the existing DEFAULT_DESCRIPTION constant instead of defining an
inline string. Keep the OpenGraph, Twitter, and JSON-LD description values
aligned through this shared constant.

382-446: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Consider moving the inline behaviour script into a real module.

The reveal orchestration is correct: the WeakSet avoids DOM attribute writes that would break hydration, the rescan is throttled to one frame, and the safety net is conditioned on viewport position.

The concern is the container. The inline script in this file now holds roughly 250 lines of JavaScript inside a template literal. That code gets no linting, no syntax checking, no minification, and no source maps, and it ships in the HTML of every page. Only the theme initialization in <head> has to be inline, because it must run before first paint. The menu, scroll, theme-toggle, and reveal blocks all run after DOMContentLoaded, so they can live in a client component or a next/script module with strategy="afterInteractive".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` around lines 382 - 446, Move the post-load behavior currently
embedded in the inline script—including the reveal orchestration around ready,
scan, schedule, and MutationObserver, plus menu, scroll, and theme-toggle
handlers—into a dedicated linted client module or next/script using
afterInteractive. Keep only the pre-paint theme initialization inline, and
preserve the existing reveal behavior, hydration-safe WeakSet bookkeeping, and
navigation rescan behavior.

106-106: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Confirm the skip link moves focus into <main id="main">.

The skip link targets #main. A <main> element is not focusable by default. Chrome and Firefox handle fragment focus for non-focusable targets, but Safari and some assistive technologies move the visual scroll position without moving focus. Adding tabIndex={-1} to each <main id="main"> makes the behavior consistent across browsers.

The id="main" targets live in the page files, so this change spans several routes.

♻️ Proposed change, applied to each page's main element
-      <main id="main" className="section page-offset">
+      <main id="main" tabIndex={-1} className="section page-offset">
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/layout.js` at line 106, Add tabIndex={-1} to every <main id="main">
element across the page components so the existing skip link reliably moves
focus to its target across browsers and assistive technologies. Keep the
skip-link href and main IDs unchanged.
app/about/page.js (2)

25-34: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

The address is duplicated, and the two copies have already drifted.

The comment on lines 25-26 states that the address "stays in step with the PostalAddress in the JSON-LD in layout.js". Nothing enforces that. The two copies are independent literals in two files, and they already differ: this file writes 139 HAL Old Airport Road, while app/layout.js line 90 writes 139 HAL Old Airport Rd inside a concatenated streetAddress.

Export the address from one module and consume it in both places. lib/seo.js already holds shared site constants and would be a reasonable home.

♻️ Sketch of the shared constant
// lib/seo.js
export const ADDRESS = {
  line1: 'Unit 101, Oxford Towers',
  line2: '139 HAL Old Airport Road',
  city: 'Bengaluru',
  region: 'Karnataka',
  postcode: '560008',
  country: 'India',
  countryCode: 'IN',
}
-/* Kept as data so the address is written once and stays in step with the
-   PostalAddress in the JSON-LD in layout.js. */
-const ADDRESS = {
-  line1: 'Unit 101, Oxford Towers',
-  line2: '139 HAL Old Airport Road',
-  city: 'Bengaluru',
-  region: 'Karnataka',
-  postcode: '560008',
-  country: 'India',
-}
+import { ADDRESS } from '`@/lib/seo`'

Then build the JSON-LD PostalAddress in app/layout.js from the same object.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/about/page.js` around lines 25 - 34, Move the ADDRESS constant from
app/about/page.js into lib/seo.js and export it, including the shared
countryCode value. Import and reuse ADDRESS in both app/about/page.js and
app/layout.js, constructing the JSON-LD PostalAddress from its fields so the
street address and other values cannot diverge.

68-70: 📐 Maintainability & Code Quality | 🔵 Trivial

A TODO ships on a public page.

The TODO records missing founding-story, headcount, and milestone content. The reasoning for omitting it is sound. The note will be lost in the source file.

Do you want me to open an issue to track the About page content?

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/about/page.js` around lines 68 - 70, Remove the TODO comment from the
public About page near the omitted founding-story, headcount, and milestone
content. Keep the factual content omission unchanged, and track the missing
content through an issue or other repository-level task instead of leaving the
note in the rendered page source.
app/error.js (1)

5-17: 🩺 Stability & Availability | 🔵 Trivial

Consider reporting the error from the boundary.

The boundary shows error.digest to the visitor but sends the error nowhere. Next.js logs server-side errors on its own, but errors thrown during client rendering stop here. The reference number the visitor reads back will not match any record you hold.

Add a useEffect that forwards error.message and error.digest to your monitoring tool when the boundary mounts.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/error.js` around lines 5 - 17, Update the Error boundary component to add
a mount-time useEffect that forwards error.message and error.digest to the
existing monitoring tool, ensuring client-rendering failures are recorded while
preserving the current user-facing reference display.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.gitignore:
- Around line 18-19: Restore the .dev.vars* entry in .gitignore so local
Cloudflare development variable files remain ignored and cannot appear as
untracked files.

In @.tool-versions:
- Line 1: Update the nodejs entry in .tool-versions from the LTS codename to a
full numeric Node.js version, such as a compatible 22.x patch release, ensuring
it remains supported by Next and the deployment target.

In `@app/api/contact/route.js`:
- Around line 73-79: Add rate limiting before the Sanity mutation in the contact
route’s write flow, applying it to anonymous callers so repeated valid requests
cannot create unbounded contactSubmission documents. If abuse persists, invoke
the route’s bot-verification mechanism before allowing writeClient.create to
proceed, while preserving legitimate submissions.

In `@app/blog/page.js`:
- Around line 3-6: Update the ViewTransition imports in the affected blog and
products page modules to alias React’s stable-compatible unstable_ViewTransition
export as ViewTransition, matching the pinned React 19.2.8 dependencies; do not
switch dependency channels, and leave the existing Next.js Link transitionTypes
usage unchanged.

In `@app/privacy/page.js`:
- Around line 38-40: Update the analytics implementation around the
GoogleAnalytics component in app/layout.js to prevent unconditional GA4 loading,
preferably by rendering it only after explicit visitor consent; alternatively
use a cookieless provider. Then revise the “Cookies and analytics” paragraph in
the privacy page to accurately describe the resulting cookie, identifier, and
personal-data behavior, removing the inaccurate “No personally identifiable
information” claim.

In `@app/robots.js`:
- Line 9: Update the robots configuration in app/robots.js to remove /studio
from the disallow list while retaining /api/ as disallowed. Leave the noindex
metadata in app/studio/layout.js unchanged so crawlers can access /studio and
read its directive.

In `@package.json`:
- Around line 10-13: Update package.json’s prepare script to remove automatic
network-based skill restoration or make it require immutable commit refs and
reject content-hash mismatches; ensure missing refs fail closed. Update
README.md lines 100-104 to document the enforced commit-reference requirement
and hash validation, or the fail-closed behavior if refs are absent.
- Around line 19-31: Update package-lock.json to synchronize it with the
dependency versions declared in package.json, ensuring the resolved
`@types/react`@19.2.18 entry and all related dependency metadata are included so
npm ci succeeds.

In `@sanity/schemas/contactSubmission.js`:
- Around line 6-45: Remove the document-level readOnly setting from the
contactSubmission schema and mark the API-owned fields name, email, company,
budget, message, and submittedAt as read-only individually. Keep handled
editable with its existing readOnly: false configuration.

In `@skills-lock.json`:
- Around line 4-8: Update skills-lock.json at lines 4-8 and every skill record
to include a full immutable commit-SHA ref, then regenerate each computedHash
from that revision. In scripts/restore-skills.mjs lines 149-210, group downloads
by (source, ref), fetch using the locked ref, verify downloaded content in a
staging directory before replacing installed skills, and make --check fail when
verification detects drift.

---

Minor comments:
In `@app/api/contact/route.js`:
- Around line 46-60: Validate the parsed body immediately after request.json()
in POST, returning the existing 400 malformed response unless it is a non-null,
non-array object. Only then access body.honeypot and continue to validate(body).

In `@app/blog/page.js`:
- Around line 52-56: Filter the listing results by valid slugs before rendering
cards: in app/blog/page.js lines 52-56, filter items on post.slug?.current
before destructuring lead and rest; in app/products/page.js lines 78-92, filter
items on product.slug?.current before mapping product cards. This prevents
undefined links and duplicate undefined ViewTransition names.

In `@app/contact/page.js`:
- Around line 210-216: Align the budget value contract between the contact form
and API: in app/contact/page.js lines 210-216, retain only options accepted by
the API; in app/api/contact/route.js line 16, add not-sure to the validation
accepted by the request handler if the “Not sure yet” option remains supported.

In `@app/layout.js`:
- Around line 34-53: Update the openGraph metadata configuration to make
openGraph.url route-relative by using './', matching alternates.canonical. Leave
the existing title, description, siteName, and type values unchanged so routes
without their own openGraph metadata resolve og:url to the current page.
- Around line 218-223: Update the click listener around the internal-link lookup
so it sets has-navigated only for unmodified primary-button clicks that will
actually navigate in the current tab. Exclude modifier-key clicks,
middle/non-primary buttons, and the /services or /clients links handled by the
anchor-scrolling listener, while preserving the existing class addition for
valid navigations.

In `@app/page.js`:
- Around line 240-250: Update the services section heading near bentoTiles.map
and ServiceCard so its wording reflects bentoTiles.length instead of always
claiming four services. Preserve rendering for any non-empty bentoTiles array
and keep the existing section layout and card mapping unchanged.

In `@app/privacy/page.js`:
- Line 29: Update the “Last updated” date in app/privacy/page.js (line 29) and
app/terms/page.js (line 29) to the month this version ships, using the same
value in both documents. Prefer deriving both displays from a single exported
date constant so future revisions require one update.

In `@app/products/page.js`:
- Line 81: The duplicated statusMeta definitions in app/products/page.js (line
81) and app/products/[slug]/page.js (line 116) must be moved into one shared
module. Update both product views to perform a direct lookup that returns
undefined for unknown product.status values, and render each status badge only
when the lookup succeeds; never fall back to the live status.

In `@plans/001-shorten-testimonial-accordion.md`:
- Around line 82-84: Correct the duration explanation in the “dropdowns,
selects: 150–250ms” discussion so it does not claim that 260ms is inside the
band; describe 260ms as slightly above the band due to the panel’s greater
travel distance, or change the duration to 250ms or less while preserving the
intended rationale.

In `@plans/002-shorten-card-hover-surfaces.md`:
- Around line 91-93: Update the timing rationale around the 200ms value to
describe it as within the sub-300ms UI budget and at the upper edge of the
analogous 125–200ms tooltip/popover band, replacing the inaccurate “middle”
characterization.

In `@plans/003-remove-nav-status-pulse.md`:
- Around line 76-80: Update the instructions around the pulse keyframe removal
to perform a complete reference search for every use of “pulse”, including
longhand properties such as animation-name, and inspect each match. Delete the
`@keyframes` pulse block only when no live references remain; otherwise retain it,
and repeat the same comprehensive search to verify the result.

In `@plans/005-page-header-entrances.md`:
- Around line 173-178: Update the mechanical verification bullet in the
page-header plan so the hero-rise grep expectation is consistently 3
occurrences. Remove the contradictory count and retain the explanation
identifying the keyframe, home-page rule, and new header rule.

In `@README.md`:
- Around line 101-103: Update the README text near the repository drift
description to avoid the hardcoded “51 of 74” count; state that skills:check
reports the current drift count, or generate the displayed count from that
command while preserving the existing guidance about pinning entries with a ref
commit SHA.

---

Nitpick comments:
In `@app/about/page.js`:
- Around line 25-34: Move the ADDRESS constant from app/about/page.js into
lib/seo.js and export it, including the shared countryCode value. Import and
reuse ADDRESS in both app/about/page.js and app/layout.js, constructing the
JSON-LD PostalAddress from its fields so the street address and other values
cannot diverge.
- Around line 68-70: Remove the TODO comment from the public About page near the
omitted founding-story, headcount, and milestone content. Keep the factual
content omission unchanged, and track the missing content through an issue or
other repository-level task instead of leaving the note in the rendered page
source.

In `@app/error.js`:
- Around line 5-17: Update the Error boundary component to add a mount-time
useEffect that forwards error.message and error.digest to the existing
monitoring tool, ensuring client-rendering failures are recorded while
preserving the current user-facing reference display.

In `@app/layout.js`:
- Line 157: Update the footer markup in the layout component to compute the
copyright year at render time using the current date instead of hard-coding
2026. Keep the existing footer-copy styling and surrounding text unchanged.
- Around line 225-229: Update the comment above the click handler to list only
the routes actually intercepted by the map in the clean URL scroll logic,
removing the `/careers` reference while leaving the handler implementation
unchanged.
- Line 32: Update the meta description in the layout metadata to reference the
existing DEFAULT_DESCRIPTION constant instead of defining an inline string. Keep
the OpenGraph, Twitter, and JSON-LD description values aligned through this
shared constant.
- Around line 382-446: Move the post-load behavior currently embedded in the
inline script—including the reveal orchestration around ready, scan, schedule,
and MutationObserver, plus menu, scroll, and theme-toggle handlers—into a
dedicated linted client module or next/script using afterInteractive. Keep only
the pre-paint theme initialization inline, and preserve the existing reveal
behavior, hydration-safe WeakSet bookkeeping, and navigation rescan behavior.
- Line 106: Add tabIndex={-1} to every <main id="main"> element across the page
components so the existing skip link reliably moves focus to its target across
browsers and assistive technologies. Keep the skip-link href and main IDs
unchanged.

In `@app/page.js`:
- Around line 12-21: Remove the local fetchOrEmpty helper and update the
homepage fetches to reuse fetchList from lib/sanity.js. Preserve each query’s
label and consume the returned { items, failed } values so CMS failures remain
distinguishable from genuinely empty results and requests are deduplicated.

In `@app/products/`[slug]/page.js:
- Around line 256-258: Replace array-index keys in the CMS-backed list renderers
on the product page. Use each item's Sanity _key for object arrays such as
features and screenshots, and use the primitive value for platforms, useCases,
and techStack; update all affected map callbacks while preserving their existing
labels and rendering.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 336ba1f1-1c3e-4ec6-b4b1-6893968f9877

📥 Commits

Reviewing files that changed from the base of the PR and between 829cb7e and 82710f0.

⛔ Files ignored due to path filters (7)
  • app/icon.svg is excluded by !**/*.svg
  • package-lock.json is excluded by !**/package-lock.json
  • public/fonts/satoshi-400.woff2 is excluded by !**/*.woff2
  • public/fonts/satoshi-500.woff2 is excluded by !**/*.woff2
  • public/fonts/satoshi-700.woff2 is excluded by !**/*.woff2
  • public/fonts/satoshi-900.woff2 is excluded by !**/*.woff2
  • public/logo.svg is excluded by !**/*.svg
📒 Files selected for processing (56)
  • .claude/settings.json
  • .gitignore
  • .tool-versions
  • AGENTS.md
  • CLAUDE.md
  • README.md
  • app/about/page.js
  • app/api/contact/route.js
  • app/blog/[slug]/opengraph-image.js
  • app/blog/[slug]/page.js
  • app/blog/page.js
  • app/careers/page.js
  • app/clients/page.js
  • app/contact/layout.js
  • app/contact/page.js
  • app/error.js
  • app/globals.css
  • app/layout.js
  • app/loading.js
  • app/not-found.js
  • app/og-brand.js
  • app/opengraph-image.js
  • app/page-transition.js
  • app/page.js
  • app/privacy/page.js
  • app/products/[slug]/opengraph-image.js
  • app/products/[slug]/page.js
  • app/products/page.js
  • app/robots.js
  • app/services/page.js
  • app/sitemap.js
  • app/studio/layout.js
  • app/terms/page.js
  • graphify-out/.graphify_labels.json
  • graphify-out/GRAPH_REPORT.md
  • graphify-out/graph.html
  • graphify-out/graph.json
  • graphify-out/manifest.json
  • lib/sanity.js
  • lib/seo.js
  • next.config.js
  • open-next.config.ts
  • package.json
  • plans/001-shorten-testimonial-accordion.md
  • plans/002-shorten-card-hover-surfaces.md
  • plans/003-remove-nav-status-pulse.md
  • plans/004-consolidate-press-feedback-scale.md
  • plans/005-page-header-entrances.md
  • plans/README.md
  • public/robots.txt
  • sanity/schemas/contactSubmission.js
  • sanity/schemas/index.js
  • sanity/schemas/testimonial.js
  • scripts/restore-skills.mjs
  • skills-lock.json
  • wrangler.jsonc
💤 Files with no reviewable changes (4)
  • public/robots.txt
  • app/loading.js
  • wrangler.jsonc
  • open-next.config.ts

Comment thread .gitignore
Comment on lines +18 to +19


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Restore the .dev.vars* ignore rule.

The removed rule exposes local Cloudflare secrets as untracked files. Cloudflare documents .dev.vars as a local-secret file and instructs projects not to commit it. (developers.cloudflare.com)

Proposed fix
+# Cloudflare local secrets
+.dev.vars*
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Cloudflare local secrets
.dev.vars*
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.gitignore around lines 18 - 19, Restore the .dev.vars* entry in .gitignore
so local Cloudflare development variable files remain ignored and cannot appear
as untracked files.

Comment thread .tool-versions
@@ -0,0 +1 @@
nodejs lts-jod

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '1p' .tool-versions
rg -n '"engines"|"next"' package.json 2>/dev/null || true

if command -v asdf >/dev/null; then
  asdf cmd nodejs update-nodebuild
  asdf cmd nodejs resolve lts --latest-available
fi

Repository: appweave-tech/website

Length of output: 200


🌐 Web query:

asdf-nodejs .tool-versions nodejs lts-codename versions.txt format

💡 Result:

In asdf, the.tool-versions file does not support non-deterministic version specifications like LTS codenames (e.g., lts/hydrogen) or partial versions (e.g., 20) [1][2][3]. The plugin enforces this strictly to ensure reproducibility across different environments and over time [1][2][4]. All versions defined in a.tool-versions file must be explicit, absolute version numbers (e.g., 20.18.1) [1][5][4]. If you wish to use LTS codenames or partial versions for Node.js, you must use legacy version files (.nvmrc or.node-version) instead of.tool-versions [1][6][3]. To enable support for these files, you must: 1. Enable legacy version file support by setting legacy_version_file = yes in your $HOME/.asdfrc configuration file [1][2][3]. 2. Optionally, configure how those files are resolved by exporting the ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY environment variable in your shell configuration (e.g., to latest_available or latest_installed) [1][2][7]. While the asdf-nodejs plugin logic (within lib/utils.sh) does contain the capability to resolve LTS codenames to version numbers, this logic is intended for CLI commands and specifically enabled legacy file parsing, not for the standard.tool-versions file format [8][6][9].

Citations:


Pin a numeric Node.js version in .tool-versions.

asdf-nodejs does not support LTS codenames such as lts-jod in .tool-versions. Use an explicit release, for example nodejs 22.<patch> or another full semver compatible with Next and the deployment target.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.tool-versions at line 1, Update the nodejs entry in .tool-versions from the
LTS codename to a full numeric Node.js version, such as a compatible 22.x patch
release, ensuring it remains supported by Next and the deployment target.

Comment thread app/api/contact/route.js
Comment on lines +73 to +79
try {
await writeClient.create({
_type: 'contactSubmission',
...values,
submittedAt: new Date().toISOString(),
handled: false,
})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

Rate-limit anonymous contact writes.

A caller can omit the honeypot field and send valid requests directly to this route. Each request creates a persistent Sanity document. Add rate limiting before the mutation. Add bot verification if the endpoint receives sustained abuse.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/api/contact/route.js` around lines 73 - 79, Add rate limiting before the
Sanity mutation in the contact route’s write flow, applying it to anonymous
callers so repeated valid requests cannot create unbounded contactSubmission
documents. If abuse persists, invoke the route’s bot-verification mechanism
before allowing writeClient.create to proceed, while preserving legitimate
submissions.

Comment thread app/blog/page.js
Comment on lines +3 to +6
import { fetchList, postsQuery, urlFor } from '@/lib/sanity'
import { buildOpenGraph } from '@/lib/seo'
import { PageTransition } from '../page-transition'
import { ViewTransition } from 'react'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Confirm the installed React/Next versions, the exported view-transition symbol, and the Next config flag.
set -euo pipefail

fd -H -t f 'package.json' -d 2 --exec cat {} \; | jq -r '.dependencies, .devDependencies | select(.!=null) | to_entries[] | "\(.key)=\(.value)"' 2>/dev/null | rg -i '^(react|react-dom|next)='

fd -H -t f 'next.config.*' -d 2 --exec cat {} \;

# Which view-transition symbol does the installed react actually export?
fd -t f 'index.js' node_modules/react -d 2 --exec rg -n 'ViewTransition' {} \; || echo "react not installed in sandbox"

# Does next/link accept transitionTypes?
rg -n 'transitionTypes' node_modules/next/dist/client/link* -g '*.d.ts' -g '*.js' || echo "transitionTypes not found in next/link"

Repository: appweave-tech/website

Length of output: 2323


🌐 Web query:

Does React 19.2 export ViewTransition from the react package or only unstable_ViewTransition?

💡 Result:

In React 19.2, the ViewTransition component is not exported as a stable API; it is an experimental feature and is exported from the react package as unstable_ViewTransition [1][2][3]. While documentation might sometimes refer to it simply as ViewTransition for simplicity, it remains behind an experimental or canary flag [1][4]. Developers are required to import it using the unstable_ prefix [5][2][3]: import { unstable_ViewTransition as ViewTransition } from 'react'; The feature is currently intended for use in experimental or canary release channels rather than stable releases [1][4]. Because it is an unstable, experimental API, its naming and availability are subject to change [6][3].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the pinned dependency versions and exact import usage without running repository code.
python3 - <<'PY'
import json, glob
for path in glob.glob('**/package.json', recursive=True):
    with open(path) as f:
        data=json.load(f)
    for section in ('dependencies','devDependencies','peerDependencies'):
        values=data.get(section, {})
        if any(k.lower() in ('react','react-dom','next') for k in values):
            print(path)
            for k in ('dependencies','devDependencies','peerDependencies'):
                vals={kk:v for kk,v in data.get(k,{}).items() if kk.lower() in ('react','react-dom','next')}
                if vals:
                    print(json.dumps(vals, sort_keys=True))
PY

rg -n "from ['\"]react['\"]|transitionTypes|Link" app -g 'page.js' || true

# Static check for package manifest compatibility with the comment:
# React 19.2 stable does not export ViewTransition; it can be imported only as unstable_ViewTransition.
# Next 16.3 docs/inline comments may document no config, but check whether this repo has it present.
python3 - <<'PY'
import re, glob
for p in glob.glob('**/package.json', recursive=True):
    if p.endswith('package.json'):
        import json
        data=json.load(open(p))
        deps={}
        for s in ('dependencies','devDependencies'):
            deps.update(data.get(s,{}))
        for k in ('react','react-dom','next'):
            if k in deps:
                print(f"{p}: {k}={deps[k]}")
PY

Repository: appweave-tech/website

Length of output: 3241


🌐 Web query:

Next.js 16.3 Link transitionTypes prop documentation

💡 Result:

The transitionTypes prop was introduced in Next.js 16.2.0 for the Link component [1][2][3]. ### Purpose and Usage The transitionTypes prop is an array of strings that allows you to specify the types of View Transitions to apply during navigation [4][5][3]. When a navigation occurs, these types are passed to React.addTransitionType, enabling ViewTransition components to apply specific animations based on the context or direction of the navigation (e.g., 'slide-in', 'nav-forward', or 'nav-back') [1][5][3]. Example usage: tsx <Link href="/https/github.com/about" transitionTypes={['slide-in']}> About </Link> ### Key Considerations * App Router Only: This prop is supported exclusively in the App Router [4][3]. Because the Pages Router does not utilize React Transitions for navigation, transitionTypes is ignored there [4][3]. This design allows for shared link components to be used across both routers without modification [4][3]. * Reactive: The prop is reactive; the navigation will use the transition types committed at the moment the link is clicked [6]. * Complementary API: It is intended to work in conjunction with the React ViewTransition component, which maps these transition types to specific CSS or animation behaviors [5]. As of Next.js 16.3, this functionality remains a standard part of the Link API for the App Router [1].

Citations:


🌐 Web query:

React 19.2.8 ViewTransition exported as unstable_ViewTransition documentation

💡 Result:

The ViewTransition component (exported as unstable_ViewTransition) is not available in the stable React 19.2.8 release [1][2]. As of August 2026, it remains an experimental feature restricted to React's Canary and Experimental release channels [3][4]. Key details regarding this feature include: 1. Release Status: The component is gated to experimental channels and is not part of the stable React 19.2.x series [4]. Attempting to import unstable_ViewTransition from the stable React package will result in an undefined binding or a build error [4]. 2. Availability in Frameworks: Some frameworks, such as Next.js, may allow usage of this component by leveraging React Canary builds when the appropriate experimental flags are enabled in the framework's configuration [5][4]. 3. Usage Context: When available, it is imported as { unstable_ViewTransition as ViewTransition } from 'react' [6][7]. The component is designed to wrap parts of the UI to enable declarative animations using the browser's native View Transitions API [7][3]. 4. Requirements: The component only triggers animations for asynchronous state updates (such as those inside startTransition, Suspense reveals, or useDeferredValue) and will not animate standard, synchronous setState updates [3][8][4]. Documentation for this experimental feature can be found within the Canary/Experimental sections of the official React documentation [3]. It is recommended to check the official React release channel policies if you require this feature for production or testing environments [3].

Citations:


Use the stable ViewTransition API or pin an Experimental React build

package.json pins stable react/react-dom to ^19.2.8, where the exported API is unstable_ViewTransition. With ViewTransition imported from react, this renders invalid React elements in app/blog/page.js, app/blog/[slug]/page.js, app/products/page.js, and app/products/[slug]/page.js. Import unstable_ViewTransition as ViewTransition instead, or switch the React dependencies to an Experimental channel if this project is meant to use the experimental API.

Link transitionTypes is supported in Next.js 16.3 for the App Router, so the pinned next=^16.3.0 should not forward it to the DOM <a>.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/blog/page.js` around lines 3 - 6, Update the ViewTransition imports in
the affected blog and products page modules to alias React’s stable-compatible
unstable_ViewTransition export as ViewTransition, matching the pinned React
19.2.8 dependencies; do not switch dependency channels, and leave the existing
Next.js Link transitionTypes usage unchanged.

Comment thread app/privacy/page.js
Comment on lines +38 to +40
<h2>Cookies and analytics</h2>
<p>We use a single localStorage item to remember your theme preference (dark or light mode).</p>
<p>We use Google Analytics (GA4) to understand how visitors interact with our website. This service may use cookies to collect anonymized data such as pages visited, time spent on pages, and referral sources. This data helps us improve our website and services. Google Analytics data is processed in accordance with <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer">Google&apos;s privacy policy</a>. No personally identifiable information is collected through analytics.</p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

The analytics disclosure does not match an unconditional GA4 load.

app/layout.js line 454 renders <GoogleAnalytics gaId="G-1P1R8BM85Z" /> for every visitor with no consent gate. Three problems follow from that:

  1. GA4 always sets the _ga cookie and always assigns a client ID. The text says GA "may use cookies", which understates it.
  2. The client ID is a persistent identifier, and GA4 processes IP addresses for geolocation. Under GDPR both are personal data, so "No personally identifiable information is collected through analytics" is not accurate.
  3. Under the ePrivacy Directive, analytics cookies need prior consent in the EU and the UK. The JSON-LD areaServed in app/layout.js line 85 names GB, DE, and NL, so those visitors are a stated target market.

Either load GoogleAnalytics only after consent, or switch to a cookieless analytics provider, and then align this paragraph with what the site actually does.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/privacy/page.js` around lines 38 - 40, Update the analytics
implementation around the GoogleAnalytics component in app/layout.js to prevent
unconditional GA4 loading, preferably by rendering it only after explicit
visitor consent; alternatively use a cookieless provider. Then revise the
“Cookies and analytics” paragraph in the privacy page to accurately describe the
resulting cookie, identifier, and personal-data behavior, removing the
inaccurate “No personally identifiable information” claim.

Comment thread app/robots.js
rules: {
userAgent: '*',
allow: '/',
disallow: ['/studio', '/api/'],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect installed Next.js guidance and the two conflicting route configurations.
fd -t f . node_modules/next/dist/docs | rg '(metadata|robots|route)' | sort
fd -t f '^generate-agent-files\.js$' node_modules/next/dist/server/lib -x sed -n '1,240p' {}
sed -n '1,120p' app/robots.js
sed -n '1,120p' app/studio/layout.js

Repository: appweave-tech/website

Length of output: 274


🏁 Script executed:

#!/bin/bash
set -u

echo "== repo files relevant =="
git ls-files | rg '(^node_modules/next/dist/docs|^node_modules/next/dist/server/lib/generate-agent-files\.js$|^app/robots\.js$|^app/studio/layout\.js$|package\.json|package-lock\.json|pnpm-lock\.yaml|yarn\.lock|next\.config)' || true

echo
echo "== if node_modules exists, summarize next docs =="
if [ -d node_modules/next/dist/docs ]; then
  fd -t f . node_modules/next/dist/docs | rg '(metadata|robots|route|deprecated|routing|seo|generating-static-pages|static-content|incremental-static-regeneration|app-router|pages-router|image|font)' | sort | sed -n '1,120p'
else
  echo "node_modules/next/dist/docs missing"
fi

echo
echo "== app/robots.js =="
if [ -f app/robots.js ]; then
  cat -n app/robots.js
else
  echo "app/robots.js missing"
fi

echo
echo "== app/studio/layout.js =="
if [ -f app/studio/layout.js ]; then
  cat -n app/studio/layout.js
else
  echo "app/studio/layout.js missing"
fi

echo
echo "== references to studio layout robots / noindex / robots.txt =="
rg -n --glob '!node_modules/**' "robots\.index|noindex|robots\.txt|disallow: |allow: |/studio" .

Repository: appweave-tech/website

Length of output: 50377


🏁 Script executed:

#!/bin/bash
set -u

echo "== package file sizes and relevant snippet =="
wc -l package.json package-lock.json next.config.js app/robots.js app/studio/layout.js app/studio/[[...index]]/page.js
sed -n '1,140p' package.json
sed -n '1,220p' package-lock.json | rg -n '"next"|"version"|"node_modules/next"|dependencies|devDependencies' -C 2 || true

echo
echo "== Next docs presence via grep in checked-out repo =="
rg -n --glob '!node_modules/**' 'robots\.txt|robots\.robots|metadata\.robots|noindex|user-agent|sitemap' . || true

Repository: appweave-tech/website

Length of output: 50378


🌐 Web query:

Next.js metadata robots robots.txt disallow noindex crawlers robots.txt documentation

💡 Result:

In Next.js, controlling how crawlers interact with your site is managed through two distinct mechanisms: the robots.txt file for crawl control and the Metadata API for indexing control [1][2][3]. Robots.txt (Crawl Control) To generate a robots.txt file, use the app/robots.ts or app/robots.js file convention [4][5]. Next.js automatically serves this file at the root of your domain [4][6]. You should use this to tell crawlers which paths they are allowed or disallowed from accessing [4][2]. Example implementation: // app/robots.ts import type { MetadataRoute } from 'next'; export default function robots: MetadataRoute.Robots { return { rules: { userAgent: '*', allow: '/', disallow: ['/api/', '/admin/', '/private/'], // Paths to block }, sitemap: 'https://yourdomain.com/sitemap.xml', }; } Important: Never use robots.txt to "noindex" a page [2][3]. If a page is disallowed in robots.txt, crawlers cannot fetch it to see a "noindex" tag, meaning the page might remain indexed if it was previously discovered through other links [3]. Metadata API (Indexing Control) To prevent specific pages from appearing in search engine results (noindex), use the Metadata API inside your page or layout files [1][2]. This adds the necessary tag to your HTML [7][8]. Example implementation: // app/your-page/page.tsx import type { Metadata } from 'next'; export const metadata: Metadata = { robots: { index: false, follow: true, // You may still want to follow links on the page }, }; Note that when configuring robots in metadata, you should explicitly define both the general robots and googleBot properties if you need specific, differentiated rules for Google [7][8]. Best Practices - Crawl Budget: Do not block critical framework files like /_next/ (which contains your JavaScript and CSS) in your robots.txt, as this prevents Googlebot from rendering your site correctly [1][2][5]. - Environment Safety: Use environment variables in your robots.ts to prevent indexing of non-production environments (e.g., return disallow: '/' for staging) [9][2][5]. - Defense in Depth: For private or sensitive pages, rely on authentication (protecting the route) in addition to "noindex" metadata, as "noindex" is a directive that crawlers can technically choose to ignore [2].

Citations:


Do not block /studio while relying on robots metadata for noindex.

robots.txt controls crawling, while app/studio/layout.js sets page robots noindex. If /studio stays in disallow, crawlers cannot fetch it to read that noindex directive, so externally linked URLs can still appear in search results. Allow /studio and keep the layout metadata.

Proposed fix
-      disallow: ['/studio', '/api/'],
+      disallow: ['/api/'],
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
disallow: ['/studio', '/api/'],
disallow: ['/api/'],
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/robots.js` at line 9, Update the robots configuration in app/robots.js to
remove /studio from the disallow list while retaining /api/ as disallowed. Leave
the noindex metadata in app/studio/layout.js unchanged so crawlers can access
/studio and read its directive.

Source: Coding guidelines

Comment thread package.json
Comment on lines +10 to +13
"studio": "sanity dev --port 3333",
"prepare": "npm run skills:restore -- --soft",
"skills:restore": "node scripts/restore-skills.mjs",
"skills:check": "node scripts/restore-skills.mjs --check"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 4 'prepare|skills:restore|--soft' package.json README.md
rg -n -C 4 'ref|commit|default branch|hash|drift|soft|force|download|clone|fetch' \
  scripts/restore-skills.mjs skills-lock.json

Repository: appweave-tech/website

Length of output: 14636


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== skill lock entries with ref ==="
python3 - <<'PY'
import json
from pathlib import Path
p=Path('skills-lock.json')
data=json.loads(p.read_text())
for name, e in data.items():
    if isinstance(e, dict) and e.get('sourceType') == 'github':
        print(name, {k:e.get(k) for k in ('source','skillPath','ref','computedHash')})
PY

echo "=== next docs dir availability ==="
fd -a . node_modules/next/dist/docs 2>/dev/null | head -20 || true
echo "=== generate-agent-files availability ==="
fd -a 'generate-agent-files.js' node_modules 2>/dev/null | head -20 || true

Repository: appweave-tech/website

Length of output: 272


Pin or remove automatic skill restoration from prepare.

npm install and npm ci run prepare, and this hook calls npm run skills:restore -- --soft. Restoration downloads HEAD because skills-lock.json has no "ref" entries, and it tolerates content-hash drift. This can install changed upstream agent instruction content during normal installs.

  • Change package.json#L11 to require an immutable commit ref or remove network restoration from the npm lifecycle.
  • Update README.md#L100-104 to say missing refs fail closed, or require commit references and reject hash mismatches.
📍 Affects 2 files
  • package.json#L10-L13 (this comment)
  • README.md#L100-L104
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 10 - 13, Update package.json’s prepare script to
remove automatic network-based skill restoration or make it require immutable
commit refs and reject content-hash mismatches; ensure missing refs fail closed.
Update README.md lines 100-104 to document the enforced commit-reference
requirement and hash validation, or the fail-closed behavior if refs are absent.

Source: MCP tools

Comment thread package.json
Comment on lines +19 to +31
"@next/third-parties": "^16.3.0",
"@portabletext/react": "^6.0.2",
"@sanity/client": "^7.14.0",
"@sanity/image-url": "^2.0.3",
"next": "^16.1.4",
"next": "^16.3.0",
"next-sanity": "^12.0.14",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"sanity": "^5.5.0"
"react": "^19.2.8",
"react-dom": "^19.2.8",
"sanity": "^5.5.0",
"styled-components": "^6.5.1"
},
"devDependencies": {
"@next/bundle-analyzer": "^16.2.1",
"@next/bundle-analyzer": "^16.3.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

lockfile="$(git ls-files 'package-lock.json' 'npm-shrinkwrap.json' | head -n 1)"
test -n "$lockfile"

npm ci --ignore-scripts --dry-run --no-audit --no-fund

Repository: appweave-tech/website

Length of output: 3735


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "tracked package-related files:"
git ls-files 'package.json' 'package-lock.json' 'npm-shrinkwrap.json'

echo
echo "package.json dependency snippets:"
python3 - <<'PY'
import json
p=json.load(open('package.json'))
for k in ['dependencies','devDependencies']:
    print(f'[{k}]')
    for name, spec in sorted(p.get(k,{}).items()):
        if name.lower() in ['next','react','react-dom','sanity','next-sanity','`@type/react`','`@types/react`','`@types/react-dom`']:
            print(f'{name}: {spec}')
PY

echo
echo "lockfile entries for `@types/react`:"
python3 - <<'PY'
import subprocess, json
result=subprocess.run(['git','show','HEAD:package-lock.json'], text=True, check=True)
lock=json.loads(result.stdout)
print('lockfile lockfileVersion:', lock.get('lockfileVersion'))
print('top `@types/react` version:', lock.get('packages',{}).get('node_modules/@types/react',{}).get('version'))
for path, pkg in lock.get('packages',{}).items():
    if path.endswith('/@types/react') or path == '`@types/react`':
        print(path, 'version=', pkg.get('version'), 'dependencies=', list((pkg.get('dependencies') or {}).keys())[:10], 'peerDependencies=', list((pkg.get('peerDependencies') or {}).keys())[:10])
if lock.get('packages',{}).get('node_modules/@types/react',{}).get('version') is not None:
    print('`@types/react` present')
else:
    print('`@types/react` absent from packages')
PY

Repository: appweave-tech/website

Length of output: 50377


Synchronize the lockfile with the dependency update.

npm ci fails because package-lock.json does not contain @types/react@19.2.18. Update the lockfile with resolved dependencies included before merging so documented npm ci installs do not break.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 19 - 31, Update package-lock.json to synchronize
it with the dependency versions declared in package.json, ensuring the resolved
`@types/react`@19.2.18 entry and all related dependency metadata are included so
npm ci succeeds.

Source: MCP tools

Comment on lines +6 to +45
readOnly: true,
fields: [
{
name: 'name',
title: 'Name',
type: 'string',
},
{
name: 'email',
title: 'Email',
type: 'string',
},
{
name: 'company',
title: 'Company',
type: 'string',
},
{
name: 'budget',
title: 'Budget range',
type: 'string',
},
{
name: 'message',
title: 'Message',
type: 'text',
rows: 8,
},
{
name: 'submittedAt',
title: 'Submitted at',
type: 'datetime',
},
{
name: 'handled',
title: 'Replied to',
type: 'boolean',
// The one field a human edits, so it escapes the document-level readOnly.
readOnly: false,
initialValue: false,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/sh
set -eu

sed -n '1,70p' sanity/schemas/contactSubmission.js
rg -n -C 3 --glob '*.d.ts' 'DocumentDefinition|readOnly' node_modules/sanity

Repository: appweave-tech/website

Length of output: 1763


🏁 Script executed:

#!/bin/sh
set -eu

echo "== package references =="
if [ -f package.json ]; then
  jq -r '.dependencies | to_entries[] | select(.value|test("sanity|`@sanity/client`")) | "\(.key)=\(.value)"' package.json
  jq -r '.devDependencies | to_entries[] | select(.value|test("sanity|`@sanity/client`")) | "\(.key)=\(.value)"' package.json 2>/dev/null || true
fi

echo "== install lock/package files =="
git ls-files | grep -E '(^|/)(package-lock\.json|pnpm-lock\.yaml|yarn\.lock)$' || true

echo "== search readOnly in repository =="
rg -n -C 3 'readOnly|`@sanity/client`|sanity-client|document-edit|`@sanity/ui`' --glob '!node_modules/**' .

echo "== sanity schema usages =="
for f in $(git ls-files 'sanity/schemas/*.js' 'sanity/**/*.js' 2>/dev/null); do
  echo "--- $f"
  sed -n '1,120p' "$f" | grep -n -E 'readOnly|contactSubmission|DocumentDefinition|client|studio' || true
done

Repository: appweave-tech/website

Length of output: 50378


🌐 Web query:

Sanity Studio document type readOnly true field readOnly false not editable

💡 Result:

In Sanity Studio, the readOnly property can be applied at both the document level and the field level [1][2][3]. When you set readOnly: true on a document schema, the entire document becomes non-editable in the Studio [1][4]. While field-level readOnly properties exist to make individual fields non-editable under specific conditions [2][3], setting the document itself to readOnly: true effectively overrides individual field settings, as the UI is designed to lock the entire document form [1][4]. If you need specific fields to remain editable while others are locked, you should avoid setting readOnly: true on the document level. Instead, use the conditional readOnly property on the individual fields or fieldsets you wish to restrict [2]. Both document and field readOnly properties support static boolean values (true/false) or callback functions for conditional logic [2][3]. If you are encountering unexpected behavior where a document remains non-editable despite a field being set to readOnly: false (or vice-versa), ensure you are not: 1. Using an older version of the Studio that may contain bugs related to document locking states [5]. 2. Relying on external tools or plugins (like AI Assist) that may incorrectly parse or interpret the document-level readOnly function [6]. 3. Intentionally using a custom input component that enforces readOnly at a higher level, which can override schema-level definitions [7]. For advanced use cases where you need more granular control than the schema allows, you can implement custom input components that use React hooks to manage the editable state [7].

Citations:


Make the handled field editable instead of locking the form.

Documents of contactSubmission are non-editable because the document defines readOnly: true. A field-level readOnly: false does not open the handled checkbox. Remove the document-level readOnly setting and lock only the API-owned fields such as name, email, company, budget, message, and submittedAt.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@sanity/schemas/contactSubmission.js` around lines 6 - 45, Remove the
document-level readOnly setting from the contactSubmission schema and mark the
API-owned fields name, email, company, budget, message, and submittedAt as
read-only individually. Keep handled editable with its existing readOnly: false
configuration.

Comment thread skills-lock.json
Comment on lines +4 to +8
"ab-testing": {
"source": "coreyhaines31/marketingskills",
"sourceType": "github",
"skillPath": "skills/ab-testing/SKILL.md",
"computedHash": "c42af0107540e71dfe9605eca51b5100d96730d0bddf51085fc0c9429e40083c"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

Make skill restoration reproducible and fail closed.

The lock does not identify immutable source content, and the restore script installs content even when verification detects drift. This permits mutable upstream repositories to change agent instructions after review.

  • skills-lock.json#L4-L8: add a full commit-SHA ref to every skill record and regenerate computedHash from that revision.
  • scripts/restore-skills.mjs#L149-L210: download by immutable ref, verify content in a staging directory before replacement, fail --check on drift, and group downloads by (source, ref).
📍 Affects 2 files
  • skills-lock.json#L4-L8 (this comment)
  • scripts/restore-skills.mjs#L149-L210
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@skills-lock.json` around lines 4 - 8, Update skills-lock.json at lines 4-8
and every skill record to include a full immutable commit-SHA ref, then
regenerate each computedHash from that revision. In scripts/restore-skills.mjs
lines 149-210, group downloads by (source, ref), fetch using the locked ref,
verify downloaded content in a staging directory before replacing installed
skills, and make --check fail when verification detects drift.

@saurabh73
saurabh73 merged commit e060f5e into dev Aug 9, 2026
2 checks passed
@saurabh73
saurabh73 deleted the feature/agentic-setup branch August 9, 2026 10:55
saurabh73 added a commit that referenced this pull request Aug 9, 2026
* fix(deploy): add wrangler.jsonc and open-next.config.ts for Cloudflare

Cloudflare deploy was failing because the auto-generated WORKER_SELF_REFERENCE
binding pointed at a worker name that did not exist. Commit explicit configs
so the worker name and self-reference both match the existing "website" worker.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Feature/agentic setup (#14)

* feat(site): careers page, motion fixes, route-matched skeletons

Careers
- Replace the /careers redirect stub with a real page mirroring /products:
  section header, .job-grid of job cards, and an empty fallback.
- Remove the duplicated #careers section from the home page along with its now
  dead code (getCareers, typeLabels, careersQuery import).
- Stop the nav script intercepting /careers as a scroll-to-anchor, so the link
  actually navigates. Add /careers to the sitemap.

Motion
- Animate transform instead of gap on .link-inline and .back-link, so hover no
  longer triggers layout.
- Neutralise hover motion under (hover: none)/(pointer: coarse); touch taps no
  longer leave cards and buttons stuck in their lifted state. Exclude
  .nav-active from the underline collapse so the active link keeps its rule.
- Move the skeleton shimmer from background-position to a composited ::after
  transform.
- Narrow the reduced-motion blanket rule: keep colour/opacity feedback at 150ms,
  drop only movement, and give skeletons a non-moving loading pulse.
- Give the mobile menu an interruptible exit instead of display:none.
- Add press feedback to clickable cards; calibrate the hero status pulse.
- Add entry animations for contact-form field errors and status alerts, and
  cross-fade the theme-toggle icons instead of swapping display.

Scroll reveal
- Staggered entrance for the home page's below-fold grids, scoped to
  .services-grid and .client-grid only; content stays visible without JS and
  under reduced motion.
- Rebind on soft navigation. next/link does not re-fire DOMContentLoaded, so a
  revisit rendered fresh grid nodes that CSS hid with nothing observing them.
- Track bound nodes in a WeakSet rather than a data attribute, which was causing
  a React hydration mismatch.

Skeletons
- Add route-matched loading.js for blog, products and careers; the single root
  skeleton promised the wrong column count everywhere and cover images on
  /careers, which has none. Column geometry now matches each real grid.

Copy and consistency
- Remove em-dashes and en-dashes from user-visible strings.
- One label per CTA intent ("Start a project"); trim hero subtext.
- Comma-separate product platforms; align client-card radius with other cards.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* add graphify

* feat(site): about page, view transitions, footer/nav rework, dead-code sweep

Pages and navigation
- Add /about (journey, address, registration details) and link it from the
  top nav and footer. Registration rows with no value are skipped, so the
  GSTIN line stays out until a real number is supplied.
- Replace Services and Clients in the top nav with About. Both routes stay
  live: the hero CTA and the 404 page still link to them.
- Rebuild the footer as two weighted clusters (brand + copyright / socials +
  legal) so it balances at every breakpoint.

Motion
- Add page transitions via React <ViewTransition> and transitionTypes.
  Lateral navigation is strictly sequential rather than a cross-fade: with
  72px display headlines, overlapping snapshots put two of them on top of
  each other. Nav and footer are pinned as persistent chrome.
- Scroll-driven ghost letterforms on the value cards, keyed to a named
  view-timeline (an ancestor with overflow:hidden breaks bare view()).
- Drop the route skeletons; they read as a flash against the transitions.

Platform
- Upgrade to Next 16.3. styled-components is now an explicit dependency
  rather than a pruned peer of sanity.
- Remove the OpenNext and Wrangler config along with the Cloudflare-only
  assumptions in the contact route.
- Allow SVG through next/image, sandboxed and served as an attachment under
  a script-blocking CSP. Client logos are SVG wordmarks and were 400ing.

Cleanup
- Stop fetching Bricolage Grotesque and Instrument Sans. Both were requested
  on every page load but never referenced; sans and display resolve to the
  self-hosted Satoshi. Only the mono face is still fetched.
- Remove careerQuery and careerSlugsQuery: no careers detail route consumes
  them and they are absent from the sitemap.
- Correct three comments that no longer matched the code, including one
  claiming the view-transition recipe was copied unmodified when the lateral
  case had been rewritten, and one describing the Cloudflare runtime.
- Delete a stray screenshot and the orphaned .dev.vars ignore rule.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* build: add skills restore step

The agent skills live in .agents/skills/ with symlinks from .claude/skills/.
Both are gitignored (7.2M of third-party markdown), so a fresh clone has none
of the 74 skills that skills-lock.json records.

scripts/restore-skills.mjs rebuilds both directories from the lock. Skills are
grouped by source repository and each repo is fetched once as a tarball, so a
full restore is six requests and about seven seconds rather than one request
per file. Re-running touches the network only when something is missing, and
rebuilds just the symlinks when .claude/ is lost but .agents/ survives.

Exposed as `npm run skills:restore` and `npm run skills:check`. Deliberately
not wired into npm's prepare lifecycle: it would put a network fetch in the
path of every npm install, and nothing in the site build depends on it.

The lock records a content hash but no commit, so a restore takes whatever is
on each default branch that day; 51 of the 74 already differ from their
recorded hash. The script reports that count rather than treating it as a
failure, and honours an optional per-entry "ref" for pinning a commit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* build: run skills restore from the prepare lifecycle

`npm install` and `npm ci` now restore any missing skills automatically.

prepare invokes the restore with a new --soft flag, which downgrades every
failure path to a warning and exits 0. Skills are developer tooling that
nothing in the site build reads, so an unreachable GitHub should not be able
to fail an install; `npm run skills:restore` still exits non-zero so a
deliberate run reports real failures.

The restore already no-ops when nothing is missing, so a repeat install pays
about a second and makes no network requests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore(ci): audit fix

* fix(seo): restore indexation, per-page metadata, and crawl hygiene

The root layout set an absolute `alternates.canonical`. Next inherits any
metadata field a child does not redefine, so /about, /blog, /products,
/careers, /privacy and /terms every one emitted a canonical pointing at the
homepage, declaring themselves duplicates of it. Resolved with `canonical:
'./'`, which resolves against the current pathname; verified across all eight
routes in a production render.

The same inheritance was serving the homepage og:title and og:url on those six
pages, so every share of a blog or careers link advertised the homepage. Each
route now builds its own Open Graph block through lib/seo.js. That helper
exists because Next replaces `openGraph` wholesale rather than deep-merging it,
so declaring it per page silently drops the image contributed by
app/opengraph-image.js — /contact had already lost its og:image this way.

/blog, /products and /careers are empty by design pre-launch. Rather than hand
-removing them, they noindex themselves and drop out of the sitemap while their
CMS query returns nothing, and reverse automatically on first publish. Both
conditions require the fetch to have succeeded: an outage must not deindex a
page that really has content.

productSlugsQuery lacked the `featured == true` filter that the /products
listing applies, so every unfeatured product would have received an indexable,
sitemap-submitted detail page that nothing linked to. A listing filter and an
indexation filter should not disagree by accident.

Also:
- /services and /clients redirect 308 rather than 307; these consolidations are
  permanent and only a permanent status passes the signal on.
- /studio is noindex via a server layout, the page itself being a Client
  Component. The robots rule was /studio/, which never matched the bare path
  that actually serves the CMS.
- robots.txt moves to app/robots.js so the crawl rules cannot drift from
  sitemap.js.
- Sitemap carries real _updatedAt timestamps; stamping every URL with the build
  time claimed all eight pages changed on every deploy. CMS failures log
  instead of being swallowed by a bare catch.
- JetBrains Mono moves to next/font, removing a render-blocking stylesheet
  request to fonts.googleapis.com from every page.
- Organization schema gains email, foundingDate and a contactPoint with
  areaServed. It stays Organization rather than becoming a LocalBusiness
  subtype: the registered address is in Bengaluru but the market is not, so
  local-pack optimisation would target the wrong audience.
- title.template replaces the brand suffix repeated across seven files.
  Rendered titles are unchanged.
- /privacy and /terms had no description and were inheriting the homepage's.
- Empty-string meta descriptions become undefined, which omits the tag instead
  of shipping a deliberate blank.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant