Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Jul 17, 2025

Summary

This PR combines the AppSelectPrompt and TeamAppSelectPrompt into the AppSelectPrompt following #158.

Also included are improvements to the app selector mocks to expect a particular app environment and installation status 👾

No change to functionalities!

Requirements

@zimeg zimeg self-assigned this Jul 17, 2025
@zimeg zimeg added code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment labels Jul 17, 2025
@codecov
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.97%. Comparing base (0229807) to head (05c2bc5).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@mwbrooks mwbrooks left a 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)
Copy link
Member

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) {
Copy link
Member

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!

Base automatically changed from zimeg-chore-remove-bolt-experiment-app-select to main July 23, 2025 05:42
@zimeg
Copy link
Member Author

zimeg commented Jul 23, 2025

@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. 🚢 💨

@zimeg zimeg merged commit c186ffc into main Jul 23, 2025
6 checks passed
@zimeg zimeg deleted the zimeg-refactor-app-select-join branch July 23, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants