Skip to content

Update dependencies and enhance layout components - #31

Merged
carhartlewis merged 2 commits into
mainfrom
lewis/instant-nav
Aug 5, 2026
Merged

Update dependencies and enhance layout components#31
carhartlewis merged 2 commits into
mainfrom
lewis/instant-nav

Conversation

@carhartlewis

@carhartlewis carhartlewis commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
  • Upgraded Next.js from version 16.2.12 to 16.3.0 for improved performance and features.
  • Added new fallback components for Suspense in various sections to enhance user experience during loading states.
  • Refactored layout components to utilize Suspense for better handling of asynchronous data fetching.
  • Introduced new optional dependencies for image processing and updated existing ones to their latest versions.
  • Improved error handling in layout components to ensure smoother navigation and user experience.

Summary by cubic

Upgrade to next 16.3 and move the app to Suspense-first rendering with lightweight fallbacks and proactive prefetching to make navigation feel instant. Also refresh loading visuals and reduce blocking fetch work.

  • Refactors

    • Wrapped key layout and pages with Suspense and fallbacks (header, icon rail, settings sidebar, overview, list tables, create-sheet triggers).
    • Moved server prefetch into async child components; kept top-level routes synchronous for faster first paint.
    • Added hover/focus data prefetch for CRM sections and enabled prefetch on Link; introduced PageShellLoading, a new SVG spinner, and list search-param defaults to support prefetch.
    • Enabled Next 16.3 features: cacheComponents and partialPrefetching; call connection() in route handlers for better streaming.
    • Marked non-instant routes with export const instant = false; improved error flow with unstable_rethrow.
    • Generate Next route types before type checking to fix clean-checkout builds (typegen script; check-types depends on it).
  • Dependencies

    • Bumped next to 16.3.0.
    • Added optional image tooling (sharp and platform variants).

Written for commit 03d4069. Summary will update on new commits.

Review in cubic

- Upgraded Next.js from version 16.2.12 to 16.3.0 for improved performance and features.
- Added new fallback components for Suspense in various sections to enhance user experience during loading states.
- Refactored layout components to utilize Suspense for better handling of asynchronous data fetching.
- Introduced new optional dependencies for image processing and updated existing ones to their latest versions.
- Improved error handling in layout components to ensure smoother navigation and user experience.
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crm-agent Ready Ready Preview Aug 5, 2026 2:29am
crm-api Ready Ready Preview Aug 5, 2026 2:29am
crm-app Ready Ready Preview Aug 5, 2026 2:29am

Request Review

PageProps and LayoutProps are globals Next writes into .next/types, and
next-env.d.ts is gitignored — so a clean checkout has neither and tsc
fails with TS2304 on every page that uses them. It passed locally only
because a build had already run.

check-types now depends on a typegen task, the same shape apps/api uses
for trpc:generate.
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.

2 participants