Commit graph

71 commits

Author SHA1 Message Date
axolotle
6f9203c98c form:FileOption: fix cli file check 2023-11-29 14:09:36 +01:00
axolotle
650c0136f2 form:UserOption: merge choices and default into root validator with first admin user as default 2023-11-26 18:29:43 +01:00
axolotle
4a270b88b6 quality: fix lint + some formatting 2023-11-26 17:42:48 +01:00
axolotle
e5a593a4bb fix: FileOption return already saved and hashed filepath 2023-11-25 21:37:29 +01:00
Alexandre Aubin
c216a3f246 Merge remote-tracking branch 'origin/dev' into bookworm 2023-11-24 22:35:25 +01:00
Alexandre Aubin
da20964044
quality: unused import 2023-11-24 21:00:10 +01:00
axolotle
7e6fea440e quality: fix FileOption validator typing 2023-11-24 16:23:04 +01:00
Alexandre Aubin
b7882c9323 quality: fix obvious linter issues 2023-11-24 16:12:54 +01:00
axolotle
2b75c8f036 form:FileOption: add file "accept" validation handling 2023-11-17 17:28:25 +01:00
axolotle
4dc9d35304 form:FileOption: add mode "bash" versus "python" validators 2023-11-17 17:27:24 +01:00
axolotle
64e2c3177c form: add "mode" to BaseOption to distinguish "bash" and "python" serialization 2023-11-17 17:21:34 +01:00
axolotle
90aa6b86f1 form:BaseChoicesOption: do not declare choices to allow other related fields to come first in subclasses 2023-11-13 16:51:25 +01:00
axolotle
5e81579c31 form: TagOption: add icon prop 2023-11-09 17:32:02 +01:00
selfhoster1312
8ee5aade72 Don't make so many queries for user info when building UserOption form 2023-11-04 14:36:32 +01:00
Alexandre Aubin
1acaf2af2e
Merge pull request #1653 from YunoHost/options-doc
ConfigPanel and app install form Options documentation
2023-10-30 19:05:56 +01:00
Alexandre Aubin
f02538cef0 doc: iterate on configpanel/form documentation 2023-10-30 18:39:31 +01:00
axolotle
3faa574267 configpanel: add proper schema definition 2023-10-25 15:07:31 +02:00
axolotle
c4c79c61fe configpanel: forbid extra props on BaseOption + accordingly fix tests 2023-10-25 15:06:10 +02:00
axolotle
b80868e967 doc:config: misc cosmetics fix 2023-10-24 14:06:16 +02:00
axolotle
ee72d2f463 doc:config: add ljf's advanced config panel doc 2023-10-23 19:05:23 +02:00
axolotle
d676348d35 doc: fix page routes and inconsistencies 2023-10-23 17:14:44 +02:00
axolotle
900f462791 doc:form: complete with ljf comments found in app example 2023-10-23 14:15:25 +02:00
axolotle
1221fd1458 doc:options: add documentation and generator for configpanel/manifest options 2023-10-23 14:15:25 +02:00
axolotle
3cae07970e form: remove no longer used hydrate_option_type method 2023-10-22 15:50:32 +02:00
axolotle
3a5d353c4b form: force option type to 'select' if there's 'choices' 2023-10-22 15:50:32 +02:00
axolotle
ef860ee6ee form: default type to "select" if choices in option 2023-10-22 15:50:32 +02:00
axolotle
2f4c88ec55 form: parse pydantic error in logging 2023-10-22 15:49:29 +02:00
axolotle
48f882ecd3 form+configpanel: reflect Section optional value to all its Options 2023-10-22 15:49:29 +02:00
axolotle
fccb291d78 form: readd pattern to path 2023-10-22 15:49:29 +02:00
axolotle
b778aaf780 form: remove ChoosableOptions for now 2023-10-22 15:48:07 +02:00
axolotle
2a28e289ad form: rework 'hydrate_questions...' with a new 'parse_raw_options' that parse and validate options 2023-10-22 15:48:07 +02:00
axolotle
37b4eb956d typing: add missing type + misc typing fixes 2023-10-22 15:48:06 +02:00
axolotle
b45515049d config: fix wrong diff logic on settings apply 2023-10-22 15:46:57 +02:00
axolotle
98ec5448f2 form: cli retries as variable to be patched in tests 2023-10-22 15:46:57 +02:00
axolotle
98d3b4ffc8 form: rework context/values/hooks in prompt_or_validate_form 2023-10-22 15:46:57 +02:00
axolotle
f1038de56d form: fix entities validators order for filter and apply the right default 2023-10-22 15:29:12 +02:00
axolotle
dbaea019fe form+config: replace _parse_pre_answered method with generic function 2023-10-22 15:28:14 +02:00
axolotle
80dbd6dac4 form: rework entities validators to avoid multiple calls to them 2023-10-22 15:21:21 +02:00
axolotle
02948ad49c config: rework config+settings getter methods 2023-10-22 15:19:32 +02:00
axolotle
bec34b92b0 form: add reserved "id" validator 2023-10-22 15:13:13 +02:00
axolotle
774b11cbbe form: add legacy "name" attr 2023-10-22 15:13:13 +02:00
axolotle
a574855a03 form: fix forbidden readonly type 2023-10-22 15:13:13 +02:00
axolotle
582b1ed311 form: add translating method 2023-10-22 15:13:13 +02:00
axolotle
ec5da99a79 form: rework pre + post options validators 2023-10-22 15:07:54 +02:00
axolotle
3943774811 form: add dynamic annotation getters 2023-10-22 15:07:52 +02:00
axolotle
89ae5e654d form: update asking flow, separate form and options 2023-10-22 15:06:51 +02:00
axolotle
f5c56db10e form: use pydantic BaseModel in Options and add some validators 2023-10-22 15:02:10 +02:00
Alexandre Aubin
9e87ea88df portal-api: improve semantic for yunohost public portal stuff 2023-09-27 19:30:55 +02:00
Alexandre Aubin
db30b3acb8
Merge branch 'bookworm' into portal-api 2023-09-27 18:57:02 +02:00
axolotle
5562b61db0 add 'list_portal' AppOption modifier to add portal as a possible choice 2023-09-04 16:20:29 +02:00