Skip to content

Feature/day 6 project notes frontend uzairahmeddahraj#6

Open
UzairAhmedDahraj wants to merge 6 commits intomasterfrom
feature/day-6-project-notes-frontend-uzairahmeddahraj
Open

Feature/day 6 project notes frontend uzairahmeddahraj#6
UzairAhmedDahraj wants to merge 6 commits intomasterfrom
feature/day-6-project-notes-frontend-uzairahmeddahraj

Conversation

@UzairAhmedDahraj
Copy link
Copy Markdown

  • 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.

- 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.
Comment thread inertia/pages/projects/show.tsx Outdated
Comment thread inertia/pages/notes/index.tsx Outdated
Comment thread inertia/pages/notes/edit.tsx Outdated
Comment thread app/models/project.ts Outdated
const validSortBy = allowedSortFields.includes(sortBy) ? sortBy : 'created_at'

// Validate sortOrder parameter
const validSortOrder = sortOrder === 'asc' ? 'asc' : 'desc'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@UzairAhmedDahraj UzairAhmedDahraj changed the base branch from master to feature/day-6-project-notes-frontend-aminah March 22, 2025 14:07
@UzairAhmedDahraj UzairAhmedDahraj changed the base branch from feature/day-6-project-notes-frontend-aminah to master March 22, 2025 14:08
@UzairAhmedDahraj UzairAhmedDahraj force-pushed the feature/day-6-project-notes-frontend-uzairahmeddahraj branch from 78a7361 to f6628e5 Compare February 15, 2026 09:01
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

Successfully merging this pull request may close these issues.

2 participants