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:
Matthew Raymer
2025-07-08 12:19:09 +00:00
parent 6857cb02b5
commit 0d75dd6262
4 changed files with 263 additions and 55 deletions

View File

@@ -792,12 +792,9 @@ export default class ConfirmGiftView extends Vue {
* Verifies user eligibility and handles confirmation workflow
*/
async confirmConfirmClaim(): Promise<void> {
this.notify.confirm(
NOTIFY_GIFT_CONFIRM_MODAL.message,
async () => {
await this.confirmClaim();
},
);
this.notify.confirm(NOTIFY_GIFT_CONFIRM_MODAL.message, async () => {
await this.confirmClaim();
});
}
// similar code is found in ProjectViewView
@@ -830,10 +827,7 @@ export default class ConfirmGiftView extends Vue {
);
} else {
logger.error("Got error submitting the confirmation:", result);
this.notify.error(
NOTIFY_GIFT_CONFIRMATION_ERROR.message,
TIMEOUTS.LONG,
);
this.notify.error(NOTIFY_GIFT_CONFIRMATION_ERROR.message, TIMEOUTS.LONG);
}
}