Skip to content

chore: clean up stale modal code after Create pages refactor #397

@jeffmccune

Description

@jeffmccune

Parent Issue

Part of #394

Goal

Remove dead code, stale imports, and outdated references left behind after converting the Create Deployment and Create Template modals to dedicated pages.

Acceptance Criteria

  • frontend/src/components/create-template-modal.tsx is deleted (no longer used anywhere)
  • frontend/src/components/create-template-modal.test.tsx is deleted
  • All imports of CreateTemplateModal are removed from other files
  • Inline modal state variables removed from deployments/index.tsx (e.g., createOpen, createName, etc.)
  • No unused imports remain in modified files
  • Any stale comments referencing the old modal patterns are removed
  • Tests pass: make test
  • make generate succeeds

Implementation Notes

Files to delete

  • frontend/src/components/create-template-modal.tsx
  • frontend/src/components/create-template-modal.test.tsx

Files to scan for stale references

  • frontend/src/routes/_authenticated/projects/$projectName/deployments/index.tsx — ensure all modal-related state and imports are gone
  • frontend/src/routes/_authenticated/projects/$projectName/templates/index.tsx — ensure CreateTemplateModal import is gone
  • Any other files that import create-template-modal

Testing approach

  • Run make test to verify nothing breaks
  • Run make generate to verify the build succeeds
  • Grep for CreateTemplateModal, create-template-modal to confirm no stale references

Dependencies

Depends on #395 (Create Template page) and #396 (Create Deployment page).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions