Skip to content

Commit d38ac7a

Browse files
authored
ref: Remove github logs button from branching table (supabase#30837)
1 parent 377e224 commit d38ac7a

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { useBranchResetMutation } from 'data/branches/branch-reset-mutation'
2424
import { useBranchUpdateMutation } from 'data/branches/branch-update-mutation'
2525
import type { Branch } from 'data/branches/branches-query'
2626
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
27-
import { useFlag } from 'hooks/ui/useFlag'
2827
import {
2928
Badge,
3029
Button,
@@ -115,14 +114,6 @@ export const BranchRow = ({
115114
const createPullRequestURL =
116115
generateCreatePullRequestURL?.(branch.git_branch) ?? 'https://github.com'
117116

118-
const branchingWorkflowLogsEnabled = useFlag('branchingWorkflowLogs')
119-
120-
const shouldRenderGitHubLogsButton =
121-
!branchingWorkflowLogsEnabled &&
122-
branch.pr_number !== undefined &&
123-
branch.latest_check_run_id !== undefined
124-
const checkRunLogsURL = `https://github.com/${repo}/pull/${branch.pr_number}/checks?check_run_id=${branch.latest_check_run_id}`
125-
126117
const { ref, inView } = useInView()
127118
const { data } = useBranchQuery(
128119
{ projectRef, id: branch.id },
@@ -234,7 +225,7 @@ export const BranchRow = ({
234225
View Repository
235226
</Link>
236227
</Button>
237-
{branchingWorkflowLogsEnabled && <WorkflowLogs projectRef={branch.project_ref} />}
228+
<WorkflowLogs projectRef={branch.project_ref} />
238229
<DropdownMenu modal={false}>
239230
<DropdownMenuTrigger asChild>
240231
<Button type="text" icon={<MoreVertical />} className="px-1" />
@@ -281,17 +272,7 @@ export const BranchRow = ({
281272
</Button>
282273
</div>
283274
)}
284-
285-
{shouldRenderGitHubLogsButton ? (
286-
<Button asChild type="default" iconRight={<ExternalLink size={14} />}>
287-
<Link passHref target="_blank" rel="noreferrer" href={checkRunLogsURL}>
288-
View Logs
289-
</Link>
290-
</Button>
291-
) : (
292-
<WorkflowLogs projectRef={branch.project_ref} />
293-
)}
294-
275+
<WorkflowLogs projectRef={branch.project_ref} />
295276
<DropdownMenu modal={false}>
296277
<DropdownMenuTrigger asChild>
297278
<Button type="text" icon={<MoreVertical />} className="px-1" />

0 commit comments

Comments
 (0)