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

Avoid errors on backup page on old flagship app #2994

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Conversation

zatteo
Copy link
Contributor

@zatteo zatteo commented Sep 29, 2023

### 🐛 Bug Fixes

* Avoid errors on backup page on old flagship app

@zatteo zatteo requested a review from cballevre as a code owner September 29, 2023 12:42
@bundlemon
Copy link

bundlemon bot commented Sep 29, 2023

BundleMon

Unchanged files (19)
Status Path Size Limits
drive/public/drive.(hash).js
1.5MB 1.65MB
drive/vendors/drive.(hash).js
1.28MB 1.6MB
drive/public/pdf.worker.entry.(hash).worker.j
s
343.37KB 345KB
drive/services/dacc/drive.js
253.91KB 500KB
drive/services/qualificationMigration/drive.j
s
248.95KB 500KB
drive/app/drive.(hash).js
243.75KB 255KB
drive/public/cozy-client-js.js
158.97KB 160KB
drive/intents/drive.(hash).js
154.64KB 171KB
drive/public/drive.(hash).min.css
92.62KB 100KB
drive/app-drive.(hash).min.css
55.72KB 56KB
drive/intents-drive.(hash).min.css
37.06KB 40KB
drive/onlyOffice/slide.pptx
24.82KB 25KB
drive/onlyOffice/text.docx
5.84KB 6KB
drive/onlyOffice/spreadsheet.xlsx
5.01KB 6KB
drive/manifest.webapp
1.77KB 2KB
drive/index.html
531B 1KB
drive/intents/index.html
516B 1KB
drive/img/app-icon.(hash).svg
419B 1KB
drive/manifest.json
184B 1KB

No change in files bundle size

Unchanged groups (8)
Status Path Size Limits
drive/screenshots/**
2.13MB +0.4%
drive/public/**
2.09MB +7%
drive/vendors/**
1.28MB +6%
drive/services/**
502.86KB +1%
drive/app/**
243.75KB +1%
drive/intents/**
155.15KB +6%
drive/onlyOffice/**
35.68KB +0.4%
drive/img/**
419B +0.4%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

import LastBackupStatus from './components/LastBackupStatus'
import AllowPermissionsModal from './components/AllowPermissionsModal'
import { BackupError } from './components/BackupError'

import { BackupActionsProvider } from 'photos/ducks/backup/hooks/useBackupActions'
import { isFlagshipApp } from 'cozy-device-helper'

const BackupPage = () => {
const BackupPageContent = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Extract this component into a separate file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This component will be used only here so I prefer to keep it here.

A window.cozy.backup_available flag was sent by the flagship app but
not used. So errors were shown because intent were not available on
old flagship app version.
@zatteo zatteo force-pushed the feat/manage-better branch from 589896b to eaa79ae Compare October 2, 2023 15:46
@zatteo zatteo merged commit 4ca7c9e into master Oct 3, 2023
3 checks passed
@zatteo zatteo deleted the feat/manage-better branch October 3, 2023 07:20
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.

3 participants