Skip to content

Commit 5f7bd5d

Browse files
authored
Merge pull request #1144 from ancorgs/doc_partitioner_ui_2
Update partitioner_ui.md with the new plan
2 parents 65bf2ac + e3455f7 commit 5f7bd5d

6 files changed

Lines changed: 29 additions & 41 deletions

File tree

doc/partitioner_ui.md

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -61,57 +61,45 @@ functional in a text console with 80 columns and 24 lines.
6161
This is the main plan to overcome the mentioned challenges and problems. Readers interested in the
6262
result can simply check this section.
6363

64-
To make navigation more understandable we plan to introduce three big changes in the layout used
65-
by the Partitioner to present the full picture:
66-
67-
- Use a menu to allocate global actions that do not really fit in other parts of the UI (like
68-
rescanning devices) and also for some contextual options that are not common enough to justify a
69-
button.
70-
- Turn the left tree into a plain list of possible "views" with some numbers indicating the number
71-
of elements presented in each view.
64+
To make navigation more understandable we plan to introduce some changes in the layout used by the
65+
Partitioner:
66+
67+
- Use an application menu bar. It would contain global actions that do not really fit in other
68+
parts of the UI (like rescanning devices) and also all the options that are contextual to the
69+
device currently selected.
70+
- Simplify the contextual actions that are displayed below each table, showing only plain buttons
71+
with the most common options, instead of menu-buttons with all possibilities. The less common
72+
actions would now have to be reached through the menu.
7273
- Use nesting (with the possibility of expanding/collapsing) in the tables to better represent the
7374
relationship of disks vs partitions, volume groups vs logical volumes, filesystems vs subvolumes,
7475
etc.
76+
- Create a new Device Overview tab that would be similar for all kind of devices. It should display a
77+
table with the device itself as first element and all the dependent devices (like partitions of
78+
the given disk) nested below.
79+
- Limit the nesting in the left tree to display only a first level of devices. Navigating below that
80+
level will not be possible (eg. there will be no "Device Overview" for an individual partition).
81+
- Show any other information as pop-ups.
7582

7683
With all that, the previous screenshot will turn into something similar to this:
7784

78-
```
79-
[Configure↓][View↓][Settings↓]
80-
81-
┌View ──────────────┐Available Storage on guanche
82-
│─System Overview │┌──────────────────────────────────────────────────┐
83-
│─Hard Disks (3) ││Device │ Size│F│Enc│Type │
84-
│─RAID (2) ││┬─/dev/sda │ 8.00 GiB│ │ │HGST-HGST HTS72│
85-
│─Volume Manager (1)││├──/dev/sda1 │500.00 MiB│ │ │Part of EFI │
86-
│─Bcache (0) ││└──/dev/sda2 │ 7.51 GiB│ │ │Part of OS │
87-
│─NFS (0) ││+─/dev/sdb │468.00 GiB│ │ │Disk │
88-
│─Btrfs (1) ││┬─/dev/sdc │ 2.00 TiB│ │ │Disk │
89-
│ ││└──/dev/sdc1 │ 12.00 GiB│ │ │FAT Partition │
90-
│ ││──/dev/md/EFI │499.94 MiB│ │ │FAT RAID │
91-
│ ││──/dev/md/OS │ 7.51 GiB│ │ │PV of system │
92-
│ ││┬─/dev/system │ 7.50 GiB│ │ │LVM │
93-
│ ││└──/dev/system/ro│ 6.00 GiB│ │ │Btrfs LV │
94-
│ │└├───────────────────────────────┤─────────────────┘
95-
│ │[Modify↓][Partitions↓]
96-
└───────────────────┘
97-
[ Help ] [Abort] [Finish]
98-
99-
```
100-
101-
Of course, the look and feel of the table with nested elements may not be exactly as represented
102-
above. That widget still must be developed and could end up looking similar to the typical list of
103-
mails from a mail client (in which nesting is used to manage threads) or to the widgets currently
104-
used to display a hierarchy of directories in QDirStat.
105-
106-
![Nested list in Thunderbird](partitioner_ui/img/list-thunderbird.png)
107-
108-
![Nested list in QDirStat](partitioner_ui/img/list-qdirstat.png)
85+
![System view with agreed changes](partitioner_ui/img/system_new.png)
86+
87+
The options that are not longer visible at first sight in that screenshot are moved to the
88+
appropriate menus.
89+
90+
![Menu](partitioner_ui/img/menu_system.png)
91+
92+
Adopting the new table-based Device Overview tab and using pop-ups dialogs when necessary will
93+
result in a more consistent and less confusing interface, with subvolumes management nicely
94+
integrated.
95+
96+
![New Overview Tab](partitioner_ui/img/overview_new.png)
10997

11098
## Other ideas
11199

112100
Section with ideas and concepts that were important during the development of the current plan.
113-
Kept for completeness and for future reference, since we still plan to incorporate parts of them to
114-
the final implementation.
101+
Kept for completeness and for future reference, since we are still considering to incorporate parts
102+
of them to the final implementation.
115103

116104
### Initial ideas
117105

-29.8 KB
Binary file not shown.
-12 KB
Binary file not shown.
55.2 KB
Loading
73.4 KB
Loading
95.4 KB
Loading

0 commit comments

Comments
 (0)