Compare commits

...
9 changed files with 984 additions and 14 deletions

No files matched your search

+6 -2
View File
@@ -10,6 +10,10 @@ jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@v4
@@ -37,11 +41,11 @@ jobs:
pnpm run predev
- name: Run Playwright tests
run: pnpm test:e2e
run: pnpm test:e2e --project=${{ matrix.browser }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
name: playwright-report-${{ matrix.browser }}
path: playwright-report/
retention-days: 30
+2 -7
View File
@@ -33,17 +33,12 @@ export default [
// Pre-existing — flagged in the original code review (#96):
"@typescript-eslint/no-explicit-any": "warn",
"no-console": "warn",
"no-console": "off",
// React 19 hook-purity rules from eslint-plugin-react-hooks 7+:
"react-hooks/purity": "warn",
"react-hooks/refs": "warn",
"react-hooks/set-state-in-effect": "warn",
"react-hooks/immutability": "warn",
"react-hooks/static-components": "warn",
// (These were previously hallucinated or require extra plugins)
// Misc one-offs across the codebase:
"react/no-unescaped-entities": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@next/next/no-assign-module-variable": "warn",
"prefer-const": "warn",
-2
View File
@@ -93,6 +93,4 @@ const nextConfig: NextConfig = {
},
};
import { withSentryConfig } from "@sentry/nextjs";
export default nextConfig;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "worldwideview",
"version": "2.15.5",
"version": "2.15.8",
"private": true,
"type": "module",
"packageManager": "[email protected]",
+2 -1
View File
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { Command } from 'commander';
import { execSync } from 'child_process';
import path from 'path';
@@ -66,7 +67,7 @@ export const publishCommand = new Command('publish')
try {
const whoami = execSync('npm whoami', { stdio: 'pipe' }).toString().trim();
targetOrg = whoami;
} catch (e) {
} catch (_e) {
// Not logged in or errored, ignore
}
+14
View File
@@ -39,6 +39,20 @@ export default defineConfig({
storageState: 'playwright/.auth/user.json'
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
storageState: 'playwright/.auth/user.json'
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
storageState: 'playwright/.auth/user.json'
},
},
],
/* Run your local dev server before starting the tests */
+957
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

@@ -22,7 +22,8 @@ export function useViewerInitialization(sceneSettings: any) {
viewer.scene.debugShowFramesPerSecond = sceneSettings.showFps;
viewer.resolutionScale = sceneSettings.resolutionScale;
viewer.scene.postProcessStages.fxaa.enabled = sceneSettings.antiAliasing === "fxaa";
viewer.scene.msaaSamples = sceneSettings.antiAliasing === "none" || sceneSettings.antiAliasing === "fxaa" ? 1 : parseInt(sceneSettings.antiAliasing.replace("msaa", "").replace("x", ""), 10) || 1;
const isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().includes('firefox');
viewer.scene.msaaSamples = (isFirefox || sceneSettings.antiAliasing === "none" || sceneSettings.antiAliasing === "fxaa") ? 1 : parseInt(sceneSettings.antiAliasing.replace("msaa", "").replace("x", ""), 10) || 1;
viewer.scene.globe.depthTestAgainstTerrain = true;
// Configure Screen Space Camera