Skip to content

fix: make dev store creation links clickable in CLI #6043

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

amcaplan
Copy link
Contributor

@amcaplan amcaplan commented Jun 30, 2025

Summary

This PR makes the dev store creation URL clickable in the CLI when developers don't have any dev stores associated with their organization.

What changed

  • Modified getCreateDevStoreLink() in both app-management-client.ts and partners-client.ts to return TokenItem instead of plain string
  • Updated the DeveloperPlatformClient interface to reflect the new return type
  • URLs now use the CLI UI Kit's link token format: {link: {url, label}}

Why

Previously, developers had to manually copy and paste the URL from the terminal. With this change, they can click the link directly in terminals that support clickable links, improving the developer experience.

Test plan

  • Run npm dev without any dev stores to see the clickable link
  • Verify the link works in terminals that support clickable links
  • Confirm fallback behavior in terminals that don't support links
  • Test both App Management and Partners organization flows

Fixes https://github.com/shop/issues-develop/issues/114

@amcaplan amcaplan added the claudeception Pull request created by Claudeception agents label Jun 30, 2025
Copy link
Contributor

github-actions bot commented Jun 30, 2025

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
78.37% (+0.01% 🔼)
12573/16044
🟡 Branches
72.52% (+0.04% 🔼)
6123/8443
🟡 Functions 78.49% 3280/4179
🟡 Lines
78.81% (+0.01% 🔼)
11898/15098
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / info.ts
81.44%
61.19% (-1.49% 🔻)
90.32% 83.15%

Test suite run success

2916 tests passing in 1262 suites.

Report generated by 🧪jest coverage report action from 478adc7

- Changed getCreateDevStoreLink() to return TokenItem instead of string
- Updated both app-management-client and partners-client implementations
- Links now use CLI UI Kit's clickable link format

Fixes #114

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@amcaplan amcaplan force-pushed the clickable-link-fix branch from 90627e8 to 58a1e8c Compare July 1, 2025 18:54
@amcaplan amcaplan marked this pull request as ready for review July 1, 2025 21:14
@amcaplan amcaplan requested a review from a team as a code owner July 1, 2025 21:14

This comment has been minimized.

Copy link
Contributor Author

@amcaplan amcaplan left a comment

Choose a reason for hiding this comment

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

I think it would be better to use a link with a semantic label. Basically the label would be "Create one now" and then the URL would be the URL as is.

amcaplan added 2 commits July 2, 2025 12:17
- Changed link labels from URLs to 'Create one now'
- Removed duplicate text from messages to avoid repetition
- Improves user experience with clearer action text

Addresses reviewer feedback on PR #6043
- Removed newline character between message and link
- Link now appears on the same line as the message
- Fixes spacing issue identified in PR review
@amcaplan
Copy link
Contributor Author

amcaplan commented Jul 2, 2025

Screenshot 2025-07-02 at 15 09 18 Screenshot 2025-07-02 at 15 09 45

@amcaplan amcaplan requested a review from a team as a code owner July 2, 2025 12:17
@amcaplan amcaplan changed the title fix: make dev store creation links clickable in CLI (fixes #114) fix: make dev store creation links clickable in CLI Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claudeception Pull request created by Claudeception agents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants