Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F Flatpak KCM
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • Flatpak KCM
  • Merge requests
  • !49

UI: Add header to the permissions view, add search field to the apps list

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged ivan tkachenko requested to merge work/ratijas/add-header into master Feb 23, 2023
  • Overview 5
  • Commits 3
  • Pipelines 5
  • Changes 3

image

Previous version of this screenshot

image

UI: Add header with current app icon, name & version to the permissions view

Given the way how ListView works with currentIndex, and easy it is to get it out of sync with kcm's current app index -- especially when it comes to filtering model with search -- it would be better to show some identifying information on the permissions page. Also good for mobile form-factor where pages might only be displayed one at a time.

UI: Add search field to the apps list

Some code had to be refactored:

  • Method shouldChange() was lifted out of delegate to the top level;
  • Dialog and all methods are now taking old/new app row indices;
  • Initial loading (onCompleted) now reuses changeApp() method.

Test plan:

  • open KCM without arguments;
  • open KCM with a valid ref (e.g. from Discover, or by passing --args);
  • switch to apps (both from loaded app view, and from an empty view);
  • make changes and switch apps, look out for prompt dialog;
  • Search field:
    • Type in search query, so that some apps match, hit Enter. First search result should get activated. Prompt dialog should appear if necessary.
    • Type in search query until there are no more search results, hit Enter. Prompt dialog should appear if necessary. Then, KCM should unload current app, and show a placeholder view.
    • Make changes, type in search query, press "Clear search" icon button. KCM should not attempt to switch apps, prompt dialog should not appear. There is actually a workaround for SearchField dispatching accepted() signal when clearing input this way.
    • Select some app. Type in search query, so that app matches. ListView selection should follow the app.
      • keep typing until the app no longer matches. Selection should disappear, but permissions view still be loaded.
      • clear search text letter by letter. Selection should reappear as soon as the app matches again, and should follow it as user keeps deleting filter text.
    • If confirmation dialog shows up while search field is focused, the dialog should take the focus away from search field.
Edited Mar 13, 2023 by ivan tkachenko
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/ratijas/add-header