Skip to content

Commit

Permalink
add frontend todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jun 22, 2024
1 parent 497f8a8 commit 1397f50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ if (rootElement) {
'Could not find #root element! Ensure that index.html has an element with id="root"',
)
}

// kja got Error: "nextEventIdFromLastEvent: 299, nextEventIdFromLastTurn: 297"
// when reverted turn so that mission is "Active" and then clicked next turn

// kja: when local storage `quota exceeded` is reported, then "Reset game" button is disabled. Why?

// kja need to add support to the new backend stuff like displaying all the mission modifiers and results
4 changes: 4 additions & 0 deletions web/test/lib_tests/storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ describe('localStorage tests', () => {
// https://javascript.info/indexeddb
// https://medium.com/@KevinBGreene/type-safe-indexeddb-using-typescript-declarative-schema-and-codegen-8708f16ca374
// https://dev.to/falcosan/indexeddb-in-typescript-1nea

// Proposed approach:
// Save upon not every turn, but upon exit
// Always save and load gzipped stuff.

0 comments on commit 1397f50

Please sign in to comment.