Add responsive game filters and hybrid toolbox drawer
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
This commit is contained in:
parent
1ee460b94f
commit
00e73f0062
32 changed files with 1202 additions and 241 deletions
|
|
@ -8,6 +8,8 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
const source = await readFile("website/src/main.jsx", "utf8");
|
||||
const gameFiltersHook = await readFile("website/src/hooks/useGameFilters.js", "utf8");
|
||||
const shell = await readFile("website/src/components/Shell.jsx", "utf8");
|
||||
const toolboxPages = await readFile("website/src/features/toolboxes/ToolboxPages.jsx", "utf8");
|
||||
const importButton = await readFile("website/src/components/ImportButton.jsx", "utf8");
|
||||
const overlays = await readFile("website/src/components/AppOverlays.jsx", "utf8");
|
||||
const imageViewer = await readFile("website/src/components/ImageViewer.jsx", "utf8");
|
||||
const homePage = await readFile("website/src/pages/HomePage.jsx", "utf8");
|
||||
|
|
@ -26,6 +28,15 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
assert.match(shell, /sidebar-about-link/);
|
||||
assert.match(shell, /dragon-sidebar\.png/);
|
||||
assert.match(shell, /ImportButton/);
|
||||
assert.match(shell, /compactSidebar/);
|
||||
assert.match(shell, /compactSidebar = Boolean\(drawerGameId\)/);
|
||||
assert.doesNotMatch(shell, /import\.meta\.env\.DEV \|\| Boolean\(drawerGameId\)/);
|
||||
assert.match(shell, /data-variant=\{compactSidebar \? "compact"/);
|
||||
assert.match(shell, /toolbox-drawer-open/);
|
||||
assert.match(shell, /position="right"/);
|
||||
assert.match(importButton, /tooltipPosition/);
|
||||
assert.match(toolboxPages, /DRAWER_INITIAL_WIDTH = 700/);
|
||||
assert.doesNotMatch(toolboxPages, /drawerWidth|dbGetSetting|dbSetSetting/);
|
||||
assert.match(overlays, /\.\/ImageViewer\.jsx/);
|
||||
assert.match(overlays, /uid\("marker"\)/);
|
||||
assert.match(imageViewer, /export function ImageViewer/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue