Skip to content

Commit 11a67e0

Browse files
author
Faxbot Agent
committed
feat(ui): add hydration banner to index.html; auto-hide after React mount to verify hydration path
1 parent 9c97f0a commit 11a67e0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

api/admin_ui/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
</script>
2626
</head>
2727
<body>
28+
<div id="hydration-banner" style="position:fixed;top:0;left:0;right:0;z-index:99999;padding:8px 12px;background:#111;color:#fff;font-family:Inter,system-ui,Arial,sans-serif;font-size:14px;text-align:center;">
29+
Admin Console is loading…
30+
</div>
2831
<div id="root"></div>
2932
<script type="module" src="/src/main.tsx"></script>
3033
</body>

api/admin_ui/src/App.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,3 +876,10 @@ function App() {
876876
}
877877

878878
export default App;
879+
// Hide hydration banner on successful React mount
880+
useEffect(() => {
881+
const el = document.getElementById('hydration-banner');
882+
if (el) {
883+
el.style.display = 'none';
884+
}
885+
}, []);

0 commit comments

Comments
 (0)