MerginMaps / mobile

Mobile app for Mergin Maps 📲. Open QGIS projects and manage vector data on your phone, even offline 📶 (Android/iOS/Windows app)
https://merginmaps.com
GNU General Public License v2.0
292 stars 64 forks source link

Rework the project list in home tab #3313

Closed uclaros closed 4 months ago

uclaros commented 4 months ago

Fixes #3214

Change the way the active project is displayed on top of the list in Home tab into a less hacky one.

Now the ProjectsModel gets a activeProjectId property which if set, then one can use the new Roles::ProjectIsActiveProject role on the model's contents.

We then split the projects list into two sections based on this new role.

Roles::ProjectIsActiveProject may be a bit misleading, as it might not return true on the active project, rather on the one passed into ProjectsModel::activeProjectId

github-actions[bot] commented 4 months ago

Pull Request Test Coverage Report for Build 8705282585

Details


Files with Coverage Reduction New Missed Lines %
input/app/projectsmodel.h 2 25.0%
input/app/projectsproxymodel.cpp 15 59.65%
input/app/projectsmodel.cpp 55 69.17%
input/app/mmstyle.h 61 2.01%
<!-- Total: 133 -->
Totals Coverage Status
Change from base Build 8663502430: 0.3%
Covered Lines: 7635
Relevant Lines: 12648

💛 - Coveralls