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

feat(options-tool) enterprise Select #255

Closed
chrismclarke opened this issue Mar 28, 2024 · 0 comments · Fixed by #269
Closed

feat(options-tool) enterprise Select #255

chrismclarke opened this issue Mar 28, 2024 · 0 comments · Fixed by #269
Assignees

Comments

@chrismclarke
Copy link
Collaborator

chrismclarke commented Mar 28, 2024

Is your feature request related to a problem? Please describe.
When using the options tool the user is immediately presented with a screen to start adding options
image

This means that they can only keep a single set of options when using the app

Describe the solution you'd like
Create a new create screen before showing the options table, that can be used to add a new option list.
The screen should minimally ask the user what type of enterprise they are using, either Crop, Livestock, or Livelihood

Depending on the selection the page should link to /option/crop, /option/livestock and use data only for that specific set of options.

While filtering it would also be good to order the results (as think currently the order is based on id which are generated as random strings) - recommend also adding a _created_at field and populating using the existing generateTimestamp method, and using that field to sort. Existing data can be migrated to the current timestamp

Additional context
Currently the database is set for a single list of options. To keep things simpler we can keep using a single set of options, but when adding an option include an enterprise field that matches the selected enterprising, and when displaying list of options filter just to that enterprise.

This will require a minor schema update (v4) created at apps\picsa-tools\option-tool\src\app\schemas to include the new enterprise property. All existing data can be migrated to set the default enterprise as crop

@chrismclarke chrismclarke moved this to Next Priority in PICSA Apps Development Mar 28, 2024
@chrismclarke chrismclarke changed the title Feat(options-tool) Enterprise Select feat(options-tool) Enterprise Select Mar 28, 2024
@chrismclarke chrismclarke changed the title feat(options-tool) Enterprise Select feat(options-tool) enterprise Select Mar 28, 2024
@OchiengPaul442 OchiengPaul442 self-assigned this Apr 20, 2024
@chrismclarke chrismclarke moved this from Next Priority to In Progress in PICSA Apps Development Apr 23, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in PICSA Apps Development Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants