generated sotries
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
# Story 6.3: Quick Actions Panel
|
||||
|
||||
## Epic Reference
|
||||
**Epic 6:** Admin Dashboard
|
||||
|
||||
## User Story
|
||||
As an **admin**,
|
||||
I want **quick access to pending items and common tasks**,
|
||||
So that **I can efficiently manage my daily workflow**.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
### Pending Bookings Widget
|
||||
- [ ] Count badge with urgent indicator
|
||||
- [ ] Link to booking management
|
||||
- [ ] Mini list of recent pending (3-5)
|
||||
|
||||
### Today's Schedule Widget
|
||||
- [ ] List of today's consultations
|
||||
- [ ] Time and client name
|
||||
- [ ] Quick status update buttons
|
||||
|
||||
### Recent Timeline Updates Widget
|
||||
- [ ] Last 5 updates made
|
||||
- [ ] Quick link to timeline
|
||||
|
||||
### Quick Action Buttons
|
||||
- [ ] Create user
|
||||
- [ ] Create post
|
||||
- [ ] Block time slot
|
||||
|
||||
### Notification Bell
|
||||
- [ ] Pending items count
|
||||
|
||||
## Technical Notes
|
||||
|
||||
```php
|
||||
public function with(): array
|
||||
{
|
||||
return [
|
||||
'pendingBookings' => Consultation::pending()->latest()->take(5)->get(),
|
||||
'todaySchedule' => Consultation::approved()->whereDate('scheduled_date', today())->orderBy('scheduled_time')->get(),
|
||||
'recentUpdates' => TimelineUpdate::latest()->take(5)->with('timeline.user')->get(),
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
## Definition of Done
|
||||
- [ ] All widgets display correctly
|
||||
- [ ] Quick actions work
|
||||
- [ ] Real-time updates with polling
|
||||
- [ ] Tests pass
|
||||
|
||||
## Estimation
|
||||
**Complexity:** Medium | **Effort:** 3-4 hours
|
||||
Reference in New Issue
Block a user