The changes view cut each changed path from its end, so a long path lost its file name, and the Session header's branch label crowded the actions beside the title. - A changed file in the files menu, a file's header, and the local changes card shows its name, then its directory in smaller subdued type. The directory shortens first, then the name shortens in the middle and keeps its end; hovering shows the complete path, and both paths of a renamed file. Assistive technology reads the complete path. A rename badge names the old file name, or the old path when only the directory changed. - The checkout row draws a folder for the project directory and a branch for a worktree. - The Session header no longer carries the branch label; the tab's checkout row names the branch, the kind of checkout, and its path. - The README describes the collapsed strip of a large file, and the forge bundle README lists the gh commands and branches that bind change requests.
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
/**
|
|
* Browser entry of the forge panel: the sidebar tab, the changes view, the
|
|
* header button, the worktree option and creation card, and their Remote.
|
|
*/
|
|
|
|
import type { Context } from '@deepseek-ai/cordis'
|
|
import remote from '@deepseek-ai/dsh-experimental-client-ui-forge/remote'
|
|
import { mountForgePanel } from './mount.ts'
|
|
|
|
export { inject } from './mount.ts'
|
|
export type { ForgePanelKey } from './locales.ts'
|
|
export type { ChangeRequestActions, ChangeRequestCardProps } from './ChangeRequestCard.tsx'
|
|
export type { ChangesParams, ChangesSource, ChangesTarget } from './changes-address.ts'
|
|
export type { ChangesTabInjected, ChangesTabProps } from './ChangesTab.tsx'
|
|
export type { ChangesTabTitleProps } from './ChangesTabTitle.tsx'
|
|
export type { DiffFileAction, DiffFileProps, DiffFileText } from './DiffFile.tsx'
|
|
export type { LocalChangesCardProps } from './LocalChangesCard.tsx'
|
|
export type { ForgeTabInjected, ForgeTabProps } from './ForgeTab.tsx'
|
|
export type { HeaderButtonInjected, HeaderButtonProps } from './HeaderButton.tsx'
|
|
export type { WorktreeProgressInjected, WorktreeProgressProps } from './WorktreeProgress.tsx'
|
|
export type { WorktreeToggleInjected, WorktreeToggleProps } from './WorktreeToggle.tsx'
|
|
export type { ActionNotice, NoticeOptions, PanelSnapshot } from './source.ts'
|
|
|
|
/**
|
|
* Mount the forge panel Remote and its UI.
|
|
* @param ctx - browser plugin context.
|
|
* @returns the disposer that withdraws the UI, then the Remote.
|
|
*/
|
|
export async function apply(ctx: Context): Promise<() => Promise<void>> {
|
|
return await mountForgePanel(ctx, remote)
|
|
}
|