Skip to content

Commit

Permalink
feat(layouts): enhance app layouts (#205)
Browse files Browse the repository at this point in the history
This pull request includes multiple changes aimed at enhancing the
functionality and performance of the application. The most significant
changes include adding Sentry for error tracking, creating a new
`InventoryController`, and updating the `AdminLayout` for improved user
experience.

### Enhancements and New Features:

* **Error Tracking:**
* Added Sentry integration to `app/composer.json` and
`app/src/app/Core/Logger.php` for better error tracking and monitoring.
[[1]](diffhunk://#diff-5fd35cf0f24edf28811f71444391a8225d3119b288b7e24d472a55b5257cd582L21-R25)
[[2]](diffhunk://#diff-a43bacf687d5d68eb954b53c410dff7e94341cc4f7d5d5062938e27a9ace367fR5-R19)

* **New Controller:**
* Created `InventoryController` to manage inventory-related data and
render the inventory dashboard.

### Codebase Improvements:

* **Filtering Enhancements:**
* Updated `BaseModel::findAll` to handle `NOT NULL` and `NULL`
conditions in filters, improving query flexibility.
[[1]](diffhunk://#diff-57d475838e6428c42c3b9d5c460bea147ffb64f834e6ff8e980d351bf00c5c77R174-R185)
[[2]](diffhunk://#diff-57d475838e6428c42c3b9d5c460bea147ffb64f834e6ff8e980d351bf00c5c77R194-R196)

* **Controller Updates:**
* Modified `ElementController` and `ZoneController` to use the enhanced
`findAll` method with `NOT NULL` filters for better data retrieval.
[[1]](diffhunk://#diff-4113b23acf98ce62237f7ff18ae75cb40145e02322c9ffd8eae88aecfab5497cL29-R29)
[[2]](diffhunk://#diff-fd10cb96d7a272cc324000714e2404eec3ecde85f18109d020bea475e22e5d8cL7-R12)
[[3]](diffhunk://#diff-fd10cb96d7a272cc324000714e2404eec3ecde85f18109d020bea475e22e5d8cL34-R33)

### User Interface Improvements:

* **Admin Layout:**
* Significant updates to `AdminLayout.php` to include a responsive
navigation bar, user info dropdown, and improved submenu for better user
experience.
[[1]](diffhunk://#diff-e43b091c2e5f4ff0f2b90b03cfee557777f5d3df706873e74b366fa34d9aa051R1-L127)
[[2]](diffhunk://#diff-e43b091c2e5f4ff0f2b90b03cfee557777f5d3df706873e74b366fa34d9aa051R203-R213)

* **Title Formatting:**
  * Simplified title formatting in `CustomerLayout.php` for consistency.
  • Loading branch information
0x1026 authored Dec 12, 2024
2 parents 2342e68 + b6ee834 commit 35d1206
Show file tree
Hide file tree
Showing 23 changed files with 1,040 additions and 210 deletions.
5 changes: 3 additions & 2 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
}
],
"require-dev": {
"phpunit/phpunit": "11.5.0"
"phpunit/phpunit": "11.5.1"
},
"require": {
"php": "^8.2"
"php": "^8.2",
"sentry/sentry": "4.10.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 35d1206

Please sign in to comment.