Feature/day 6 project notes frontend uzairahmeddahraj#6
Open
UzairAhmedDahraj wants to merge 6 commits intomasterfrom
Open
Feature/day 6 project notes frontend uzairahmeddahraj#6UzairAhmedDahraj wants to merge 6 commits intomasterfrom
UzairAhmedDahraj wants to merge 6 commits intomasterfrom
Conversation
- Added Project model with status enum (pending, in-progress, completed) - Created migration for projects table with status column - Implemented ProjectsController with full CRUD operations - Added dedicated endpoint for project status updates - Implemented pagination for listing projects - Created project seeder with sample data - Configured routes for all project operations
… - Commit 3 - Added migration for pinned notes boolean column - Implemented NotesController with sorting functionality - Added support for Markdown rendering using marked package - Enhanced note routes with togglePin endpoint - Updated note seeder to include pinned examples - Added createdAt/updatedAt sorting options
- Created `Projects.tsx` and `Notes.tsx` for handling frontend UI.
- Integrated `useForm()` and `usePage()` hooks for form submissions & data retrieval.
- Implemented dynamic state updates with Inertia.js.
- Applied UI from Task 2 & Task 3:
- Added Project listing page with relevant details.
- Enabled project editing functionality.
- Updated Notes UI:
- Display pinned notes at the top.
- Added sorting functionality for notes.
rome2o
reviewed
Mar 21, 2025
rome2o
reviewed
Mar 22, 2025
| const validSortBy = allowedSortFields.includes(sortBy) ? sortBy : 'created_at' | ||
|
|
||
| // Validate sortOrder parameter | ||
| const validSortOrder = sortOrder === 'asc' ? 'asc' : 'desc' |
Contributor
There was a problem hiding this comment.
Author
There was a problem hiding this comment.
I am working on understanding vine js concepts for request validation, i gave it a try but was unable to do it, although i was able to implement validation schemes however i had issues with certain methods like .Flash etc.
78a7361 to
f6628e5
Compare
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.
Projects.tsxandNotes.tsxfor handling frontend UI.useForm()andusePage()hooks for form submissions & data retrieval.