Skip to content

Instantly share code, notes, and snippets.

@ancorgs
Last active September 21, 2018 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ancorgs/5e5fd016eb7db7413a1972d52f9ae913 to your computer and use it in GitHub Desktop.
Save ancorgs/5e5fd016eb7db7413a1972d52f9ae913 to your computer and use it in GitHub Desktop.
Wild idea 1 for Partitioner UI

About this gist

IMPORTANT: After exchanging opinions in the yast-devel mailing list, this can be considered obsolete and replaced by the refined version at https://gist.github.com/ancorgs/25eb67a90b666ec2211ca34034df8771

This is a follow-up of https://lists.opensuse.org/yast-devel/2018-09/msg00023.html which means is also a follow-up of https://gist.github.com/ancorgs/bf81a230e2a4634df7a05b90a1241116#file-partitioner-buttons-md

This includes a proposal for the UI of the partitioner offering all the new features (partitionable RAIDs, formattable disks and so on).

It's based on three general ideas:

  • Offer a different set of buttons depending on the item selected on the table.
  • Always offer an "Edit" menu-button.
  • General actions that don't correspond to a concrete entry of the table are represented by buttons in a second line.

The Hard Disks table

See animated image below.

Some notes about the buttons for a disk.

  • "Edit -> Hard Disk" opens the wizard to directly format/mount/encrypt the disk.
  • "Partitions -> Edit List" takes the user to the "Partitions" tab for the disk, just as the old "Edit" button used to do.
  • Having "Edit" and "Partitions" side by side should be a good sign for the user about the fact that "Edit" doesn't mean jumping to the list of partitions anymore.

Some notes about the buttons for a partition.

  • "Edit -> Partition" is the old partition "Edit", i.e. the wizard to format/mount/encrypt the partition.
  • "Edit -> Size" is the old "Resize".
  • "Edit -> Position" is the old "Move".

Hard Disks table

The RAIDs table

See animated image below.

The buttons for a RAID are basically equivalent to the buttons for a hard disk, but with two additions.

  • A "Delete" button.
  • An "Edit -> Used Devices" option equivalent to the old "Resize".

The buttons for a partition are equivalent to the Hard Disks table.

RAIDs table

The table of partitions for a given disk/RAID/bcache

See animated image below. Not much to add, the buttons affecting the current selected partition are explained above and the two general buttons should be self-descriptive.

Partitions of a RAID

The Volume Management table

See animated image below. The buttons for VGs and LVs are their respective meanings are pretty much analogous to the ones in the table of RAIDs and their partitions. So not much explanation should be needed at this point.

The only strange thing is that, for symmetry with the other tables, the "Edit" option for an VG is a menu-button, despite the fact that it only contains one action (so far).

LVM table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment