Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions teams/team-pasta/ClueConnect/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 parth.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
49 changes: 49 additions & 0 deletions teams/team-pasta/ClueConnect/build_error.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

> crimesimulator@0.0.0 build
> vite build

vite v8.0.5 building client environment for production...
transforming...✓ 2146 modules transformed.
✗ Build failed in 1.02s
error during build:
Build failed with 2 errors:

[plugin vite:css] C:/Users/moret/CrimeSimulator/src/leaderboard.css
Failed to load PostCSS config: Failed to load PostCSS config (searchPath: C:/Users/moret/CrimeSimulator): [Error] Loading PostCSS Plugin failed: Cannot find module 'autoprefixer'
Require stack:
- C:\Users\moret\CrimeSimulator\postcss.config.js

(@C:\Users\moret\CrimeSimulator\postcss.config.js)
Error: Loading PostCSS Plugin failed: Cannot find module 'autoprefixer'
Require stack:
- C:\Users\moret\CrimeSimulator\postcss.config.js

(@C:\Users\moret\CrimeSimulator\postcss.config.js)
at load (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:19609:10)
at async Promise.all (index 1)
at async plugins (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:19631:11)
at async processResult (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:19669:13)
[plugin vite:css] C:/Users/moret/CrimeSimulator/src/leaderboard.css
Failed to load PostCSS config: Failed to load PostCSS config (searchPath: C:/Users/moret/CrimeSimulator): [Error] Loading PostCSS Plugin failed: Cannot find module 'autoprefixer'
Require stack:
- C:\Users\moret\CrimeSimulator\postcss.config.js

(@C:\Users\moret\CrimeSimulator\postcss.config.js)
Error: Loading PostCSS Plugin failed: Cannot find module 'autoprefixer'
Require stack:
- C:\Users\moret\CrimeSimulator\postcss.config.js

(@C:\Users\moret\CrimeSimulator\postcss.config.js)
at load (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:19609:10)
at async Promise.all (index 1)
at async plugins (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:19631:11)
at async processResult (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:19669:13)
at aggregateBindingErrorsIntoJsError (file:///C:/Users/moret/CrimeSimulator/node_modules/rolldown/dist/shared/error-BLhcSyeg.mjs:48:18)
at unwrapBindingResult (file:///C:/Users/moret/CrimeSimulator/node_modules/rolldown/dist/shared/error-BLhcSyeg.mjs:18:128)
at #build (file:///C:/Users/moret/CrimeSimulator/node_modules/rolldown/dist/shared/rolldown-build-CPrIX9V6.mjs:3313:34)
at async buildEnvironment (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:32939:64)
at async Object.build (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:33361:19)
at async Object.buildApp (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/chunks/node.js:33358:153)
at async CAC.<anonymous> (file:///C:/Users/moret/CrimeSimulator/node_modules/vite/dist/node/cli.js:778:3) {
errors: [Getter/Setter]
}
Expand Down
26 changes: 26 additions & 0 deletions teams/team-pasta/ClueConnect/check_console.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import puppeteer from 'puppeteer';

(async () => {
const browser = await puppeteer.launch({ headless: 'new' });
const page = await browser.newPage();

page.on('console', msg => {
if (msg.type() === 'error') {
console.log('BROWSER_ERROR:', msg.text());
}
});

page.on('pageerror', error => {
console.log('PAGE_ERROR:', error.message);
});

console.log('Navigating to http://localhost:5173...');
try {
await page.goto('http://localhost:5173', { waitUntil: 'networkidle0', timeout: 10000 });
} catch (e) {
console.log('Navigation ended:', e.message);
}

await new Promise(r => setTimeout(r, 2000));
await browser.close();
})();
29 changes: 29 additions & 0 deletions teams/team-pasta/ClueConnect/debug_browser.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const puppeteer = require('puppeteer');

(async () => {
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();

page.on('console', msg => console.log('BROWSER LOG:', msg.type(), msg.text()));
page.on('pageerror', err => console.log('BROWSER ERROR:', err.toString()));
page.on('response', response => {
if (!response.ok()) {
console.log('BROWSER NETWORK ERROR:', response.url(), response.status());
}
});

try {
await page.goto('http://localhost:5173/', { waitUntil: 'networkidle2', timeout: 10000 });
console.log('Page loaded successfully');
const html = await page.content();
if (html.includes('Auth')) {
console.log('Auth component found in HTML');
} else {
console.log('Auth component NOT found. Body:', await page.evaluate(() => document.body.innerHTML));
}
} catch (err) {
console.error('Puppeteer navigation error:', err.message);
}

await browser.close();
})();
29 changes: 29 additions & 0 deletions teams/team-pasta/ClueConnect/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{js,jsx}'],
extends: [
js.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
rules: {
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
},
},
])
134 changes: 134 additions & 0 deletions teams/team-pasta/ClueConnect/eslint_out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@

C:\Users\moret\CrimeSimulator\src\App.jsx
2:27 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\Auth.jsx
1:38 error 'useRef' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
75:28 error 'Icon' is defined but never used no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\CaseOverview.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\DecisionModal.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\EvidenceBoardCanvas.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
12:5 error 'discoveredEvidenceIds' is assigned a value but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
15:5 error 'addEvidenceToBoard' is assigned a value but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
44:5 error Compilation Skipped: Existing memoization could not be preserved

React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. The inferred dependencies did not match the manually specified dependencies, which could cause the value to change more or less frequently than expected. The inferred dependency was `getBoardPos`, but the source dependencies were [draggingId, dragOffset, zoom]. Inferred different dependency than source.

42 |
43 | const onMouseMove = useCallback(
> 44 | (e) => {
| ^^^^^^^^
> 45 | const pos = getBoardPos(e.clientX, e.clientY);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 46 | setMousePos(pos);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 54 | }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 55 | },
| ^^^^^^ Could not preserve existing manual memoization
56 | [draggingId, dragOffset, zoom]
57 | );
58 | react-hooks/preserve-manual-memoization
44:5 error Compilation Skipped: Existing memoization could not be preserved

React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. The inferred dependencies did not match the manually specified dependencies, which could cause the value to change more or less frequently than expected. The inferred dependency was `updateBoardItemPosition`, but the source dependencies were [draggingId, dragOffset, zoom]. Inferred different dependency than source.

42 |
43 | const onMouseMove = useCallback(
> 44 | (e) => {
| ^^^^^^^^
> 45 | const pos = getBoardPos(e.clientX, e.clientY);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 46 | setMousePos(pos);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 54 | }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 55 | },
| ^^^^^^ Could not preserve existing manual memoization
56 | [draggingId, dragOffset, zoom]
57 | );
58 | react-hooks/preserve-manual-memoization
56:5 warning React Hook useCallback has missing dependencies: 'getBoardPos' and 'updateBoardItemPosition'. Either include them or remove the dependency array react-hooks/exhaustive-deps

C:\Users\moret\CrimeSimulator\src\components\EvidenceHub.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\ProfileBadge.jsx
4:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\ResultsScreen.jsx
1:17 error 'useEffect' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
35:29 error Error: Cannot call impure function during render

`Math.random` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component happens to re-render. (https://react.dev/reference/rules/components-and-hooks-must-be-pure#components-and-hooks-must-be-idempotent).

33 | className={`particle-dot ${isCorrect ? 'particle-correct' : 'particle-wrong'}`}
34 | style={{
> 35 | left: `${20 + Math.random() * 60}%`,
| ^^^^^^^^^^^^^ Cannot call impure function
36 | top: `${20 + Math.random() * 60}%`,
37 | }}
38 | animate={{ react-hooks/purity
36:29 error Error: Cannot call impure function during render

`Math.random` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component happens to re-render. (https://react.dev/reference/rules/components-and-hooks-must-be-pure#components-and-hooks-must-be-idempotent).

34 | style={{
35 | left: `${20 + Math.random() * 60}%`,
> 36 | top: `${20 + Math.random() * 60}%`,
| ^^^^^^^^^^^^^ Cannot call impure function
37 | }}
38 | animate={{
39 | y: [0, -100, -200], react-hooks/purity

C:\Users\moret\CrimeSimulator\src\components\Shared\Button.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\Shared\Card.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\Shared\Loading.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\Shared\ProgressBar.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\Shared\Timer.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\SuspectPanel.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\guide\GuideCharacter.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\components\guide\GuideDialog.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
31:6 warning React Hook useEffect has a missing dependency: 'setTyping'. Either include it or remove the dependency array react-hooks/exhaustive-deps

C:\Users\moret\CrimeSimulator\src\pages\GamePage.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\pages\HomePage.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
2:18 error 'useScroll' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
34:6 warning React Hook useEffect has missing dependencies: 'x' and 'y'. Either include them or remove the dependency array react-hooks/exhaustive-deps

C:\Users\moret\CrimeSimulator\src\pages\LeaderboardPage.jsx
2:10 error 'motion' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars

C:\Users\moret\CrimeSimulator\src\utils\scoring.js
6:3 error 'totalEvidence' is assigned a value but never used no-unused-vars

✖ 33 problems (30 errors, 3 warnings)

Binary file added teams/team-pasta/ClueConnect/eslint_report.json
Binary file not shown.
Loading