Skip to content

Commit 0d6b895

Browse files
committed
test(logger): add browser verification harness
1 parent f44fd1c commit 0d6b895

4 files changed

Lines changed: 607 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"lint": "yarn prettier -c packages/*/src/**/*",
2929
"start": "cd examples/basic && yarn start",
3030
"test": "lerna run test",
31+
"verify:logger:browser": "node ./scripts/verify-logger-storage-browser.mjs",
3132
"watch": "lerna run watch",
3233
"pre:publish": "lerna run pre:publish",
3334
"update:version": "lerna version --amend --no-git-tag-version",
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>MFE Logger Verification</title>
7+
<style>
8+
:root {
9+
color-scheme: light;
10+
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
11+
background:
12+
radial-gradient(circle at top right, rgba(255, 197, 120, 0.38), transparent 35%),
13+
linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
14+
color: #162033;
15+
}
16+
17+
body {
18+
margin: 0;
19+
padding: 32px;
20+
}
21+
22+
main {
23+
max-width: 1200px;
24+
margin: 0 auto;
25+
}
26+
27+
h1 {
28+
margin: 0 0 12px;
29+
font-size: 30px;
30+
}
31+
32+
p {
33+
margin: 0 0 24px;
34+
max-width: 72ch;
35+
line-height: 1.5;
36+
}
37+
38+
.status {
39+
display: inline-flex;
40+
align-items: center;
41+
gap: 8px;
42+
padding: 8px 14px;
43+
border-radius: 999px;
44+
font-weight: 700;
45+
background: #e8eefb;
46+
color: #1947b7;
47+
margin-bottom: 24px;
48+
}
49+
50+
.grid {
51+
display: grid;
52+
gap: 16px;
53+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
54+
}
55+
56+
.card {
57+
border: 1px solid rgba(22, 32, 51, 0.12);
58+
border-radius: 20px;
59+
padding: 20px;
60+
background: rgba(255, 255, 255, 0.86);
61+
box-shadow: 0 18px 50px rgba(22, 32, 51, 0.08);
62+
}
63+
64+
.card h2 {
65+
margin: 0 0 12px;
66+
font-size: 18px;
67+
}
68+
69+
.badge {
70+
display: inline-block;
71+
border-radius: 999px;
72+
padding: 4px 10px;
73+
font-size: 12px;
74+
font-weight: 700;
75+
letter-spacing: 0.05em;
76+
text-transform: uppercase;
77+
}
78+
79+
.badge.pass {
80+
background: #dff6df;
81+
color: #176c1c;
82+
}
83+
84+
.badge.fail {
85+
background: #fde4e2;
86+
color: #ac2f2a;
87+
}
88+
89+
pre {
90+
margin: 16px 0 0;
91+
padding: 16px;
92+
overflow: auto;
93+
border-radius: 14px;
94+
background: #0f1726;
95+
color: #dbeafe;
96+
font-size: 12px;
97+
line-height: 1.5;
98+
}
99+
</style>
100+
</head>
101+
<body>
102+
<main>
103+
<div class="status" id="status">Running checks...</div>
104+
<h1>MFE Logger Browser Verification</h1>
105+
<p>
106+
This page compares published <code>0.4.19</code> with the current local
107+
package from the repo. It verifies the original storage collision bug and
108+
also probes the current implementation for high-contention limits.
109+
</p>
110+
<section class="grid" id="results"></section>
111+
</main>
112+
<script type="module" src="/main.js"></script>
113+
</body>
114+
</html>

0 commit comments

Comments
 (0)