forked from trent_larson/crowd-funder-for-time-pwa
Complete ProjectsView.vue Triple Migration Pattern with literal extraction
Apply full database migration (databaseUtil → PlatformServiceMixin), replace raw SQL with service methods, migrate 3 notifications to helper methods. Preserve 1 complex modal for advanced routing features while extracting all literal strings to NOTIFY_CAMERA_SHARE_METHOD constant. Add computed properties (offerTabClasses, projectTabClasses) to streamline template logic and comprehensive JSDoc documentation for all methods. Update migration templates to mandate literal extraction from complex modals. ProjectsView.vue now appropriately incomplete: helper methods for simple notifications, raw $notify preserved only where advanced features required.
This commit is contained in:
@@ -159,6 +159,40 @@ export const NOTIFY_CONFIRM_CLAIM = {
|
||||
|
||||
// UserProfileView.vue constants
|
||||
export const NOTIFY_PROFILE_LOAD_ERROR = {
|
||||
title: "Profile Load Error",
|
||||
title: "Profile Load Error",
|
||||
message: "There was a problem loading the profile.",
|
||||
};
|
||||
|
||||
// ProjectsView.vue constants
|
||||
export const NOTIFY_NO_ACCOUNT_ERROR = {
|
||||
title: "No Account Found",
|
||||
message: "You need an identifier to load your projects.",
|
||||
};
|
||||
|
||||
export const NOTIFY_PROJECT_LOAD_ERROR = {
|
||||
title: "Project Load Error",
|
||||
message: "Failed to get projects from the server.",
|
||||
};
|
||||
|
||||
export const NOTIFY_PROJECT_INIT_ERROR = {
|
||||
title: "Initialization Error",
|
||||
message: "Something went wrong loading your projects.",
|
||||
};
|
||||
|
||||
export const NOTIFY_OFFERS_LOAD_ERROR = {
|
||||
title: "Offer Load Error",
|
||||
message: "Failed to get offers from the server.",
|
||||
};
|
||||
|
||||
export const NOTIFY_OFFERS_FETCH_ERROR = {
|
||||
title: "Offer Fetch Error",
|
||||
message: "Got an error loading offers.",
|
||||
};
|
||||
|
||||
// ProjectsView.vue complex modals
|
||||
export const NOTIFY_CAMERA_SHARE_METHOD = {
|
||||
title: "Are you nearby with cameras?",
|
||||
text: "If so, we'll use those with QR codes to share.",
|
||||
yesText: "we are nearby with cameras",
|
||||
noText: "we will share another way",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user