No description
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.
|
||
|---|---|---|
| Controllers | ||
| Data | ||
| Migrations | ||
| Models | ||
| Properties | ||
| Views | ||
| wwwroot | ||
| .gitignore | ||
| appsettings.json | ||
| Program.cs | ||
| README.md | ||
| TODO.md | ||
| turf_tasker.csproj | ||
| turf_tasker.sln | ||
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
- Clone the repository.
- Ensure you have the .NET 8 SDK installed.
- Navigate to the project directory and run
dotnet restore. - Run
dotnet ef database updateto create the initial SQLite database. - Run
dotnet runto start the application.