refactor(services): inline ProfileService logic into AccountViewView

Removes over-engineered ProfileService and ServiceInitializationManager
classes that were only used in one place. Inlines all profile logic
directly into AccountViewView.vue to reduce complexity and improve
maintainability.

- Deletes ProfileService.ts (325 lines)
- Deletes ServiceInitializationManager.ts (207 lines)
- Inlines ProfileData interface and methods into AccountViewView
- Maintains all existing functionality while reducing code footprint

perf(logging): convert excessive info logs to debug level

Reduces console noise by converting high-frequency, low-value logging
from info to debug level across navigation, API calls, and component
lifecycle operations. Improves performance and reduces log verbosity
for normal application flow.

- Router navigation guards: info → debug
- Plan loading operations: info → debug
- User registration checks: info → debug
- Image server rate limits: info → debug
- Component lifecycle events: info → debug
- Settings loading operations: info → debug

Maintains warn/error levels for actual issues while reducing noise
from expected application behavior.
This commit is contained in:
Matthew Raymer
2025-08-26 07:23:24 +00:00
parent 128ddff467
commit 9386b2e96f
10 changed files with 259 additions and 587 deletions

View File

@@ -30,7 +30,6 @@ export default class TopMessage extends Vue {
// - Cache management: this.$refreshSettings(), this.$clearAllCaches()
// - Ultra-concise database methods: this.$db(), this.$exec(), this.$query()
// - All methods use smart caching with TTL for massive performance gains
// - FIXED: Now properly respects database settings without forcing API server overrides
$notify!: (notification: NotificationIface, timeout?: number) => void;
@@ -45,10 +44,10 @@ export default class TopMessage extends Vue {
try {
// Load settings without overriding database values - fixes settings inconsistency
logger.info("[TopMessage] 📥 Loading settings without overrides...");
logger.debug("[TopMessage] 📥 Loading settings without overrides...");
const settings = await this.$accountSettings();
logger.info("[TopMessage] 📊 Settings loaded:", {
logger.debug("[TopMessage] 📊 Settings loaded:", {
activeDid: settings.activeDid,
apiServer: settings.apiServer,
warnIfTestServer: settings.warnIfTestServer,
@@ -65,7 +64,7 @@ export default class TopMessage extends Vue {
) {
const didPrefix = settings.activeDid?.slice(11, 15);
this.message = "You're not using prod, user " + didPrefix;
logger.info("[TopMessage] ⚠️ Test server warning displayed:", {
logger.debug("[TopMessage] ⚠️ Test server warning displayed:", {
apiServer: settings.apiServer,
didPrefix: didPrefix,
});
@@ -76,7 +75,7 @@ export default class TopMessage extends Vue {
) {
const didPrefix = settings.activeDid?.slice(11, 15);
this.message = "You are using prod, user " + didPrefix;
logger.info("[TopMessage] ⚠️ Production server warning displayed:", {
logger.debug("[TopMessage] ⚠️ Production server warning displayed:", {
apiServer: settings.apiServer,
didPrefix: didPrefix,
});