Compare commits

..

1 commit

Author SHA1 Message Date
dependabot[bot]
bc90a55bd3
chore: bump hatch from 1.14.0 to 1.14.1
Bumps [hatch](https://github.com/pypa/hatch) from 1.14.0 to 1.14.1.
- [Release notes](https://github.com/pypa/hatch/releases)
- [Commits](https://github.com/pypa/hatch/compare/hatch-v1.14.0...hatch-v1.14.1)

---
updated-dependencies:
- dependency-name: hatch
  dependency-version: 1.14.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 18:38:43 +00:00
4 changed files with 7 additions and 12 deletions

View file

@ -1,10 +1,5 @@
# Changelog # Changelog
## 3.0.1 - 2025-04-07
* fix showLabel wrongly using MultiChoices by @yohanboniface in #2609
## 3.0.0 - 2025-04-07 ## 3.0.0 - 2025-04-07
This is the first release to officially support colaborative real-time map editing. This is the first release to officially support colaborative real-time map editing.

View file

@ -44,7 +44,7 @@ dependencies = [
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"hatch==1.14.1", "hatch==1.14.1",
"ruff==0.11.4", "ruff==0.11.2",
"djlint==1.36.4", "djlint==1.36.4",
"mkdocs==1.6.1", "mkdocs==1.6.1",
"mkdocs-material==9.6.10", "mkdocs-material==9.6.10",
@ -62,13 +62,13 @@ test = [
"pytest-playwright==0.7.0", "pytest-playwright==0.7.0",
"pytest-rerunfailures==15.0", "pytest-rerunfailures==15.0",
"pytest-xdist>=3.5.0,<4", "pytest-xdist>=3.5.0,<4",
"moto[s3]==5.1.3" "moto[s3]==5.1.1"
] ]
docker = [ docker = [
"uvicorn==0.34.0", "uvicorn==0.34.0",
] ]
s3 = [ s3 = [
"django-storages[s3]==1.14.6", "django-storages[s3]==1.14.5",
] ]
sync = [ sync = [
"pydantic==2.11.1", "pydantic==2.11.1",

View file

@ -1 +1 @@
VERSION = "3.0.1" VERSION = "3.0.0"

View file

@ -132,9 +132,6 @@ export class MutatingForm extends Form {
const properties = Object.assign({}, defaults) const properties = Object.assign({}, defaults)
if (properties.type === Array) { if (properties.type === Array) {
properties.handler = 'CheckBoxes' properties.handler = 'CheckBoxes'
} else if (properties.type === Boolean) {
if (properties.nullable) properties.handler = 'NullableChoices'
else properties.handler = 'Switch'
} else if (properties.choices) { } else if (properties.choices) {
const text_length = properties.choices.reduce( const text_length = properties.choices.reduce(
(acc, [_, label]) => acc + label.length, (acc, [_, label]) => acc + label.length,
@ -148,6 +145,9 @@ export class MutatingForm extends Form {
properties.handler = 'Select' properties.handler = 'Select'
properties.selectOptions = properties.choices properties.selectOptions = properties.choices
} }
} else if (properties.type === Boolean) {
if (properties.nullable) properties.handler = 'NullableChoices'
else properties.handler = 'Switch'
} else if (properties.type === 'Text') { } else if (properties.type === 'Text') {
properties.handler = 'Textarea' properties.handler = 'Textarea'
} else if (properties.type === Number) { } else if (properties.type === Number) {