Add project hours and enhance hours overview with short, SAP link and city flag #19

Merged
rygos merged 1 commit from codex/add-hours-field-and-navigation-for-projects into master 2026-01-13 15:43:42 +00:00
rygos commented 2026-01-13 15:42:50 +00:00 (Migrated from github.com)

Motivation

  • Track an estimated/allocated number of hours for each project and persist that value in the schema and model.
  • Provide a navigable overview page that lists finished projects by completion year and shows recorded hours.
  • Allow filtering the overview by year and only show years that have finished projects.
  • Expand the hours overview to include Short, SAP (clickable to the project) and City with flag to match the customer display.

Description

  • Added migration 2024_10_15_000001_add_hours_to_projects_table.php to add a nullable unsigned hours column to the projects table.
  • Updated Project model files (app/Models/Project.php and app/Models/Base/Project.php) to cast hours and include hours in the $fillable metadata.
  • Persist hours from the project creation form in ProjectsController::store and added a numeric hours input in resources/views/projects/add.blade.php.
  • Introduced HoursController::index, registered the hours.index route and navigation link, and created/updated resources/views/hours/index.blade.php to show finished projects for the selected year with Short, SAP (linked to projects.view), and City (flag + name) columns.

Testing

  • Executed a Playwright script that opened /hours and saved a screenshot after the initial implementation, and it completed successfully.
  • Re-ran the Playwright screenshot after updating the hours table columns (Short/SAP/City) and it completed successfully, producing an updated screenshot.
  • No unit or feature tests were added or run as part of these changes.

Codex Task

### Motivation - Track an estimated/allocated number of hours for each project and persist that value in the schema and model. - Provide a navigable overview page that lists finished projects by completion year and shows recorded hours. - Allow filtering the overview by year and only show years that have finished projects. - Expand the hours overview to include `Short`, `SAP` (clickable to the project) and `City` with flag to match the customer display. ### Description - Added migration `2024_10_15_000001_add_hours_to_projects_table.php` to add a nullable unsigned `hours` column to the `projects` table. - Updated `Project` model files (`app/Models/Project.php` and `app/Models/Base/Project.php`) to cast `hours` and include `hours` in the `$fillable` metadata. - Persist `hours` from the project creation form in `ProjectsController::store` and added a numeric `hours` input in `resources/views/projects/add.blade.php`. - Introduced `HoursController::index`, registered the `hours.index` route and navigation link, and created/updated `resources/views/hours/index.blade.php` to show finished projects for the selected year with `Short`, `SAP` (linked to `projects.view`), and `City` (flag + name) columns. ### Testing - Executed a Playwright script that opened `/hours` and saved a screenshot after the initial implementation, and it completed successfully. - Re-ran the Playwright screenshot after updating the hours table columns (`Short`/`SAP`/`City`) and it completed successfully, producing an updated screenshot. - No unit or feature tests were added or run as part of these changes. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_6966655adbdc83288ecfa1060ecfac46)
rygos (Migrated from github.com) reviewed 2026-01-13 15:43:34 +00:00
rygos (Migrated from github.com) left a comment

ok

ok
Sign in to join this conversation.
No description provided.