-
Notifications
You must be signed in to change notification settings - Fork 24
refactor: join the app selector and team selector logic #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #159 +/- ##
==========================================
+ Coverage 62.94% 62.97% +0.02%
==========================================
Files 212 212
Lines 21643 21592 -51
==========================================
- Hits 13624 13597 -27
+ Misses 6965 6950 -15
+ Partials 1054 1045 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mwbrooks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Very nice @zimeg! Great eye for noticing the opportunity to join these two prompts. It'll be simpler to read and use, thanks to you!
🧪 Manual testing looks good on both Standalone Workspaces and Enterprise Organizations.
| // as team domain is not guaranteed to be unique | ||
| func (ac *AppClient) getDeployedAppTeamDomain(ctx context.Context) string { | ||
| // Find the app team using the priority: | ||
| // 1. Team Flag (set by the user or prompts.TeamAppSelectPrompt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Hawkeye
|
|
||
| // TeamAppSelectPrompt prompts the user to select an app from a specified team environment, | ||
| // returning the selected app. This app might require installation before use if `status == ShowAllApps`. | ||
| func TeamAppSelectPrompt(ctx context.Context, clients *shared.ClientFactory, env AppEnvironmentType, status AppInstallStatus) (SelectedApp, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: It's nice to be continually removing and consolidating code and functionality!
|
@mwbrooks Filtering apps for selection had so many steps before but I'm finding the "app with auth" value useful from this function too! Let's continue these improvement to code health and merge this PR. 🚢 💨 |
Summary
This PR combines the
AppSelectPromptandTeamAppSelectPromptinto theAppSelectPromptfollowing #158.Also included are improvements to the app selector mocks to expect a particular app environment and installation status 👾
No change to functionalities!
Requirements