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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Hey @adityasharmawork! Just checking in - are you still working on this PR? We noticed there are some comments that may need addressing. If you need more time, no problem! Just let us know. If we don't hear back within a week, we'll close this to keep the repo tidy, but you can always reopen when ready.

@adityasharmawork
Copy link
Author

I have already fixed the issue #1078 with this PR #1616
I am waiting for the maintainers to review and merge this PR to main branch!

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