Skip to content

feat: include sandbox type when listing partner sandboxes#511

Merged
vegeris merged 3 commits intomainfrom
evegeris-highlight-partner-sandboxes
Apr 28, 2026
Merged

feat: include sandbox type when listing partner sandboxes#511
vegeris merged 3 commits intomainfrom
evegeris-highlight-partner-sandboxes

Conversation

@vegeris
Copy link
Copy Markdown
Contributor

@vegeris vegeris commented Apr 28, 2026

Changelog

This does not need to be included in the Changelog

Summary

This PR updates the Sandbox model to include the 'is_partner' bool which indicates whether this is a regular sandbox or a partner sandbox, and display it when listing one's partner sandboxes. We do not display the 'type' label for regular sandboxes to reduce visual noise

Preview

Screenshot 2026-04-28 at 1 34 29 PM

Testing

% hermes sandbox list --experiment=sandboxes

Requirements

@vegeris vegeris requested a review from a team as a code owner April 28, 2026 14:13
@vegeris vegeris added semver:patch Use on pull requests to describe the release version increment enhancement M-T: A feature request for new functionality labels Apr 28, 2026
@vegeris vegeris force-pushed the evegeris-highlight-partner-sandboxes branch from c59ebff to b58c106 Compare April 28, 2026 14:16
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.18%. Comparing base (fe42d45) to head (c376e4a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #511      +/-   ##
==========================================
- Coverage   71.19%   71.18%   -0.01%     
==========================================
  Files         222      222              
  Lines       18678    18680       +2     
==========================================
+ Hits        13297    13298       +1     
- Misses       4200     4201       +1     
  Partials     1181     1181              

☔ 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
Copy Markdown
Contributor

@srtaalej srtaalej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for these updates ⭐ i left a comment about the output - i can make the change if you agree 💟

Comment thread cmd/sandbox/list.go Outdated
Comment on lines +128 to +133
sandboxType := "Regular"
if s.IsPartner {
sandboxType = "Partner"
}
clients.IO.PrintInfo(ctx, false, " %s", style.Secondary(fmt.Sprintf("Type: %s", sandboxType)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you feel about making the Type param optional? so that it only shows when there is a Partner sandbox 🤔
since most sandboxes are regular the Type field adds visual noise to the output. so it might be helpful to only differentiate when there exists a partner sandbox

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me 🙂 Particularly with Partners being a small percentage of developers

@srtaalej srtaalej self-requested a review April 28, 2026 16:07
Comment thread cmd/sandbox/list.go Outdated
}
clients.IO.PrintInfo(ctx, false, " %s", style.Secondary(fmt.Sprintf("Type: %s", sandboxType)))
}

Copy link
Copy Markdown
Contributor Author

@vegeris vegeris Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this update!

From your earlier comment I was thinking we would want to only add this label if isPartner is true:

if s.IsPartner {
  clients.IO.PrintInfo(ctx, false, "    %s", style.Secondary("Type: Partner"))
}

(The API will return the is_partner param set to false for regular sandboxes)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm yes i guess my comment wasnt very clear - your version is simpler though so i'll go ahead and change it!

@vegeris vegeris changed the title feat: include sandbox type (regular vs partner) when listing sandboxes feat: include sandbox type when listing partner sandboxes Apr 28, 2026
@vegeris vegeris force-pushed the evegeris-highlight-partner-sandboxes branch from 43d0ccb to c376e4a Compare April 28, 2026 17:37
@vegeris vegeris merged commit 809c2ee into main Apr 28, 2026
8 checks passed
@vegeris vegeris deleted the evegeris-highlight-partner-sandboxes branch April 28, 2026 18:15
@zimeg zimeg added this to the Next Release milestone Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality 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