refactor: standardize notify helper usage and document migration workflow

- Refactor notify usage in GiftedDialog.vue, AccountViewView.vue, ClaimView.vue, and DataExportSection.vue:
  • Use notify as a property initialized in created() with createNotifyHelpers(this.$notify)
  • Remove getter-based notify patterns for consistency and lifecycle safety
  • Fix linter/type errors related to notify property initialization

- Add mandatory per-file migration workflow to doc/migration-progress-tracker.md:
  • For each file: (1) migrate to PlatformServiceMixin, (2) immediately standardize notify usage and fix linter/type errors
  • Clarifies this two-step process is required for every file, not as a global sweep

All migrated files are now consistent, maintainable, and ready for further migration work.
This commit is contained in:
Matthew Raymer
2025-07-06 11:56:12 +00:00
parent 86fd73051a
commit 8d5e4ddbfb
8 changed files with 76 additions and 125 deletions

View File

@@ -1,5 +1,17 @@
# Migration Progress Tracker: PlatformServiceMixin & 52-File Migration
## Per-File Migration Workflow (MANDATORY)
For each file migrated:
1. **First**, migrate to PlatformServiceMixin (replace all databaseUtil usage, etc.).
2. **Immediately after**, standardize notify helper usage (property + created() pattern) and fix any related linter/type errors.
**This two-step process is to be followed for every file, not as a global sweep at the end.**
Anyone picking up this migration should follow this workflow for consistency and completeness.
---
## Overview
This document tracks the progress of the 2-day sprint to complete PlatformServiceMixin implementation and migrate all 52 files from databaseUtil imports to PlatformServiceMixin usage.
@@ -176,7 +188,7 @@ export default class ComponentName extends Vue {
- [ ] UserProfileView.vue
### **Components (15 files) - Priority 2**
**Progress**: 2/15 (13%)
**Progress**: 3/15 (20%)
- [x] UserNameDialog.vue ✅ **MIGRATED**
- [ ] ActivityListItem.vue
@@ -190,7 +202,7 @@ export default class ComponentName extends Vue {
- [ ] EntitySummaryButton.vue
- [x] FeedFilters.vue ✅ **MIGRATED**
- [ ] GiftDetailsStep.vue
- [ ] GiftedDialog.vue
- [x] GiftedDialog.vue**MIGRATED**
- [ ] GiftedPrompts.vue
- [ ] HiddenDidDialog.vue
- [ ] IconRenderer.vue
@@ -273,8 +285,8 @@ find src -name "*.vue" -o -name "*.ts" | xargs grep -l "import.*databaseUtil" |
### **Overall Progress**
- **Total files to migrate**: 52
- **Files migrated**: 2
- **Progress**: 4%
- **Files migrated**: 3
- **Progress**: 6%
---

View File

@@ -231,7 +231,7 @@ import { logger } from '../utils/logger';
logger.debug('[Migration] Starting migration process...');
const result = await migrateAll();
logger.debug('[Migration] Migration completed:', result);
```
```
## Benefits of PlatformServiceMixin Approach