This repository was archived by the owner on Sep 22, 2025. It is now read-only.
implemented task calendar view and logbook view with api integration #374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Sprint 1
Features Available
Backend Endpoints Used
Based on PR #55, the calendar will use:
Key Features Implemented:
Associated MS Planner Tasks
Task List Update
Sprint 2
I've created a complete Android integration for the backend Patient Log API from pull request #43
Complete API Integration
LogbookApiService - Handles all HTTP requests to your backend
Updated models - Properly formatted for the API responses
ApiClient setup - Retrofit configuration with proper error handling
UI Components
Updated PatientLogbookActivity - Works with your existing dark-themed layout
Missing drawable resources - All icons and backgrounds needed
Dialog integration - Uses your existing LogEntryDialog
Backend API Endpoints Covered
POST /api/v1/patient-logs - Create new log entries
GET /api/v1/patient-logs - Fetch all logs with optional filtering
DELETE /api/v1/patient-logs/{id} - Delete logs with permission checking
Complete Logbook System Features
Core Functionality
UI Components Created
User Experience
Card-based design matching your app's dark theme
Role badges showing who created each entry
Formatted timestamps for easy reading
Validation for required fields
Loading states and error messages
Data Management
MVVM architecture with ViewModel and Repository
Reactive UI using StateFlow
Local state management for smooth UX
Pull-to-refresh functionality
Key Visual Features
Header with back navigation and filter button
Card-based log entries with role badges (NURSE, DOCTOR, ADMIN)
Metadata row showing creator and timestamp
Delete buttons (red X) for each entry
Floating Action Button (blue +) for creating new logs
Modal overlay with form fields
Required field indicators with asterisks (*)
Multi-line description text area
Action buttons (Cancel/Save) at bottom
Creator information banner with role badge
Read-only fields showing log content
Formatted timestamps for better readability
Centered icon and helpful text
Call-to-action encouraging first log creation
Clean, uncluttered appearance
Visual Design Notes
Dark theme consistent with your calendar
Material Design cards with subtle shadows
Color-coded role badges for quick identification
Proper spacing and typography hierarchy
Touch-friendly buttons and interactive elements
Screenshots and/or Gifs
Associated MS Planner Tasks
Known Issues
[Describe any known issue with this change]