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

Advanced storage options #917

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

matthew-hagemann
Copy link
Collaborator

@matthew-hagemann matthew-hagemann commented Jan 28, 2025

Breaking advanced storage options into its own page. Continuation of #858

Screenshot From 2025-02-06 16-18-11
Screenshot From 2025-02-07 13-53-48
Screenshot From 2025-02-07 13-53-25

@matthew-hagemann matthew-hagemann force-pushed the advanced-storage-options branch from 73120e6 to 424f672 Compare January 28, 2025 07:40
@matthew-hagemann
Copy link
Collaborator Author

matthew-hagemann commented Jan 28, 2025

@anasereijo Let me know your thoughts implementation 🙂 I wasn't sure re: the hide button to collapse the advanced options

@matthew-hagemann matthew-hagemann added the snap/none Don't raise any snap release PRs label Jan 28, 2025
@matthew-hagemann matthew-hagemann force-pushed the advanced-storage-options branch 3 times, most recently from 86969e0 to 66bdacd Compare January 28, 2025 20:19
@matthew-hagemann matthew-hagemann force-pushed the advanced-storage-options branch from 5b8ffe0 to 142dc5f Compare February 6, 2025 15:18
@matthew-hagemann matthew-hagemann marked this pull request as ready for review February 7, 2025 07:41
@matthew-hagemann

This comment was marked as resolved.

@matthew-hagemann matthew-hagemann force-pushed the advanced-storage-options branch from 1dd7264 to 25718c8 Compare February 7, 2025 08:37
@matthew-hagemann
Copy link
Collaborator Author

Screen recording of the interaction 🙂 @anasereijo

Screencast.From.2025-02-07.14-10-53.webm

@anasereijo
Copy link

@matthew-hagemann I've been thinking about the use of the 'experimental' chip, and there's no way to avoid wrapping it (especially with translations). that said, I think we should wrap it properly to the next line aligned to the left

  • the first option 'no encryption' doesn't have support text anymore

everything else is looking good! the interactions are working really nicely 👍

@anasereijo
Copy link

@matthew-hagemann actually, I have been thinking about this, and I wonder if it's possible to do something more like this instead:

Screenshot 2025-02-10 at 11 10 16

so the chip/label will be kept always at the top right corner. When the title is too long, wrap it to a second line.

Comment on lines +151 to +155
final target = model
.getAllTargets()
.firstWhereOrNull((t) => t is GuidedStorageTargetReformat);

if (target == null) return const SizedBox();
Copy link
Member

@d-loose d-loose Feb 11, 2025

Choose a reason for hiding this comment

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

We will need to generalize this logic here, since we can now see this option while a different guided target (one that is not GuidedStorageTargetReformat) is selected.

I've tested this with the win10-along-ubuntu machine config, where we get a Reformat and two Resize targets. The latter don't include the CORE_BOOT_PREFER_ENCRYPTED capability in neither allowed nor disallowed, so I think we should hide the option entirely in this case (currently it's shown and enabled, so continuing with the installation will lead to a crash, since we're sending a guided target response that includes an unsupported capability). At the same time we should make sure that the option is always present if it's included in one of those, but keep it disabled if the capability is disallowed.

P.S. I'd appreciate it if we could have some tests that cover those cases:

  • allowed: [..., CORE_BOOT_PREFER_ENCRYPTED, ...] -> tpm option is shown and enabled
  • allowed: [...], disallowed: [..., CORE_BOOT_PREFER_ENCRYPTED, ...] -> tpm option is shown but disabled
  • neither allowed nor disallowed include CORE_BOOT_PREFER_ENCRYPTED -> tpm option is not shown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snap/none Don't raise any snap release PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants