Skip to content

Review editor frontend debt: API-mode signal, clipboard reuse, context splitting, and safe formatting #909

Description

@backnotprop

Provenance stamp: This issue was triaged on June 13, 2026 as part of the older-than-two-month GitHub issue triage exercise.

Source issues: #213, #419, #486, #489

Summary

The review editor has several maintainability issues that should be handled as one focused cleanup effort. The common theme is not polish. It is reducing future regression risk in a complex UI by making state, API-mode checks, shared controls, and formatting safer.

What the source issues requested

Triage determination

These are related enough to plan together, but each item should still be implemented in small safe PRs. Keeping them under one tracking issue helps avoid piecemeal cleanups that make the review editor harder to reason about.

Acceptance criteria

  • Review editor API-backed behavior uses a dedicated isApiMode signal, not !!origin.
  • Review state is split into focused contexts beyond the existing job-log split.
  • Shared copy button, copy/check icons, and clipboard state are reused across editor and review surfaces where practical.
  • Biome formatting is introduced as a safe format-only change before any lint-rule enforcement.
  • Unsafe automatic lint fixes for React hook dependency arrays are not used.
  • The production build and relevant review-editor flows are verified after formatting or state refactors.
  • The old source issues can be closed after their specific refactor requirements are represented here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue created from backlog triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions