Status Desktop client made in Nim & QML https://status.app
Go to file
Jonathan Rainville 2aa759adcf refactor(section-model): change model to be sorted to fix reorder
Part of #3364

To make the drag and drop reorder work correctly on channels, we needed to change the model again so that it was sorted in the model itself.
That is because the drag and drop gives us the value of the position it is dropped to as a single list, so dragging the second item of the second category would mean from position 5 to position to position 4, but what the backend wants is moving the item 2 to position 1.
Sorting the model enables us to get the category that is the parent of that position and call the service with the right positions and id.
It also enables us to reorder the channel in and out of the category.
See the module code to see how the calculation is done with an explanatory comment.
The model needed some changes to support that. Some of the function where changed from dataChange calls to resetModel calls, since we need to re-sort the model.
I tried using beginMove, but it would crash. Maybe there is a bug in NimQML or I used it badly, I'm not sure.
2023-04-19 12:26:15 -04:00
.github chore(general): pull_request_template.md updated 2022-09-21 18:20:15 +02:00
app Fix: typo 2023-04-11 13:42:21 -04:00
ci ci: add suite and tags parameters to e2e CI job 2023-04-14 18:15:05 +02:00
cmake chore(CPP/CI): basic CI setup for linux cmake build 2022-07-01 14:41:28 +02:00
libs fix(@desktop/cpp): Implement StatusGoQt::sendMessage() function 2023-04-18 10:47:42 +02:00
monitoring feat(Monitoring): Backend's properties and models visualization 2023-01-16 14:46:58 +01:00
resources feat(Wallet) cache fetched balance history to DB for efficiency 2023-02-15 18:52:37 +04:00
scripts ci: fix handling of stdout in MacOS notarization 2023-04-12 16:02:34 +02:00
spellchecking@f1a88d1147 feat(spellchecking): add dictionaries as submodule 2021-09-17 12:57:28 -04:00
src refactor(section-model): change model to be sorted to fix reorder 2023-04-19 12:26:15 -04:00
storybook feat(@desktop/wallet) reduce number of digits shown for large currency amounts 2023-04-18 10:11:18 -03:00
test refactor(section-model): change model to be sorted to fix reorder 2023-04-19 12:26:15 -04:00
test-scripts chores(@general): remove status-lib deps 2022-02-03 11:52:45 -05:00
ui refactor(section-model): change model to be sorted to fix reorder 2023-04-19 12:26:15 -04:00
vendor chore: set default sync period to 9d via status-go migration 2023-04-18 11:24:18 -04:00
.clang-format style(@desktop/cpp): apply clang-format on src-cpp/* 2022-02-21 19:55:01 +01:00
.clang-tidy refactor(@desktop/cpp): improve cpp code 2022-03-01 16:05:21 +01:00
.gitignore test(community): add a test that pins and unpins messages 2022-08-26 10:29:28 -04:00
.gitmodules move qzxing and SortFilterProxyModel to vendor folder 2023-03-23 12:09:19 +01:00
.npmrc chore: refactor Linux and macOS build/packaging steps 2020-06-22 10:53:57 -05:00
.yarnrc chore: refactor Linux and macOS build/packaging steps 2020-06-22 10:53:57 -05:00
AppRun build: use same container as Jenkins CI for local packaged builds on Linux 2021-04-27 13:49:46 -05:00
AppRun-cpp chore(CPP/CI): basic CI setup for linux cmake build 2022-07-01 14:41:28 +02:00
CMakeLists.txt chore(cpp): add chat section and list chats 2022-08-11 21:40:39 +02:00
I18N.md chore(translations): update I18N docs 2022-07-14 22:04:33 +02:00
Info.dev.plist QR code scanner (QML component) (#9464) 2023-03-07 12:08:38 -04:00
Info.plist QR code scanner (QML component) (#9464) 2023-03-07 12:08:38 -04:00
LICENSE.md docs: indicate MPL 2.0 as the license 2020-09-23 15:14:59 -04:00
Makefile fix(Makefile): Move StatusQ to order-only-dependencies of the app (#10351) 2023-04-18 19:14:00 +03:00
QtWebEngineProcess.plist chore: refactor Linux and macOS build/packaging steps 2020-06-22 10:53:57 -05:00
README.md chore(CPP): Basic project configuration setup using Qt6 2022-06-30 12:16:33 +02:00
VERSION chore: bump git master version post 0.9 release 2023-02-01 16:55:30 +01:00
build-linux.sh QR code scanner (QML component) (#9464) 2023-03-07 12:08:38 -04:00
cacert.pem fix(@desktop/windows): installer to include cacert.pem 2021-09-06 14:47:18 -04:00
conanfile.txt chore(CPP): integrate tokens balance status-go API (POC) 2022-08-02 16:06:33 +02:00
config.nims fix(StatusQ): StatusQ is QML module (#10207) 2023-04-14 11:18:56 +03:00
docker-linux-app-image.sh QR code scanner (QML component) (#9464) 2023-03-07 12:08:38 -04:00
env.sh feat: get collectibles from the contracts and their respective apis 2020-06-18 10:55:48 -04:00
fleets.json chore: add status.prod fleet 2022-03-11 15:52:47 -05:00
nim-status.desktop build: use same container as Jenkins CI for local packaged builds on Linux 2021-04-27 13:49:46 -05:00
nim.cfg build system refactoring 2020-06-08 13:07:25 -04:00
nim_status_client.nimble docs: indicate MPL 2.0 as the license 2020-09-23 15:14:59 -04:00
package-lock.json chore(@desktop/general): Upgrade fileicon to v. 0.3.0 2022-04-11 12:18:54 -04:00
package.json chore(@desktop/general): Upgrade fileicon to v. 0.3.0 2022-04-11 12:18:54 -04:00
screenshot.png remove docs folder from repo (moved to https://hackmd.io/@status-desktop/B1eOaf-nd) 2021-06-24 15:07:30 -04:00
status-dev.icns chore: revise how dev version of app icon is set on macOS during `make run` 2021-01-21 15:36:32 -06:00
status-dev.svg chore(@desktop/general): use different icons for Windows/Linux and MacOS 2021-07-19 13:37:56 -04:00
status-macos-dev.svg chore: refactor prod/dev app icon and related logic for macOS 2021-01-15 19:12:42 -05:00
status-macos.ico chore(@desktop/general): use different icons for Windows/Linux and MacOS 2021-07-19 13:37:56 -04:00
status-macos.svg chore: refactor prod/dev app icon and related logic for macOS 2021-01-15 19:12:42 -05:00
status.desktop chore(CPP/CI): basic CI setup for linux cmake build 2022-07-01 14:41:28 +02:00
status.icns chore: revise how dev version of app icon is set on macOS during `make run` 2021-01-21 15:36:32 -06:00
status.ico chore(@desktop/general): use different icons for Windows/Linux and MacOS 2021-07-19 13:37:56 -04:00
status.iss feat(@desktop/Windows): status-im:// protocol support and installer fixes 2021-09-09 16:53:09 -04:00
status.svg chore(@desktop/general): use different icons for Windows/Linux and MacOS 2021-07-19 13:37:56 -04:00
windows-install.txt build: implement packaging steps for the Windows build 2020-07-17 13:57:32 -05:00