Skip to content

Conversation

@Mahmoud-Emad
Copy link
Collaborator

Description

Describe the changes introduced by this PR and what does it affect

Changes

List of changes this PR includes

Related Issues

List of related issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

- Add `formatConsumedFrom` utility function
- Import and use function in vacation request template
- Export function from utils module
- Add API endpoints for debugging and fixing user balances
- Implement Vue component for auditing and correcting vacation balances
- Update dashboard navigation to include "Danger Zone" with balance audit option
- Add Django management commands for debugging and recalculating user balances
- Update UsersAdminOfficeUsersApi to accept query params
- Remove redundant pagination logic from frontend components
- Refactor SupervisorsAPIView to fetch all active users
- Update GetUsersInAdminOfficeAPIView to support 'all' and 'active_only' params
- Add get_active_admin_office_users to filter users by office and active status
- Import VacationBalanceCalculator from utils
- Remove `size="comfortable"` from v-btn
- Add status filtering to vacation list endpoint
- Normalize request type parameter for filtering
- Update vacation list query logic for better filtering
- Remove unused 'pending-requests' route and component
- Add `ws` connection ref to Window interface
- Initialize `result` to null for vacation fetching
- Add null checks for API responses before accessing `results` and `count`
- Simplify queryset logic for vacation retrieval
- Add default values for request_type and status parameters
- Implement validation for user_id and request_type in GET method
- Improve user existence check before processing requests
- Update vacation query to conditionally add status and type
- Set default status to "all" in team pending requests
- Conditionally set col widths based on tab
- Hide user select when not on explore tab
- Adjust status and type select widths for team tab
- Add pointer cursor for buttons
- Display "Not Provided" if approval user is missing
- Set selected user to logged-in user initially
- Fetch users for all users to explore
- Allow viewing requests for any user via targetUserId
- Enable filtering user requests by full name in backend
- Make "All Users History" tab accessible to all users
- Use general user list endpoint
- Fetch up to 1000 users
- Assign results to users.value
- Add UsersActiveApi client class
- Update users API client to include active endpoint
- Implement AllActiveUsersAPIView for active users
- Add URL path for active users endpoint
- Add transform for get list response
- Add `is_old_balance` to vacation serializer
- Pass `is_old_balance` to Vacation model creation
- Pass `is_old_balance` to VacationNotification
@Mahmoud-Emad Mahmoud-Emad merged commit 2e22ede into development Jan 11, 2026
2 checks passed
@Mahmoud-Emad Mahmoud-Emad deleted the development_debugging_user_balance branch January 11, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants