fix(sidebar): fix PR hint for fork PRs, remove badge styling, add hover effect

- Replace REST API PR lookup with `gh pr view` which handles fork PRs
- Fix state comparison to use lowercase (matching server output)
- Remove pill/badge styling, show plain icon + #number
- Add brighter hover colors and underline for clickability hint
This commit is contained in:
Mohamed Boudra
2026-03-22 19:07:01 +07:00
parent c60ea67a9b
commit d79ea8b15c
3 changed files with 66 additions and 128 deletions
@@ -51,9 +51,9 @@ function selectWorkspacePrHint(payload: CheckoutPrStatusPayload): PrHint | null
return {
url: status.url,
number,
state: status.isMerged || status.state === "MERGED"
state: status.isMerged || status.state === "merged"
? "merged"
: status.state === "OPEN"
: status.state === "open"
? "open"
: "closed",
};