Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

Description

image

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Oct 6, 2025
Copilot AI review requested due to automatic review settings October 6, 2025 19:58
@AlexAndBear AlexAndBear requested review from kulmann and removed request for Copilot October 6, 2025 19:58
@AlexAndBear AlexAndBear mentioned this pull request Oct 6, 2025
2 tasks
Copilot AI review requested due to automatic review settings October 6, 2025 23:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds update checking functionality to the mobile navigation view in OpenCloud. The implementation moves update checking from being handled asynchronously within components to being handled during application bootstrap and then displayed in the mobile navigation interface.

  • Adds update check capability to mobile navigation with version display
  • Refactors update checking to be performed during application bootstrap rather than in individual components
  • Updates configuration store to handle update information from external service

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/web-runtime/src/index.ts Adds call to announceUpdates during bootstrap
packages/web-runtime/src/container/bootstrap.ts Implements announceUpdates function to fetch update data
packages/web-runtime/src/components/VersionCheck.vue Refactors to use pre-loaded update data instead of async loading
packages/web-runtime/src/components/MobileNav.vue Adds version display and update check to mobile navigation
packages/web-pkg/src/composables/piniaStores/config/types.ts Adds UpdatesConfigSchema for update data structure
packages/web-pkg/src/composables/piniaStores/config/config.ts Adds updates store and loadConfigUpdates method
packages/web-pkg/src/components/FilesList/ResourceListItem.vue Reorders v-oc-tooltip directive
packages/web-pkg/src/components/FilesList/ResourceLink.vue Reorders v-if directive
packages/web-app-admin-settings/src/views/Users.vue Reorders v-oc-tooltip directive
packages/web-runtime/tests/unit/components/SidebarNav/snapshots/SidebarNav.spec.ts.snap Updates snapshot to reflect new update check display

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@AlexAndBear
Copy link
Contributor Author

AlexAndBear commented Oct 7, 2025

@kulmann to have a clean loading and error state: instead of using the config store we might want to implement an updateStore (updates, isLoading, error...).

We can also make the request non blocking in the bootstrap process, I think.

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

I like this approach 👍

@AlexAndBear AlexAndBear requested a review from kulmann October 7, 2025 08:50
}

try {
updatesStore.setIsLoading(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you set loading to true here? It's initialized with true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just in case, if we re-use this function, e.G polling or something else, this would come in handy

@AlexAndBear AlexAndBear requested a review from kulmann October 7, 2025 09:16
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

nice 🚀 thank you!

@AlexAndBear AlexAndBear merged commit 747b013 into main Oct 7, 2025
28 checks passed
@AlexAndBear AlexAndBear deleted the issues/1317 branch October 7, 2025 10:33
@openclouders openclouders mentioned this pull request Oct 7, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update check on mobile viewport

3 participants