Skip to content

Declarative Settings UI API (Nextcloud 29) #222

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

Merged
merged 5 commits into from
Feb 11, 2024
Merged

Declarative Settings UI API (Nextcloud 29) #222

merged 5 commits into from
Feb 11, 2024

Conversation

bigcat88
Copy link
Member

As API of Declarative Settings is very simple the nc.ui.settings.register_form method can accept SettingsForm data class or a raw dict that will be passed to AppAPI.

Ref: nextcloud/app_api#149

image image

@bigcat88 bigcat88 changed the title Declarative Settings UI API Declarative Settings UI API (Nextcloud 29) Feb 10, 2024
Signed-off-by: Alexander Piskun <[email protected]>
Signed-off-by: Alexander Piskun <[email protected]>
@bigcat88 bigcat88 marked this pull request as ready for review February 11, 2024 12:14
Copy link

codecov bot commented Feb 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c6e4aa9) 99.83% compared to head (a0dd58f) 99.83%.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #222    +/-   ##
========================================
  Coverage   99.83%   99.83%            
========================================
  Files          41       42     +1     
  Lines        4853     4965   +112     
========================================
+ Hits         4845     4957   +112     
  Misses          8        8            
Files Coverage Δ
nc_py_api/_preferences_ex.py 100.00% <ø> (ø)
nc_py_api/ex_app/__init__.py 100.00% <100.00%> (ø)
nc_py_api/ex_app/ui/settings.py 100.00% <100.00%> (ø)
nc_py_api/ex_app/ui/ui.py 100.00% <100.00%> (ø)

@bigcat88 bigcat88 merged commit 5354584 into main Feb 11, 2024
@bigcat88 bigcat88 deleted the ui-settings-api branch February 11, 2024 13:03
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.

1 participant