mirror of
https://github.com/stablyai/orca.git
synced 2026-11-01 01:27:35 +00:00
* fix(mobile): compare branches and show diffs with desktop's base-ref and whitespace settings Base-ref resolution moves to src/shared and the host publishes the compare-against-upstream and show-whitespace settings, so the phone's branch compare and diffs match desktop. * fix(mobile): use the upstream compare policy on the review screen and rebuild diffs when whitespace changes * fix(mobile): reread Source Control settings on Refresh and restart diffs loading under the old whitespace setting * test(mobile): cover diffs dropped when desktop's whitespace setting arrives * refactor(mobile): share one Source Control settings read per host across screens
11 lines
474 B
TypeScript
11 lines
474 B
TypeScript
import { useMemo } from 'react'
|
|
import type { SourceControlGroupOrder } from '../../../src/shared/ui-chrome-types'
|
|
import { buildMobileSourceControlSections, type MobileGitStatusEntry } from './mobile-git-status'
|
|
|
|
export function useMobileSourceControlSections<TEntry extends MobileGitStatusEntry>(
|
|
entries: readonly TEntry[],
|
|
groupOrder: SourceControlGroupOrder
|
|
) {
|
|
return useMemo(() => buildMobileSourceControlSections(entries, groupOrder), [entries, groupOrder])
|
|
}
|