orca/src/main/source-control
Jinjing f72c22532a
Support GitLab MR unlinking and AI generation in ChecksPanel (#5204)
* feat: support GitLab MR unlinking and AI generation in ChecksPanel

Integrate GitLab merge request actions alongside GitHub pull requests in
the sidebar checks panel. This includes unlinking GitLab MRs, enabling
AI-driven title and body generation for GitLab, and dynamically adapting
menu labels (e.g. "More MR actions" vs "More PR actions") depending on
the active provider.

* fix: handle null base ref in hosted review creation and add tests

Co-authored-by: Orca <help@stably.ai>

* Extract sub-components and hooks from renderer components

To improve component focus and maintainability, extract large inline
sub-components, custom hooks, and logic helpers into dedicated files:

- Extract `HeroPaired` from `MobileHero` to `MobileHeroPairedDevices`.
- Move `ChromePreview` from `ThemeStep` to `theme-chrome-preview`.
- Refactor `HostedReviewActions` to use `useHostedReviewActions` hook.
- Move MCP config loading from `McpConfigSection` to helper file.

* Refactor usage panes to extract shared formatters and tables

Extract duplicated formatting utilities to a shared helper module. Move
the large, inline recent sessions tables into dedicated sub-components to
reduce duplication and simplify the parent pane components.

* Support self-hosted GitLab instances for MR creation eligibility

* Extract and check the remote host against `glab auth status` to
  dynamically recognize and authenticate self-hosted GitLab instances
  without requiring them to be in a hardcoded list.
* Refactor stats usage panes by extracting reusable breakdown sections
  and sessions tables to eliminate duplication.
* Suggest Linear prompts only if the launcher can resolve the CLI.

* Extract GitLab project ref tests and update usage stats translations

- Move GitLab project ref parsing tests into a dedicated test file to
  keep modules focused and add tests for candidate parsing.
- Add missing translations for the usage sessions table and breakdown
  section across multiple locales.

* Optimize GitLab ref parsing, deduplicate formatters, and add locales

- Clean up GitLab ref parsing by extracting normalized known hosts.
- Fix an escaped newline sequence in the self-hosted GitLab mock test.
- Deduplicate stats helper functions into a single shared file.
- Translate path status message strings across ES, JA, KO, and ZH.

---------

Co-authored-by: Orca <help@stably.ai>
2026-06-11 20:18:28 -07:00
..
forge-provider.test.ts Extract hosted review forge provider contract 2026-05-31 03:32:27 -07:00
forge-provider.ts Extract hosted review forge provider contract 2026-05-31 03:32:27 -07:00
hosted-review-azure-devops.integration.test.ts fix: prefer active azure pull requests 2026-05-31 01:30:33 -07:00
hosted-review-bitbucket.integration.test.ts fix: address review findings (#2036) 2026-05-15 20:26:14 -07:00
hosted-review-creation-gitlab-self-hosted.test.ts Support GitLab MR unlinking and AI generation in ChecksPanel (#5204) 2026-06-11 20:18:28 -07:00
hosted-review-creation.test.ts Extract hosted review forge provider contract 2026-05-31 03:32:27 -07:00
hosted-review-creation.ts Extract hosted review forge provider contract 2026-05-31 03:32:27 -07:00
hosted-review-gitea.integration.test.ts Add Gitea hosted review support 2026-05-15 01:56:05 -07:00
hosted-review.test.ts Extract hosted review forge provider contract 2026-05-31 03:32:27 -07:00
hosted-review.ts Extract hosted review forge provider contract 2026-05-31 03:32:27 -07:00