Skip to content

Conversation

@adityasharmawork
Copy link

Summary

Updated the CLI header to display environment-aware documentation links based on the runtime environment (CI/CD vs Default).

Changes

  • Created a local isCI helper function in packages/cli/src/cli/utils/ui.ts to detect CI environments without external package dependencies.
  • Updated the renderHero function to conditionally set the documentation link.
  • Changed the link from the static https://lingo.dev/go/docs to dynamic paths: https://lingo.dev/ci (in CI) and https://lingo.dev/cli (default).

Testing

Business logic tests added:

  • Verified locally that running node bin/cli.mjs login displays https://lingo.dev/cli in the header by default.
  • Verified locally that running CI=true node bin/cli.mjs login displays https://lingo.dev/ci in the header.
  • All tests pass locally

Visuals

Required for UI/UX changes:

  • Screenshots showing the issue is fixed attached

CLI Mode -

Screenshot from 2025-11-18 17-00-48

CI Mode -

Screenshot from 2025-11-18 17-01-09

Checklist

  • No breaking changes (or documented below)

Closes #1078

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.

Update CLI header docs link with conditional routing

1 participant