qgis-plugin icon indicating copy to clipboard operation
qgis-plugin copied to clipboard

Project history : Add a version viewer windows in the plugin

Open ValentinBuira opened this issue 1 year ago • 4 comments

This PR is a refactor and enhancement to bring a new history window to browse the history of a project directly from the plugin

To open the new windows a new toolbar button has been added.

The windows is divided in three parts for the users to be able to:

  • Scroll thought projects versions the left
  • Explore change visually in case the version is diffable
  • Viewing layer changed, version metadata (author creation date, user agent, etc...), and changesets details .

This PR is marked as draft because some testing are still required and the feature still have rough edges

Screenshot from 2024-10-04 10-51-42

For reviewer a brief technical documentation is available in the comment

ValentinBuira avatar Oct 04 '24 09:10 ValentinBuira

You can find the artificat for this PR : https://github.com/MerginMaps/qgis-plugin/actions/runs/11574049071

I'll update the link for future version

ValentinBuira avatar Oct 10 '24 08:10 ValentinBuira

When I select Files tab at the bottom right and then change the version in the left panel, it keeps going back to Layers tab. It would be good to remember the selection, so user does not need to keep selecting the tab again: image

saberraz avatar Oct 10 '24 10:10 saberraz

Another observation, it takes a while for plugin:

  • to cache the older version
  • to render the map (specifically the background map and not the changes) image

^^ An example of caching and creating the map

saberraz avatar Oct 10 '24 10:10 saberraz

A small technical is made using excalidraw, ask me for accesss if you need to modify it

For the interface: main interface

splitter Screenshot from 2024-10-30 09-36-18

For asynchronous operation

Fetch new versions VersionFetcher

ChangesetsDownloader ( download a version) ChangesetsDownloader

ValentinBuira avatar Oct 30 '24 08:10 ValentinBuira

Hi @uclaros we have a big one here :) Thanks!

tomasMizera avatar Nov 22 '24 15:11 tomasMizera

Let's merge this now and continue fixing from master 🎉

tomasMizera avatar Feb 06 '25 12:02 tomasMizera