forked from jsnbuchanan/crowd-funder-for-time-pwa
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user