feat: Add Lawn Care Tips section and improve Dashboard layout #1

Merged
ciphervance merged 1 commit from feat/lawncaretips into main 2025-06-17 23:10:00 +00:00
ciphervance commented 2025-06-17 23:09:46 +00:00 (Migrated from gitlab.com)

This commit introduces a new "Lawn Care Tips" section to the application and refines the visual layout of the main Dashboard.

Key Changes:

  • Lawn Care Tips Feature:

    • Added LawnCareTip model with Title, Category, and Content properties.
    • Defined TipCategory enum for better organization (Mowing, Watering, Fertilizing, Weed Control, Aeration, General).
    • Integrated LawnCareTip into ApplicationDbContext for database persistence.
    • Updated _Layout.cshtml to include a new "Lawn Tips" navigation link.
  • Dashboard Layout Fix:

    • Refactored Views/Home/Index.cshtml to correctly use Bootstrap's grid system by placing the "Log a New Activity" card in its own div.row. This resolves the layout issue where the card was appearing immediately after the previous row without proper spacing.
    • Updated HomeController to include a LastAerationDate query for the dashboard display.
    • Modified DashboardViewModel to include LastAerationDate.
  • Build/Dependency Updates:

    • Added Microsoft.EntityFrameworkCore.SqlServer (likely a residue from scaffolding, though SQLite is still primary).
    • Added Microsoft.VisualStudio.Web.CodeGeneration.Design for scaffolding tools.

This enhances the application's functionality by providing a knowledge base and improves the user experience with a cleaner dashboard layout.

This commit introduces a new "Lawn Care Tips" section to the application and refines the visual layout of the main Dashboard. **Key Changes:** * **Lawn Care Tips Feature:** * Added `LawnCareTip` model with `Title`, `Category`, and `Content` properties. * Defined `TipCategory` enum for better organization (Mowing, Watering, Fertilizing, Weed Control, Aeration, General). * Integrated `LawnCareTip` into `ApplicationDbContext` for database persistence. * Updated `_Layout.cshtml` to include a new "Lawn Tips" navigation link. * **Dashboard Layout Fix:** * Refactored `Views/Home/Index.cshtml` to correctly use Bootstrap's grid system by placing the "Log a New Activity" card in its own `div.row`. This resolves the layout issue where the card was appearing immediately after the previous row without proper spacing. * Updated `HomeController` to include a `LastAerationDate` query for the dashboard display. * Modified `DashboardViewModel` to include `LastAerationDate`. * **Build/Dependency Updates:** * Added `Microsoft.EntityFrameworkCore.SqlServer` (likely a residue from scaffolding, though SQLite is still primary). * Added `Microsoft.VisualStudio.Web.CodeGeneration.Design` for scaffolding tools. This enhances the application's functionality by providing a knowledge base and improves the user experience with a cleaner dashboard layout.
ciphervance commented 2025-06-17 23:10:00 +00:00 (Migrated from gitlab.com)

mentioned in commit ed25245a1c

mentioned in commit ed25245a1c11db3f7b10a23cef0fcdd9bb8a29ba
ciphervance (Migrated from gitlab.com) merged commit ed25245a1c into main 2025-06-17 23:10:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: blakeridgway/turf-tasker#1
No description provided.