No description
Find a file
Blake Ridgway 5074a9664a feat: Add Lawn Care Tips section and improve 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.
2025-06-17 18:09:05 -05:00
Controllers feat: Add Lawn Care Tips section and improve Dashboard layout 2025-06-17 18:09:05 -05:00
Data feat: Add Lawn Care Tips section and improve Dashboard layout 2025-06-17 18:09:05 -05:00
Migrations feat: Add Lawn Care Tips section and improve Dashboard layout 2025-06-17 18:09:05 -05:00
Models feat: Add Lawn Care Tips section and improve Dashboard layout 2025-06-17 18:09:05 -05:00
Properties Init commit 2025-06-17 13:22:51 -05:00
Views feat: Add Lawn Care Tips section and improve Dashboard layout 2025-06-17 18:09:05 -05:00
wwwroot Init commit 2025-06-17 13:22:51 -05:00
.gitignore Init commit 2025-06-17 13:21:46 -05:00
appsettings.json Init commit 2025-06-17 13:22:51 -05:00
Program.cs Init commit 2025-06-17 13:22:51 -05:00
README.md Init commit 2025-06-17 13:21:46 -05:00
TODO.md Init commit 2025-06-17 13:21:46 -05:00
turf_tasker.csproj feat: Add Lawn Care Tips section and improve Dashboard layout 2025-06-17 18:09:05 -05:00
turf_tasker.sln Init commit 2025-06-17 13:22:51 -05:00

MowLog

A simple but powerful ASP.NET Core MVC application designed to track lawn care activities. This project serves as a hands-on learning exercise to explore and master the fundamentals of the ASP.NET Core MVC framework, from data modeling with Entity Framework Core to building dynamic, data-driven views.

Key Features

  • Log lawn care events (Mowing, Watering, Fertilizing, etc.).
  • Track mowing patterns to ensure a healthy lawn and prevent ruts.
  • Dashboard homepage showing the last time key activities were performed and what the next mowing pattern should be.
  • A filterable and sortable log of all past activities.
  • Clean, responsive UI using Bootstrap.

Tech Stack

  • Backend: C#, ASP.NET Core 8 MVC
  • Database: Entity Framework Core 8 with SQLite
  • Frontend: HTML, CSS, Bootstrap 5, JavaScript (with jQuery)
  • Development Environment: JetBrains Rider on Fedora Linux
  • Version Control: Git with GitLab

How to Run

  1. Clone the repository.
  2. Ensure you have the .NET 8 SDK installed.
  3. Navigate to the project directory and run dotnet restore.
  4. Run dotnet ef database update to create the initial SQLite database.
  5. Run dotnet run to start the application.