Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make info block visibility configurable #1404

Merged
merged 14 commits into from
Mar 16, 2023

Conversation

MarcelRobitaille
Copy link
Collaborator

@MarcelRobitaille MarcelRobitaille commented Dec 29, 2022

Fixes #906

  • Add the checkboxes in the settings UI
  • Store the settings
  • Use the settings to conditionally render the info blocks

@github-actions
Copy link

github-actions bot commented Dec 29, 2022

Test Results

     21 files     952 suites   5m 12s ⏱️
   496 tests    496 ✔️ 0 💤 0
3 472 runs  3 471 ✔️ 1 💤 0

Results for commit b1cd19e.

♻️ This comment has been updated with latest results.

@MarcelRobitaille
Copy link
Collaborator Author

Peek.2022-12-29.15-59.mp4

@MarcelRobitaille MarcelRobitaille marked this pull request as ready for review December 29, 2022 21:03
Copy link
Collaborator

@christianlupus christianlupus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes are still required. Then, it can be merged.

src/components/SettingsDialog.vue Outdated Show resolved Hide resolved
src/components/SettingsDialog.vue Outdated Show resolved Hide resolved
@@ -88,6 +88,7 @@ public function testList(): void {
'folder' => $folder,
'update_interval' => $interval,
'print_image' => $printImage,
'visibleInfoBlocks' => array(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not sufficient to test it on PHP level. Please add a few test cases in the data provider at line 147.

Christian Wolf and others added 13 commits March 15, 2023 19:34
Signed-off-by: Christian Wolf <git@christianwolf.email>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
And connect to UI elements

Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Only refresh the config from the database in a single action in the
store
Don't update the config in two different places in the settings dialog

Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Christian Wolf <git@christianwolf.email>
Signed-off-by: Christian Wolf <git@christianwolf.email>
Signed-off-by: Christian Wolf <git@christianwolf.email>
@christianlupus christianlupus merged commit 35a3520 into nextcloud:master Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make info blocks configurable, whether displayed or not displayed
2 participants