Skip to content

Release: Last Action column and Edit dialog fixes#784

Merged
ismaeldosil merged 3 commits intomasterfrom
feature/last-action-release
Jan 28, 2026
Merged

Release: Last Action column and Edit dialog fixes#784
ismaeldosil merged 3 commits intomasterfrom
feature/last-action-release

Conversation

@ismaeldosil
Copy link
Collaborator

@ismaeldosil ismaeldosil commented Jan 28, 2026

Summary

  • Add Last Action column showing most recent user activity
  • Display format: "Action Type - Date" (e.g., "Observation - 1/27/26, 3:45 PM")
  • Implement edit dialog in UsersPage for All Users tab
  • Optimized batch queries (5 queries instead of ~3000)

PRs included

- Add getUsersLastAction() method with optimized batch queries
- Query 5 collections in parallel (observations, knowledgeChecks,
  conferencePlans, actionPlans, emails)
- Build Map<userId, lastDate> in memory for O(1) lookups
- Add lastAction to User interface and getAllUsers() result
- Add sortable "Last Action" column to AllUsersTable
- Include Last Action in CSV export

Performance: 5 queries total instead of 2,995 (599 users × 5 collections)

Closes CHALK-090
Closes CHALK-091
Closes CHALK-092
- Display action type (Observation, Training, Conference Plan, etc.) alongside date
- Add lastActionType field to User interface
- Update CSV export with Action Type column
- Fix potential undefined email issue in Edit dialog

Closes CHALK-090
- Add edit dialog to UsersPage for All Users tab
- Change Last Action format to "Action - Date" (action first)
- Add archive confirmation dialog
- Fix handleAllUserClick which was only logging

Closes CHALK-090
@ismaeldosil ismaeldosil merged commit aaa4f02 into master Jan 28, 2026
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.

1 participant