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

🐴 Create Labels State Management (Store, Models, Services etc) #377

Open
IanOdhiambo9 opened this issue Mar 23, 2023 · 0 comments
Open

Comments

@IanOdhiambo9
Copy link
Collaborator

🐴 Create Labels State Management (Store, Models, Services etc)---

Quick links: Summary | Description | Technical-Analysis | Acceptance-Criteria

NOTE:: This issue is dependent on #362 and #364


Summary

As a user I want labels for my stories

Description

Stories of bots relate to each other either by reference (jump), by parent-child relationship (brick) or by role within the system (re-usable info, assessment, ...)

To enable CRUD operations for the labels on the CLM there needs to be state layer supporting that, we need the following:

1. A Labels store that returns an Observable of the labels collection on firebase.
2. A labels model that defines the data structure type of a label (id: string, name: string).
3. A labels state service that performs all major labels state operations (CRUD etc)

Your assignment is to create the 3 layers mentioned above to support the input field in #366

The store will be created in state/convs-mgr/stories/labels (in a stores folder)
The model will be created in model/convs-mgr/stories/labels
The LabelsStateService will be created in state/convs-mgr/stories/labels (in a services folder)

Please take note of all the design features

Technical Analysis

The stores performs all CRUD operations via the service and the interface is properly created and exported from it's lib.

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

No branches or pull requests

1 participant