style: apply formatting to workspace detail extraction
Post-write formatter pass on components extracted for reorganize-long-files. No behavioral changes.
This commit is contained in:
@@ -11,7 +11,9 @@ export interface WorkspaceDetailHeaderProps {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function WorkspaceDetailHeader({ workspace }: WorkspaceDetailHeaderProps) {
|
export function WorkspaceDetailHeader({
|
||||||
|
workspace,
|
||||||
|
}: WorkspaceDetailHeaderProps) {
|
||||||
return (
|
return (
|
||||||
<header className="workspace-header">
|
<header className="workspace-header">
|
||||||
<div className="workspace-breadcrumb">
|
<div className="workspace-breadcrumb">
|
||||||
|
|||||||
@@ -101,9 +101,15 @@ export function WorkspaceFilePanel({ workspaceId }: WorkspaceFilePanelProps) {
|
|||||||
>
|
>
|
||||||
Commit
|
Commit
|
||||||
</button>
|
</button>
|
||||||
<button onClick={push} type="button">Push</button>
|
<button onClick={push} type="button">
|
||||||
<button onClick={pull} type="button">Pull</button>
|
Push
|
||||||
<button onClick={fetch} type="button">Fetch</button>
|
</button>
|
||||||
|
<button onClick={pull} type="button">
|
||||||
|
Pull
|
||||||
|
</button>
|
||||||
|
<button onClick={fetch} type="button">
|
||||||
|
Fetch
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -154,10 +160,7 @@ export function WorkspaceFilePanel({ workspaceId }: WorkspaceFilePanelProps) {
|
|||||||
onChange={(e) => setEditContent(e.target.value)}
|
onChange={(e) => setEditContent(e.target.value)}
|
||||||
/>
|
/>
|
||||||
<div className="file-editor-actions">
|
<div className="file-editor-actions">
|
||||||
<button
|
<button onClick={() => setIsEditing(false)} type="button">
|
||||||
onClick={() => setIsEditing(false)}
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button onClick={handleSave} type="button">
|
<button onClick={handleSave} type="button">
|
||||||
@@ -166,9 +169,7 @@ export function WorkspaceFilePanel({ workspaceId }: WorkspaceFilePanelProps) {
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<pre className="file-content">
|
<pre className="file-content">{content || "Loading..."}</pre>
|
||||||
{content || "Loading..."}
|
|
||||||
</pre>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ interface WorkspaceSettingsPanelProps {
|
|||||||
workspace: Workspace;
|
workspace: Workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function WorkspaceSettingsPanel({ workspace }: WorkspaceSettingsPanelProps) {
|
export function WorkspaceSettingsPanel({
|
||||||
|
workspace,
|
||||||
|
}: WorkspaceSettingsPanelProps) {
|
||||||
return (
|
return (
|
||||||
<div className="settings-tab">
|
<div className="settings-tab">
|
||||||
<div className="settings-section">
|
<div className="settings-section">
|
||||||
|
|||||||
@@ -45,7 +45,10 @@ export function WorkspaceTabBar({ active, onChange }: WorkspaceTabBarProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function WorkspaceMobileTabBar({ active, onChange }: WorkspaceTabBarProps) {
|
export function WorkspaceMobileTabBar({
|
||||||
|
active,
|
||||||
|
onChange,
|
||||||
|
}: WorkspaceTabBarProps) {
|
||||||
return (
|
return (
|
||||||
<nav className="mobile-tab-bar" role="tablist">
|
<nav className="mobile-tab-bar" role="tablist">
|
||||||
{TABS.map((tab) => (
|
{TABS.map((tab) => (
|
||||||
|
|||||||
@@ -47,9 +47,7 @@ export function WorkspaceDetailPage() {
|
|||||||
{activeTab === "git" && (
|
{activeTab === "git" && (
|
||||||
<WorkspaceGitPanel workspaceId={workspace.id} />
|
<WorkspaceGitPanel workspaceId={workspace.id} />
|
||||||
)}
|
)}
|
||||||
{activeTab === "tools" && (
|
{activeTab === "tools" && <WorkspaceToolsPanel workspace={workspace} />}
|
||||||
<WorkspaceToolsPanel workspace={workspace} />
|
|
||||||
)}
|
|
||||||
{activeTab === "settings" && (
|
{activeTab === "settings" && (
|
||||||
<WorkspaceSettingsPanel workspace={workspace} />
|
<WorkspaceSettingsPanel workspace={workspace} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user