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

Allow to change encryption for each backup location #23861

Merged
merged 17 commits into from
Jan 29, 2025
Merged

Conversation

piitaya
Copy link
Member

@piitaya piitaya commented Jan 23, 2025

Proposed change

Allow to change encryption for each backup location (except Cloud for privacy concern).

Screenshots

Backup settings (locations)

CleanShot 2025-01-27 at 18 21 02

Location settings (encrypted)

CleanShot 2025-01-27 at 18 21 36

Location settings (unencrypted)

CleanShot 2025-01-27 at 18 21 46

Cloud location settings

CleanShot 2025-01-27 at 18 21 51

Backup detail (locations list)

CleanShot 2025-01-29 at 14 13 15

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@piitaya piitaya added Backend Change Required Requires a Backend Core Code Change Do Not Review PR is not ready for any kind of review labels Jan 23, 2025
@piitaya piitaya force-pushed the backup_location_settings branch from 0b90ef7 to 78755fb Compare January 27, 2025 09:19
src/translations/en.json Outdated Show resolved Hide resolved
src/translations/en.json Outdated Show resolved Hide resolved
@piitaya piitaya marked this pull request as draft January 27, 2025 13:12
@piitaya piitaya added wait for backend and removed Backend Change Required Requires a Backend Core Code Change Do Not Review PR is not ready for any kind of review labels Jan 27, 2025
@piitaya piitaya marked this pull request as ready for review January 27, 2025 16:58
src/translations/en.json Outdated Show resolved Hide resolved
@piitaya piitaya force-pushed the backup_location_settings branch from 75871cf to d9a3a86 Compare January 28, 2025 12:59
@piitaya piitaya force-pushed the backup_location_settings branch from 4115569 to 8e2afc4 Compare January 29, 2025 08:21
@piitaya piitaya added backend merged The backend PR for this frontend PR has been merged and removed wait for backend labels Jan 29, 2025
@piitaya piitaya enabled auto-merge (squash) January 29, 2025 13:12
@piitaya piitaya force-pushed the backup_location_settings branch from 0c7a82e to d60412d Compare January 29, 2025 13:12
@piitaya piitaya merged commit a2f2d64 into dev Jan 29, 2025
15 checks passed
@piitaya piitaya deleted the backup_location_settings branch January 29, 2025 13:23

private async _fetchAgent() {
try {
// Todo fetch agent details
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Todo fetch agent details

This todo seems to be done

? html`
<div slot="supporting-text">
<span class="dot warning"></span>
<span> Unencrypted </span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Translation missing

: html`
<div slot="supporting-text">
<span class="dot success"></span>
<span> Encrypted </span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Translation missing

Comment on lines +277 to +298
? html`
<div slot="supporting-text">
<span class="dot error"></span>
<span>
${this.hass.localize(
"ui.panel.config.backup.details.locations.backup_failed"
)}
</span>
</div>
`
: unencrypted
? html`
<div slot="supporting-text">
<span class="dot warning"></span>
<span> Unencrypted </span>
</div>
`
: html`
<div slot="supporting-text">
<span class="dot success"></span>
<span> Encrypted </span>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

div and dot is always there, I would suggest a condition for the span class and for the text

})}
crossorigin="anonymous"
referrerpolicy="no-referrer"
alt=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add here the agent name and logo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend merged The backend PR for this frontend PR has been merged cla-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants