feat: migrate QuickActionBvcBeginView to Enhanced Triple Migration Pattern

- Database: Replace databaseUtil with PlatformServiceMixin
- Notifications: Add BVC constants and helper system
- Template: Extract computed properties and goBack method
- Enhanced logging and comprehensive documentation
- All BVC meeting functionality preserved
This commit is contained in:
Matthew Raymer
2025-07-09 03:18:50 +00:00
parent ec0dc26314
commit 53b090a21b
5 changed files with 356 additions and 256 deletions

View File

@@ -161,6 +161,46 @@ export const NOTIFY_CONFIRMATIONS_ONLY_SUCCESS = {
message: "Your confirmations have been recorded.",
};
// QuickActionBvcBeginView.vue specific constants
// Used in: QuickActionBvcBeginView.vue (record method - processing status)
export const NOTIFY_BVC_PROCESSING = {
title: "Sent...",
message: "",
};
// Used in: QuickActionBvcBeginView.vue (record method - time submission error)
export const NOTIFY_BVC_TIME_ERROR = {
title: "Error",
message: "There was an error sending the time.",
};
// Used in: QuickActionBvcBeginView.vue (record method - attendance submission error)
export const NOTIFY_BVC_ATTENDANCE_ERROR = {
title: "Error",
message: "There was an error sending the attendance.",
};
// Used in: QuickActionBvcBeginView.vue (record method - general submission error)
export const NOTIFY_BVC_SUBMISSION_ERROR = {
title: "Error",
message: "There was an error sending the claims.",
};
// Helper function for dynamic BVC success messages
// Used in: QuickActionBvcBeginView.vue (record method - dynamic success message)
export function createBvcSuccessMessage(
timeSuccess: boolean,
attendedSuccess: boolean,
): string {
if (timeSuccess && attendedSuccess) {
return "Your attendance and time have been recorded.";
} else if (timeSuccess) {
return "Your time has been recorded.";
} else {
return "Your attendance has been recorded.";
}
}
// ClaimReportCertificateView.vue specific constants
// Used in: ClaimReportCertificateView.vue (fetchClaim method - error loading claim)
export const NOTIFY_ERROR_LOADING_CLAIM = {