feat: add organisation select#3
Conversation
| go 1.23.9 | ||
|
|
||
| require github.com/italia/publiccode-parser-go/v4 v4.3.7 | ||
| require github.com/italia/publiccode-parser-go/v5 v5.1.1 |
There was a problem hiding this comment.
You might want to use v5.2.1 as it fixes a regression.
There was a problem hiding this comment.
Thanks for the hint.
There was a problem hiding this comment.
@caebr you're welcome! You might also want to star & watch the publiccode-parser-go repo to get notified of new releases.
9c3ad0c to
a22edeb
Compare
|
FYI, I just opened this upstream: italia#525 It'd be nice to upstream something generic. Also, I guess you might be interested in joining efforts with them to implement the new publiccode.yml 0.5.0 spec: italia#526 😉 |
| "prebuild": "npm run build:wasm && npm run build:licenses", | ||
| "build:providers-oembed": "tsx scripts/getProvidersOembed.ts src/generated/providers-oembed.json", | ||
| "build:licenses": "mkdir -p src/generated && tsx scripts/genLicenseList.ts src/generated/licenses.json", | ||
| "build:organisations": "tsx src/app/data/generateOrganisations.ts", |
There was a problem hiding this comment.
I think that there should be a note in the readme that this script should be run.
or run it as a post install script
There was a problem hiding this comment.
The script is documented in the following README.
I added an additional post install script.
| [setValue] | ||
| ); | ||
|
|
||
| const updateOrganisation = useCallback( |
There was a problem hiding this comment.
is the usage of useCallback necessary here?
There was a problem hiding this comment.
I did not move the function inside useEffect to keep the code consistent with resetMaintenance.

A new organisation field was added to the publiccode standard and the publiccode parser, see publiccodeyml/publiccode.yml#256
This change adds a dropdown to select an organisation from a given list (of all offices of the departements of the Swiss Federation).