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

"Dynamic" enums from within the branch #58

Open
silvester-pari opened this issue Dec 10, 2024 · 1 comment · May be fixed by #67
Open

"Dynamic" enums from within the branch #58

silvester-pari opened this issue Dec 10, 2024 · 1 comment · May be fixed by #67

Comments

@silvester-pari
Copy link
Collaborator

silvester-pari commented Dec 10, 2024

For some properties (example: osc:projects) it should be possible to have a selection of existing ids to reference:

Example flow

  • user creates a new project my-new-project
  • user then creates a new product (in the same branch), and under "projects" sees a list (autocomplete) of all projects (file paths), including my-new-project
  • user selects the project and its id is stored

Evolution

  • instead of showing all project ids (file paths) in the autocomplete, the user can see a property from inside the file (title) and store the value (id)
  • When selecting one of the values, it also can do other things (like adding a related link to the links array)

In the OSC use case, this will apply to osc:themes, osc:missions, osc:project, osc:variables.

Ideally this would be a plugin that can be used in a specific git-clerk instance.

@srijitcoder srijitcoder linked a pull request Dec 16, 2024 that will close this issue
@silvester-pari
Copy link
Collaborator Author

A more detailed description (including evolution):

If we can offer this as a plugin for eox-jsonform (json-editor), then this editor can create custom form controls for the formats:

  • osc-prject
  • osc-themes
  • osc-missions
  • osc-variables

Ideally, this json-editor plugin could live in the /public folder of git-clerk and could be passed via config.js to eox-jsonform.

@srijitcoder srijitcoder linked a pull request Dec 30, 2024 that will close this issue
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 a pull request may close this issue.

1 participant