Add dates and category metadata for tasks - #174
Open
braican wants to merge 5 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the ability to associate dates and categories to tasks. This PR resolves #170.
This pull request introduces category management for tasks, improves the UI for task metadata input, and refines the handling of rate toggles and layout spacing. The main changes include adding a reusable
CategoryPickercomponent, updating the task form and task item components to support categories and dates, and adjusting the UI for better consistency and usability.Category management and task metadata:
CategoryPickercomponent (src/components/category-picker/index.tsx,src/components/category-picker/category-picker.module.css) that allows users to add, remove, and create categories for tasks using a combobox with multi-select and tag UI. [1] [2]src/components/task-form/index.tsx) to include category and date fields, using the newCategoryPickerand supporting category creation and selection. The form now resets these fields on close. [1] [2] [3] [4]src/components/task-item/index.tsx) to display and edit categories and dates, persisting changes and supporting category creation inline. [1] [2]UI and layout improvements:
src/app/globals.css,src/components/task-form/task-form.module.css). [1] [2] [3]Rate toggle logic:
src/components/task-form/index.tsx,src/components/invoice-task-item/index.tsx,src/components/task-item/index.tsx). [1] [2] [3]Dependency and context updates:
downshiftdependency for accessible combobox and tag group support in the category picker (package.json).CategoryProviderin the app layout to provide category context throughout the app (src/app/layout.tsx). [1] [2]