D28025: [Baloo KCM] Complete overhaul of the include/exclude folder list

Stefan BrĂ¼ns noreply at phabricator.kde.org
Fri Mar 20 01:20:01 GMT 2020


bruns added a comment.


  In D28025#630882 <https://phabricator.kde.org/D28025#630882>, @ngraham wrote:
  
  > In D28025#630849 <https://phabricator.kde.org/D28025#630849>, @bruns wrote:
  >
  > > Having only inclusion/exclusion is a temporary state. I plan to add more settings for each path, so having an "add" button for each possible state will no longer be feasible.
  > >
  > > Also, "removing" a path from the "included"  list is not the same as excluding it - the state depends on the state of its next ancestor. This exact type of mixup has led to the messy state the current KCM is in.
  >
  >
  > Then maybe we should rethink the UI, because that's what it currently suggests. What are the other states you're planning to add?
  
  
  Honestly, no, thats not what it suggests. It clearly tells if a folder should be searched (magnifying glass) or not (minus sign). Currently a checkbox would do, but thats a) not scalable b) non-obvious (does checked equal included or excluded)?
  
  I have already mentioned meta-data vs full-text. Also file-name only is often wanted.
  
  >> The Items are inspired by the Desktop Effects KCM. I have searched through the HIG for considerable time, unfortunately it lacks any specific information what to do, or any usable examples. If you can provide any examples where you think it is done the "right way (TM)", please go for it.
  > 
  > Yeah, we need to add more examples and better guidance to the HIG for sure. However you must be looking at an old version of the Desktop Effects KCM because the git master version shows what I'm talking about:  F8185313: Screenshot_20200319_161856.png <https://phabricator.kde.org/F8185313>
  > 
  > You can also look at the Desktop effects KCM, the Activities KCM, or Discover's Settings page.
  
  Lets see:
  
  - Desktop Effects KCM:  It has 3 state checkboxes where this clearly violates HIG. The "Video" button is a toggle button, but to get its meaning you have to hover it for the tooltip. It has a "Get new Desktop Effects" button on the top button, which not only installs new effects, but must also be used to **uninstall** effects.
  - Activities: "Create New..." on the bottom **right** (HIG violation).
  
  So much for your poster childs ...
  
  Yes, it does use custom buttons. The second one can be trivially replaced by a Kirigami.Action (or I could use "flat" style, and it would look and behave exactly like a Kirigami.Action, so no "custom button appearance" nor "behavior"). The "Enable/Disable indexing" button is custom. It can be trivially changed to a Kirigami.Action by moving the text to the tooltip, but IMHO thats much worse from a usability view.
  
  >> The search/excluded icons are just the first implemented state column. There will be more columns. Having the full state in textual form for each entry will look awkward, and having it in textual form only will make it much harder to get the current state for a given path.
  >> 
  >> More fine granular settings have been requested several times. Having a content indexer run on ~/Downloads poses a security risk. Running full-text indexing on ~/Documents/MyCppProjects/ is definitely subject to a users preference, while most users would expect ~/Pictures/, ~/Videos/ and ~/Music/ to be scanned for metadata.
  >> 
  >> The current model and visual representation are complete nonsense, from a programmers as well as a users view. This definitely gets the model in a usable and extensible state, and shows the real state to the user (instead of showing some invented entries, and leaving out the other real half), and also makes it configurable. The important part here is the model. The view/delegate can be extended even by some person who is not familiar with baloo internals.
  > 
  > In general I'm not a fan of patches that change both the backend and UI and say, "well, we can make a better UI later." Let's do it now, or we might forget to do it later, or do the backend bits in a way that make it impossible to do the UI in a user-friendly way. It wounds like what we really need here is a true multi-column table, like the one in the git master version of the System Tray applet.
  
  Thats not what I said. It has a sound model with this change. The model is extensible. The model represents the configuration correctly. Based on this model, everybody can polish the UI.
  
  If you can provide a better model, a better UI, please do it. The new model and UI addresses all the complaints I am aware of.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D28025

To: bruns, #baloo, #vdg, ngraham, mart
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200320/0f8a004e/attachment-0001.html>


More information about the Plasma-devel mailing list