-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix back navigation bugs
- Loading branch information
Showing
18 changed files
with
127 additions
and
91 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
import { RequestStore } from "../lib/mobx-request/request-store.ts"; | ||
import { cardInputModeListRequest } from "./api.ts"; | ||
|
||
export const createCachedCardInputModesRequest = () => { | ||
return new RequestStore(cardInputModeListRequest, { | ||
cacheId: "cardInputModeList", | ||
}); | ||
}; |
2 changes: 1 addition & 1 deletion
2
src/screens/ai-mass-creation/store/ai-mass-creation-store.test.ts
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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,31 @@ | ||
import { expect, test } from "vitest"; | ||
import { ScreenStore } from "./screen-store.ts"; | ||
|
||
test("screen store - push", () => { | ||
const store = new ScreenStore(); | ||
expect(store.screen).toEqual({ type: "main" }); | ||
store.go({ type: "plans" }); | ||
expect(store.screen).toEqual({ type: "plans" }); | ||
store.back(); | ||
expect(store.screen).toEqual({ type: "main" }); | ||
}); | ||
|
||
test("screen store - push 1", () => { | ||
const store = new ScreenStore(); | ||
expect(store.screen).toEqual({ type: "main" }); | ||
store.goOnce({ type: "plans" }); | ||
expect(store.screen).toEqual({ type: "plans" }); | ||
store.go({ type: "deckCatalog" }); | ||
expect(store.screen).toEqual({ type: "deckCatalog" }); | ||
store.back(); | ||
expect(store.screen).toEqual({ type: "main" }); | ||
}); | ||
|
||
test("screen store - push 2", () => { | ||
const store = new ScreenStore(); | ||
expect(store.screen).toEqual({ type: "main" }); | ||
store.goOnce({ type: "plans" }); | ||
expect(store.screen).toEqual({ type: "plans" }); | ||
store.back(); | ||
expect(store.screen).toEqual({ type: "main" }); | ||
}); |
Oops, something went wrong.