Skip to content

Dev - #578

Merged
aamoghS merged 4 commits into
mainfrom
dev
Nov 6, 2026
Merged

Dev#578
aamoghS merged 4 commits into
mainfrom
dev

Conversation

@aamoghS

@aamoghS aamoghS commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Theme fix on leaving the portal (#576); CDN caching for /team, /bootcamp, /status (#577).


Note

Low Risk
Themed markup cleanup is client-only; cache headers apply only to fixed, cookie-independent paths—stale content risk is bounded by the five-minute max-age.

Overview
Portal theme: When the portal unmounts (e.g. browser back to a marketing page), next-themes used to leave light/dark and color-scheme on <html>. A new ClearThemeOnLeave effect runs cleanup on unmount so marketing pages get their own styling again without a full reload.

Caching: The HTTP caching proxy now treats /bootcamp, /status, and /team like the home page: public, max-age=300, must-revalidate for exact path matches only (not subpaths), so prerendered routes that don’t rely on cookies can be served from the CDN instead of always hitting the origin.

Reviewed by Cursor Bugbot for commit 44000d7. Bugbot is set up for automated code reviews on this repo. Configure here.

aamoghS and others added 4 commits November 5, 2026 23:55
next-themes writes the portal theme onto <html> as a `light` or `dark` class
and an inline color-scheme, and leaves both there when the portal's providers
unmount. Going from the portal back to a marketing page without a reload (the
browser's back button, or a header link) kept the portal's light gray ramp on
the dark site: body text went from #9ca3af to #4c5553 on near-black until the
page was refreshed.

The portal providers now clear both on unmount. Re-entering the portal mounts
next-themes again, which applies the theme as before.
App Hosting puts Cloud CDN in front of Cloud Run, and it already serves the
homepage from cache (Cdn-Cache-Status: hit) because the proxy marks it public.
/team, /bootcamp and /status are prerendered too and revalidate every five
minutes, but they fell through to the no-store default, so every visit went
to the single Cloud Run region instead of an edge near the visitor.

They now get the homepage's header. Exact paths only, so a dynamic page added
under one of them later does not inherit public caching.
…-back

fix(mainweb): drop the portal theme from <html> when leaving the portal
…ages

perf(mainweb): let the CDN cache /team, /bootcamp and /status
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@greptileai

1 similar comment
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@greptileai

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Clears portal theme settings when leaving the portal and allows five-minute public caching for /team, /bootcamp, and /status.

  • Leaving the portal clears its theme from the shared page root.
  • Four public pages now use a five-minute cache.

Reviews (1) · Last reviewed commit: "Merge pull request #577 from DataScience..." · Reviewed by Greptile

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit 44000d7):

https://hacklytics2027--pr-578-r8a0hzen.web.app

(expires Fri, 13 Nov 2026 14:07:22 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c48ba34db61581e25fe2978355160b5eefe0e83f

@aamoghS
aamoghS merged commit 6e90efe into main Nov 6, 2026
17 checks passed
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