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

Display information about mod list updating being prevented #1646

Open
wants to merge 2 commits into
base: status-indicator-data
Choose a base branch
from

Conversation

VilppeRiskidev
Copy link
Collaborator

Display information about mod list updating being prevented while there are downloads in progress

<div v-if="$store.getters['download/activeDownloadCount'] > 0">
<span>
However, the mod list can't be updated while the are mod downloads in progress.
Please wait for the downloads to finish before continuing.
Copy link
Collaborator Author

@VilppeRiskidev VilppeRiskidev Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: This part will probably be something like "The mod list will try to refresh after the downloads are finished.", or be completely refactored in the future.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd think it will make sense to handle the update before this box is rendered, perhaps in a separate step before the preview. Then in this step we'll either say that some mods can't be imported, or list all the mods normally if they're all known by the manager.

@@ -32,7 +32,14 @@ export default class ModListUpdateBanner extends Vue {

<template>
<div v-if="!isModListLoaded" id="mod-list-update-banner" class="margin-bottom">
<div class="notification is-warning margin-right">
<div v-if="$store.getters['download/activeDownloadCount'] > 0" class="notification is-warning margin-right">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How certain are you about the placement of this if-block? My gut feeling says it would make more sense to have it second last (before the option to update the mod list).

<div class="notification is-warning margin-right">
<div v-if="$store.getters['download/activeDownloadCount'] > 0" class="notification is-warning margin-right">
<span>
An error occurred when updating the mod list from Thunderstore.<br />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: since this component was created I've moved to trying to use "refresh the online mod list" to keep the UI texts consistent. Wouldn't hurt to update this component. This applies to ImportProfileModal too.

<div v-if="$store.getters['download/activeDownloadCount'] > 0">
<span>
However, the mod list can't be updated while the are mod downloads in progress.
Please wait for the downloads to finish before continuing.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd think it will make sense to handle the update before this box is rendered, perhaps in a separate step before the preview. Then in this step we'll either say that some mods can't be imported, or list all the mods normally if they're all known by the manager.

@@ -314,6 +314,9 @@ import CdnProvider from '../../providers/generic/connection/CdnProvider';
'Refresh online mod list',
'Check for any new mod releases.',
async () => {
if (this.$store.getters['download/activeDownloadCount'] > 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too it might make sense to prefer to show the current status of update if mod downloads and mod list refresh are going on at the same time. Note that while the refresh can't be started while mods are downloading, user can still start downloads while the refresh is in progress, so both can be happening in the same time.

@VilppeRiskidev VilppeRiskidev changed the base branch from prevent-update-when-downloading to status-indicator-data February 28, 2025 13:36
@VilppeRiskidev VilppeRiskidev force-pushed the mod-list-update-prevent-info branch from 49bfdc2 to 133c5a9 Compare March 3, 2025 16:40
@VilppeRiskidev VilppeRiskidev requested a review from anttimaki March 3, 2025 16:41
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.

2 participants