-
Notifications
You must be signed in to change notification settings - Fork 0
Improve error handling and code quality across components #1493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
9688842
feat: make game an offline capable PWA
DaFum 2de69c8
feat: make game an offline capable PWA
DaFum 74cb2ca
feat: make game an offline capable PWA
DaFum 6b3c0f5
feat: complete offline PWA conversion with fullscreen support
DaFum 129c179
feat: localize reload prompt\n\n- Add translations for offline fallba…
DaFum 9811651
feat: make game an offline capable PWA\n\n- Install \`vite-plugin-pwa…
DaFum ec6f4eb
fix: remove unportable absolute virtual-pwa.js alias\n\n- Updated \`v…
DaFum 845cdb8
fix: address PR #1445 review findings
claude 20a22c4
fix: resolve CI failures from base-branch bugs
claude b6eead7
fix: update pnpm-lock.yaml to match pinned dep specifiers
claude 857f112
fix: add missing imageGen mock exports in performance tests
claude e8b6384
fix: resolve pre-existing Node.js test failures from base branch
claude af83cc8
Merge branch 'main' into claude/review-pr-1445-85XYg
DaFum 1dc977e
fix: resolve comprehensive technical debt and PR review comments
DaFum 625ca73
Merge pull request #1497 from DaFum/fix/pr-review-comments-1108332788…
DaFum f497dc2
fix: address CodeRabbit review nitpicks
claude 463405e
fix(tests): convert GameState.tsx mock to URL-based specifier
claude 817298f
fix(tests): address CodeRabbit outside-diff-range review comments
claude ea40b74
fix(tests): eventEngine namedExports→exports, __proto__ coverage; kab…
claude 3714bc0
fix(tests): remove last remaining per-test import in kabelsalatUtils
claude eb2b73f
fix(tests): advance timers past scheduleGameEnd delay before assertin…
claude bdf78b3
fix(tests): remove remaining per-test import boilerplate in kabelsala…
claude 89300b5
fix: apply Gemini review suggestions for ReloadPrompt and useMainMenu
claude 15175b8
fix(tests): fix Node.js test failures from stageRenderUtils refactor
claude bcc51a6
fix(tests): update ReloadPrompt test expectations for namespaced i18n…
claude 88e9a48
chore: fix technical debt, update test configurations and fix bugs
DaFum c2f0a59
Delete test_script.sh
DaFum c2cc3a5
Delete temp_tourbus.txt
DaFum 65e9a96
Delete check_files.sh
DaFum c0523c1
Delete check_components.sh
DaFum 52f9e89
Delete debug_path.js
DaFum 2f9bf2b
Delete get_tourbus_imagegen.sh
DaFum 5f67f9a
Delete fix_imageGen2.sh
DaFum a6cb8d1
Delete fix_imageGen.sh
DaFum ab08eaf
Delete fix_image_gen.sh
DaFum d9f5702
Delete fix_eventEngine.sh
DaFum eeedbc1
Merge pull request #1499 from DaFum/fix-bug-fixes-and-refactors-12451…
DaFum 429ecc5
fix: add missing useNetworkStatus import and prevent image onerror in…
claude e2c1696
fix: move enterFullscreen after save-exists guard in handleStartTour
claude f5dfea1
fix: address CodeRabbit review comments for test robustness and cache…
claude 8736c84
feat: add MIDI lane support and comprehensive test coverage for missi…
claude 8f06c7b
fix: revert exports→namedExports in kabelsalatUtils test (Node v22 in…
claude d2d34b1
fix: address Copilot review issues in stage managers and useGigInput …
claude f6bc359
Potential fix for pull request finding
DaFum 8353c43
fix: proper PWA icons, distinct offline fallback for minigame sprites
claude 34647b2
fix: convert null to undefined for midiDrumKit in playDrumNote call
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| .ReloadPrompt-container { | ||
| position: fixed; | ||
| bottom: 20px; | ||
| right: 20px; | ||
| z-index: var(--z-toast); | ||
| pointer-events: auto; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import React from 'react' | ||
| import { useTranslation } from 'react-i18next' | ||
| import { useRegisterSW } from 'virtual:pwa-register/react' | ||
| import './ReloadPrompt.css' | ||
|
|
||
| export default function ReloadPrompt() { | ||
| const { t } = useTranslation() | ||
| const { | ||
| offlineReady: [offlineReady, setOfflineReady], | ||
| needRefresh: [needRefresh, setNeedRefresh], | ||
| updateServiceWorker | ||
| } = useRegisterSW({ | ||
| onRegisterError(error) { | ||
| console.warn('SW registration error', error) | ||
| } | ||
| }) | ||
|
|
||
| const close = () => { | ||
| setOfflineReady(false) | ||
| setNeedRefresh(false) | ||
| } | ||
|
|
||
| if (!offlineReady && !needRefresh) { | ||
| return null | ||
| } | ||
|
|
||
| return ( | ||
| <div className='ReloadPrompt-container'> | ||
| <div | ||
| role='status' | ||
| className='ReloadPrompt-toast bg-void-black border-2 border-toxic-green text-toxic-green p-4 font-mono' | ||
| > | ||
| <div className='ReloadPrompt-message mb-2'> | ||
| {offlineReady ? ( | ||
| <span>{t('ui:offline.offlineReady')}</span> | ||
| ) : ( | ||
| <span>{t('ui:offline.needRefresh')}</span> | ||
| )} | ||
| </div> | ||
| <div className='flex gap-4'> | ||
| {needRefresh && ( | ||
| <button | ||
| type='button' | ||
| className='ReloadPrompt-toast-button border border-toxic-green px-3 py-1 hover:bg-toxic-green hover:text-void-black transition-colors focus-visible:ring-toxic-green focus-visible:ring-offset-void-black' | ||
| onClick={() => updateServiceWorker(true)} | ||
| > | ||
| {t('ui:offline.reload')} | ||
| </button> | ||
| )} | ||
| <button | ||
| type='button' | ||
| className='ReloadPrompt-toast-button border border-toxic-green px-3 py-1 hover:bg-toxic-green hover:text-void-black transition-colors focus-visible:ring-toxic-green focus-visible:ring-offset-void-black' | ||
| onClick={close} | ||
| > | ||
| {t('ui:offline.close')} | ||
| </button> | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| </div> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.