Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Jul 10, 2025

📝 Summary

Todo

  • Take connection from useConnection() into account in useNetworkState() composable
    Distinguish between your device is offline (wifi_off) and no session connection - maybe cloud is offline (cloud_off).
  • fix/move wide page toggle #7514
  • Tests

🖼️ Screenshots

Online with unsaved changes Offline with unsaved changes
Image Image

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

❌ Patch coverage is 76.41509% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.38%. Comparing base (99365e5) to head (b3e511c).
⚠️ Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
src/apis/connect.ts 0.00% 18 Missing ⚠️
src/components/Menu/ActionAttachmentUpload.vue 12.50% 14 Missing ⚠️
src/composables/useNetworkState.ts 20.00% 12 Missing ⚠️
src/services/SyncService.ts 57.14% 3 Missing ⚠️
src/composables/useConnection.ts 81.81% 2 Missing ⚠️
src/services/PollingBackend.ts 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7420      +/-   ##
==========================================
+ Coverage   53.09%   60.38%   +7.28%     
==========================================
  Files         501      501              
  Lines       43134    38410    -4724     
  Branches     1141     1130      -11     
==========================================
+ Hits        22904    23193     +289     
+ Misses      20121    15109    -5012     
+ Partials      109      108       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@max-nextcloud max-nextcloud force-pushed the enh/offline_state branch 5 times, most recently from 7ae38d6 to 34792f9 Compare August 14, 2025 09:52
@max-nextcloud max-nextcloud force-pushed the enh/offline_state branch 2 times, most recently from d7ebe25 to dd0377c Compare August 16, 2025 18:25
@max-nextcloud max-nextcloud requested a review from a team August 16, 2025 19:19
@max-nextcloud max-nextcloud force-pushed the enh/offline_state branch 3 times, most recently from 80cf888 to 053afa4 Compare August 18, 2025 12:54
Drop SessionConnection entirely.

Signed-off-by: Max <[email protected]>
`cy.logout()` opens the logout page - which takes quite a while if no page is open.
`cy.clearCookies()` has the same effect but without the slow page load.

Reduces runtime from 1:23 to 1:07 for this test.

Signed-off-by: Max <[email protected]>
`syncService.lock` does not exist anymore.
Also cleanup unused `baseVersionEtag`.

Signed-off-by: Max <[email protected]>
We store it to make sure we are reconnecting to the same editing session.
So the whole point is that it does not change in between.

Signed-off-by: Max <[email protected]>
@max-nextcloud max-nextcloud merged commit 7959a0b into main Aug 19, 2025
66 checks passed
@max-nextcloud max-nextcloud deleted the enh/offline_state branch August 19, 2025 10:19
@mejo- mejo- self-assigned this Dec 13, 2025
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.

Show online/offline state in UI

3 participants