Split up Advanced tab into Attributes Attachments#13224
Split up Advanced tab into Attributes Attachments#13224simonzachau wants to merge 8 commits intokeepassxreboot:developfrom
Conversation
Replace the single Advanced tab in the entry preview pane with two separate tabs for Attributes and Attachments. Each tab is independently enabled based on whether the entry has custom attributes or attachments.
…Style Replace the Advanced page in the entry edit dialog with three pages: - Attributes: custom key-value fields (format-list-bulleted-square icon) - Attachments: file attachments (paperclip icon) - Style: icon selection and foreground/background color pickers (palette icon) Rename the Entry page to General. Move the exclude-from-reports checkbox to the General page. Add new MDI icons for Attributes and Style pages.
Update Page::Advanced references to Page::Attributes for attribute tests. Remove unnecessary page switches for controls now on General.
Restructure DatabaseOperations.adoc to match the new UI layout: - Remove Entry Icons section from Entry Handling (now part of Style) - Rename Additional Attributes to Attributes - Replace Foreground and Background Color section with Style, combining icon selection and color picker documentation - Update Advanced Entry Handling intro paragraph Add tests for switching to the Attachments and Style pages with verification that the color controls and attachments widget are found.
Replace obsolete translation strings with new ones to match the restructured entry edit dialog: Entry→General, Advanced→Attributes, Icon→Style. Add new strings for Attachments, color controls, and the exclude-from-reports label. Remove strings for deleted UI elements.
|
Why is this desirable? The ideal state is to merge advanced attributes into the general tab and create more a flow to editing an entry. This is consistent with entry templates / layouts that we have been wanting to implement. Splitting the tabs does not bring us closer to that state and this appears to be unnecessary. |
Thanks for the quick reaction. I looked for existing issues on the matter and couldn't find any. Would you please link one? My attempt was to try out how to make it more consistent and intuitive. "Advanced" currently feels like a random selection of fields that are not more or less advanced than certain other fields and the complexity of the sublevel felt cumbersome to me. Happy to iterate in a way that makes it more helpful for the vision. |
|
I read through both and to me they look largely unrelated to this PR. Neither issue solves the random hierarchy of the Advanced section. #8228 is about templates, ie. what fields to show when you pick a template. We can still hide custom attributes or attachments fields when a template will be defined as such, and move them altogether onto one page. The need for logical sections, either to scroll or to click through, will stay. #4244 is mostly about options on icon sizes and moving the preview pane from the bottom to the right hand side. I think that would be a very good idea as column layouts have been on a forefront for quite a while now and users expect and welcome a certain familiarity. Would love to implement that one next. Still, if we keep the current horizontal layout as an option, the current solution will be helpful, and in the vertical preview column as well, just that tabs will look/work different. I think this PR serves well as a - not quite as radical but still progressive - stepping stone for future UI changes. Users seem to be longing for UI improvements both in my experience and from what I read in the linked issues. |
|
I am personally not interested in merging this, tbh. |
This PR restructures the "Advanced" tab in both the entry preview pane and the entry edit dialog by splitting it into dedicated pages for better discoverability and clearer organization. By splitting the "Advanced" tab into dedicated pages that each serve a single purpose, we make the UI more intuitive and consistent with how other pages (Auto-Type, Properties, History) each handle one concern.
Entry Preview Pane (bottom detail panel)
The single "Advanced" tab that combined attributes and attachments side-by-side is replaced with two separate tabs:
Each tab is independently enabled based on whether the entry has custom attributes or attachments, rather than the previous behavior where one tab was enabled if either existed.
Entry Edit Dialog (left sidebar menu)
The "Advanced" page, which bundled four unrelated concerns (attributes, attachments, colors, and an exclude-from-reports checkbox), is replaced with dedicated pages:
format-list-bulleted-squareMDI iconpaperclipiconpaletteMDI iconThis PR was developed with assistance from Claude (Anthropic, claude-opus-4-6 model).
Screenshots
Testing strategy
TestGui.cpp:Page::Advancedreferences changed toPage::Attributesfor attribute testsswitchToPagecalls for controls now on the General pagePage::Styleand verifying color controls (fgColorButton,fgColorCheckBox,bgColorButton,bgColorCheckBox) are found and functionalPage::Attachmentsand verifying the attachments widget is found and visibleType of change