diff --git a/appview/accountmigration/accountmigration.go b/appview/accountmigration/accountmigration.go index d18d4260..71b2edc1 100644 --- a/appview/accountmigration/accountmigration.go +++ b/appview/accountmigration/accountmigration.go @@ -67,10 +67,32 @@ func (s *AccountMigration) migratePage(w http.ResponseWriter, r *http.Request) { s.logger.Error("knots lookup failed", "did", user.Did, "err", err) knots = nil } - s.pages.AccountMigrateFromGitHub(w, pages.AccountMigrateFromGitHubParams{ + if err := s.pages.AccountMigrateFromGitHub(w, pages.AccountMigrateFromGitHubParams{ BaseParams: pages.BaseParamsFromContext(r.Context()), Knots: knots, - }) + Repos: []pages.RepoImportParams{ + { + SourceKind: pages.RepoImportSourceGitHub, + CloneUrl: "https://github.com/boltlessengineer/rest.nvim", + Name: "rest.nvim", + Description: "A very fast, powerful, extensible and asynchronous Neovim HTTP client written in Lua.", + Website: "https://tangled.org", + Topics: []string{"lua", "neovim", "curl", "http-client", "nvim", "neovim-plugin", "rest-client"}, + Selected: true, + }, + { + SourceKind: pages.RepoImportSourceGitHub, + CloneUrl: "https://github.com/boltlessengineer/dot", + Name: "super-long-repo-name-fddasfsafdsfasdfaasdfasdfasfasdfasfdasdfasdfsadfsadfasdfaasdfasfasdfdsafd00000s", + Description: "dotfiles", + Website: "https://tangled.org", + Topics: []string{}, + Selected: true, + }, + }, + }); err != nil { + s.logger.Error("failed to render", "err", err) + } default: s.pages.AccountMigrate(w, pages.AccountMigrateParams{ BaseParams: pages.BaseParamsFromContext(r.Context()), diff --git a/appview/pages/pages.go b/appview/pages/pages.go index 1bf555b4..1bf235d0 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -2058,6 +2058,7 @@ func (p *Pages) AccountMigrate(w io.Writer, params AccountMigrateParams) error { type AccountMigrateFromGitHubParams struct { BaseParams Knots []string + Repos []RepoImportParams } type RepoImportSource string diff --git a/appview/pages/templates/account/migrate/fragments/repoList.html b/appview/pages/templates/account/migrate/fragments/repoList.html index 8d1e1ed6..ec8d0987 100644 --- a/appview/pages/templates/account/migrate/fragments/repoList.html +++ b/appview/pages/templates/account/migrate/fragments/repoList.html @@ -1,67 +1,86 @@ {{ define "account/migrate/fragments/repoList" }} {{ if not .Repos }} -
No importable repositories found.
+No importable repositories found.
{{ else }}