forked from trent_larson/crowd-funder-for-time-pwa
Migrate DiscoverView.vue to Enhanced Triple Migration Pattern
- Replaced all databaseUtil and direct PlatformServiceFactory usage with PlatformServiceMixin methods - Removed all raw SQL queries from the component - Centralized all notification messages in src/constants/notifications.ts - Replaced direct $notify calls with notification helpers and TIMEOUTS constants - Streamlined template logic (tab classes via computed properties) - Updated migration documentation and security audit - Ran lint-fix; no errors remain Ready for human testing and validation.
This commit is contained in:
@@ -1017,5 +1017,25 @@ export const NOTIFY_GIFT_CONFIRM_MODAL = {
|
||||
// Used in: ConfirmGiftView.vue (copyToClipboard method - copied toast)
|
||||
export const NOTIFY_COPIED_TO_CLIPBOARD = {
|
||||
title: "Copied",
|
||||
message: (description?: string) => `${description || "That"} was copied to the clipboard.`,
|
||||
message: (description?: string) =>
|
||||
`${description || "That"} was copied to the clipboard.`,
|
||||
};
|
||||
|
||||
// DiscoverView.vue specific constants
|
||||
// Used in: DiscoverView.vue (searchAll method - search error)
|
||||
export const NOTIFY_DISCOVER_SEARCH_ERROR = {
|
||||
title: "Error",
|
||||
message: "There was an error with the search.",
|
||||
};
|
||||
|
||||
// Used in: DiscoverView.vue (searchLocal method - local search error)
|
||||
export const NOTIFY_DISCOVER_LOCAL_SEARCH_ERROR = {
|
||||
title: "Error",
|
||||
message: "There was an error with the local search.",
|
||||
};
|
||||
|
||||
// Used in: DiscoverView.vue (requestTiles method - map search error)
|
||||
export const NOTIFY_DISCOVER_MAP_SEARCH_ERROR = {
|
||||
title: "Error",
|
||||
message: "There was an error with the map search.",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user