From 9b767cc35e3f9cdd307270f6ee05090cc81e18b8 Mon Sep 17 00:00:00 2001
From: Armaan Jain <84474476+Developing-Gamer@users.noreply.github.com>
Date: Fri, 12 Jun 2026 16:37:05 -0700
Subject: [PATCH] Implement loading state for purchase page and enhance styling
(#1586)
---
## Summary by cubic
Adds a skeleton loading state for the purchase flow and scopes
background styles to stop the first-paint flash across purchase views.
Improves perceived performance and keeps light/dark backgrounds
consistent.
- **New Features**
- Added skeleton `loading.tsx` for `/purchase/[code]` with responsive
placeholders.
- **Bug Fixes**
- Scoped `body` background with `:has([data-hexclave-purchase-page])`
for light/dark, and disabled `body::before` to prevent flash.
- Applied `data-hexclave-purchase-page` to the purchase page (including
invalid-code state) and return page to activate the scoped styles.
Written for commit 280eab0a5fbbbaa2369664c03345c21490c51819.
Summary will update on new commits.