Skip to content

Conversation

@eablack
Copy link
Contributor

@eablack eablack commented Jan 16, 2026

Summary

Migrates all Private Space name references to use the new semantic color.space() function from @heroku/heroku-cli-util instead of generic colors like color.cyan() or color.green().

This is PR 2 of 17 in the color system migration plan, focusing on adopting the semantic color for Private Spaces.

I also took this opportunity to add the new pull request template.

Changes Made

  • Updated 15 command files in packages/cli/src/commands/spaces/ to use color.space()
  • Updated apps/index.ts to use color.space() for space references
  • Changed all imports from @heroku-cli/color to @heroku/heroku-cli-util in affected files
  • Updated corresponding test files to match new color output (11 test files)

Visual Output

The new color.space() function provides consistent bold blue formatting with the ⬡ symbol prefix for Private Space names throughout the CLI.

Examples:

  • Destroying space ⬡ my-space
  • Creating space ⬡ my-space in team...
  • Apps in space ⬡ my-space

Type of Change

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Testing

Notes:

  • All existing tests have been updated to match the new color output format
  • No functional changes - only visual/cosmetic improvements to output

Steps:

  1. Passing CI suffices
  2. Manual testing of space commands (optional):
    • ./bin/run spaces - verify space names are colored with ⬡ symbol
    • ./bin/run spaces:info --space <name> - verify space name in output
    • ./bin/run apps --space <name> - verify "Apps in space" header

Related Issues

Part of the color system migration tracking issue -- https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002T2hvTYAR/view

Migrates all space name references to use the new semantic color.space()
function from @heroku/heroku-cli-util instead of generic colors like
color.cyan() or color.green().

Changes:
- Updated 15 command files in packages/cli/src/commands/spaces/
- Updated apps/index.ts to use color.space() for space references
- Changed all imports from @heroku-cli/color to @heroku/heroku-cli-util
- Updated color.cmd() to color.command() where affected by import changes
- Updated corresponding test files to match new color output

The new color.space() function provides consistent bold blue formatting
with the ⬡ symbol prefix for Private Space names throughout the CLI.

Part of the color system migration plan (PR 2 of 17).
@eablack eablack requested a review from a team as a code owner January 16, 2026 19:05
@eablack eablack changed the base branch from main to v11.0.0 January 16, 2026 19:10
Copy link
Contributor

@tlowrimore-heroku tlowrimore-heroku left a comment

Choose a reason for hiding this comment

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

LGTM!

@eablack eablack merged commit 5f86e9e into v11.0.0 Jan 16, 2026
13 checks passed
@eablack eablack deleted the eb/color-migration-space branch January 16, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants