Enhance dashboard page #35
Labels
No labels
app
backlog
bug
ci-cd
contribution welcome
duplicate
enhancement
good first issue
help wanted
question
testing
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
#59 Add browser test for the dashboard}
lvl0/dishplanner
Reference: lvl0/dishplanner#35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
just the 3 options... it will be filled in with the first-time wizard eventually, but after that...
At the very least some stats? Not sure what can be interesting enough to show: dishes / month ? Favorite dishes per user? Not sure here.
Closing as already delivered — the dashboard now covers everything this ticket asks for.
The 3 options —
resources/views/dashboard.blade.phphas nav cards for Manage Users, Manage Dishes, and View Schedule.Stats —
DishPlanner\Dashboard\Services\DashboardStatsServiceprovides:dishCount()userCount()mealsThisMonth()favoriteDishes()The last two are exactly the ideas floated in the description ("dishes / month?", "Favorite dishes per user?"). All stats are planner-scoped, and
favoriteDishes()breaks count ties deterministically by dish name.Built out across the dashboard rework, most recently
561750d(FOSS pivot).If additional stats are wanted, they need a concrete spec — the description's "Not sure what can be interesting enough to show" isn't enough to implement against. Worth a fresh ticket rather than reopening this one.
Follow-up worth tracking separately:
favoriteDishes()loads everyScheduledUserDishfor the planner into memory (->get()) across all time, eager-loadinguseranduserDish.dish, then groups in PHP. Correct, but it's an unbounded result set on every dashboard load — an aggregate that belongs in SQL. Fine at current data volumes, painful at scale.Reopening — my previous comment was wrong on a key point.
I claimed the dashboard stats work was already committed, "built out across the dashboard rework, most recently
561750d". That is false. I read the files from the working tree without checking whether they were inHEAD.The actual state at the time of that comment:
HEAD:resources/views/dashboard.blade.phpcontains zero references tostats, andDashboardStatsServiceis untracked. The functionality I described is real and accurate, but it lives in uncommitted work in progress — not in the repository, and not in561750d.The ticket is therefore not delivered, and this is being finished now rather than closed.