Skip to content

refactor(frontend): Phase 3A — migrate all consumers to import directly from @lib/twofactor-gateway#1079

Closed
vitormattos wants to merge 8 commits into
feat/phase2-package-workspace-foundationfrom
feat/phase3a-lib-direct-imports
Closed

refactor(frontend): Phase 3A — migrate all consumers to import directly from @lib/twofactor-gateway#1079
vitormattos wants to merge 8 commits into
feat/phase2-package-workspace-foundationfrom
feat/phase3a-lib-direct-imports

Conversation

@vitormattos
Copy link
Copy Markdown
Collaborator

Summary

Phase 3A of the frontend refactoring roadmap: eliminate all indirection through the compat shims introduced in Phase 2 by migrating every consumer to import directly from @lib/twofactor-gateway.

Depends on #1078.

Changes

Components — 5 files updated to import types, API functions, and model helpers directly from @lib/twofactor-gateway:

  • GatewayInstanceCard.vue
  • GatewayInstanceModal.vue
  • GatewayTestModal.vue
  • GatewayRoutingModal.vue
  • GatewaySection.vue

Views — consolidated import block:

  • AdminSettings.vue

Tests — mocks updated to target the canonical module path:

  • AdminSettings.spec.ts
  • GatewayTestModal.spec.ts

Validation

  • TypeScript check: ✅ 0 errors
  • Tests: ✅ 97/97 passing

…ewayInstanceCard

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…way in GatewayInstanceModal

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…y in GatewayTestModal

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…ewayRoutingModal

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…y in GatewaySection

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…-gateway in AdminSettings

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…tModal.spec

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
Copy link
Copy Markdown
Collaborator Author

Moved these changes into PR #1078 so the Phase 3A work continues in the original PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant