Skip to content
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

Refactor ImportProfileModal to support mod list updates #1598

Open
wants to merge 4 commits into
base: splash-speedrun-pt4
Choose a base branch
from

Conversation

anttimaki
Copy link
Collaborator

No description provided.

We want to access the preview step ASAP as this is where user is likely
to encounter problems with outdated or not loaded mod list.
Some call sites of the Vuex methods pass objects of wrong but
compatible type to the methods. TypeScript doesn't pick up on this as
the type support for the old Vuex version is non-existent. Extend the
argument types so some later changes to methods don't break when the
ExportMod object is passed.
The modal now shows a list of the known mods which can be installed, as
well as a list of the names of the unknown mods. If there's no known
mods, the import button is disabled. Option to cancel the import is
always shown, in case user wants to cancel after seeing the contents of
the profile.

The main reason for combining the modals is to make it easier to
provide an option for updating the mod list without leaving the modal.
This became important after the recent changes, as the splash screen no
longer guarantees that the mod list is loaded into Vuex.
SplashScreen no longer guarantees the online mod list has been loaded
into the memory, or the list might be fetched from IndexedDB and be
outdated. Profile import can't install mods that are not found in the
memory. To remedy the issue, allow users to trigger mod list update
directly from the profile import modal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant