Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[CRM][Fullstack] - Templates page layout
Changes
Implement a basic outline for the templates page based on Figma designs. This includes a new page at
/crm/templates, aTaskCardcomponent, and auseTaskTemplateListhook to retrieve all task templates on the frontend.On the backend, I created a route
GET /api/task-templateswhich uses the user's auth token for their orgId. This is used to get all task-templates within an organization.This PR also includes miscellaneous fixes: styling the Search component, adding a link to the template page to the side nav, and creating a Zod schema for Tags.
Notes
I also added a few fixes to account for tags. I updated some routes to handle the new tag data type in the task template routes. I have removed the old tag definition from the task-template services. If @LOTaher would like, I can fix those as well in this ticket.
I also added seed data for tags to account for the new data.
Screenshots
Checklist
Please go through all items before requesting reviewers:
Closes
Closes #176