Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
d641dbd
update entity delete dialog to disallow force delete (#10468)
jake-bassett Sep 25, 2025
21eef5b
Update default size of the IconWithTooltip to md (#10474)
praneshg239 Sep 26, 2025
0cd313d
Update icons and logos (#10471)
praneshg239 Sep 26, 2025
12a5412
styles updated (#10475)
cxramina Sep 26, 2025
735c0d3
Connectors/Secrets - Horizontal scroll issue in list and Detailed pag…
radhakrishna68 Sep 26, 2025
d28cb54
fix: match design of input reference to mocks (#10470)
sanskar-harness Sep 26, 2025
3255100
Update reviewers list in pr view (#2166)
pixel-buba Sep 29, 2025
3ebace9
Fix draggable sidebar style (#2163)
3em Sep 29, 2025
bb0ec8f
fix pr comment box default keyboard selection behaviors (#10478)
jake-bassett Sep 29, 2025
02ce229
fix: feedback on secrets (#10477)
sanskar-harness Sep 29, 2025
64232ff
Edit packages/ui/package.json (#10476)
sanskar-harness Sep 29, 2025
e27a83c
Add sonner toast component (#10472)
praneshg239 Sep 30, 2025
5725ab1
Bump UI package version (#10484)
harish-viswa Sep 30, 2025
a83d2e1
Restoring focus to the Drawer Trigger button (#2154)
ankormoreankor Sep 30, 2025
5711eb5
bucm ui version (#2168)
ankormoreankor Sep 30, 2025
15a36b5
Add Collapse button to the PR Changes and Compare files tree (#2167)
3em Sep 30, 2025
4469a0a
feat: [CODE-4510]: Added usergroup support in reviewers section (#10481)
karansaraswat19 Sep 30, 2025
a270f53
Secrets: Added Tag filter (#10469)
radhakrishna68 Sep 30, 2025
79ada2d
Add favorite filter with sort options to Secret Manager dialog (#10479)
radhakrishna68 Sep 30, 2025
14b1393
Version bump (#10485)
radhakrishna68 Sep 30, 2025
2fd62da
fix: [CODE-4524] handle same file names in case of deleted file (#10482)
rkapoor10 Oct 1, 2025
3685154
Input-reference-component refactoring (#2169)
3em Oct 1, 2025
9f13a56
UI bump (#2172)
3em Oct 1, 2025
044477f
feat: [CODE-4475] add back user preferences in code v2 (#10488)
rkapoor10 Oct 1, 2025
64eef38
feat: [CODE-4530] add activity message back for target branch change …
rkapoor10 Oct 1, 2025
97a4627
feat: [CODE-4537] add vulnerability scanning with the correct options…
rkapoor10 Oct 1, 2025
6e48af6
secrets list and details rbac (#10486)
jake-bassett Oct 1, 2025
e8e610b
separate rbac permissions out for RbacSplitButton (#10490)
jake-bassett Oct 1, 2025
4da226a
add pr banner design adjustments (#2173)
ankormoreankor Oct 2, 2025
ce0b29c
add return of the focus to the drawer trigger (#2170)
ankormoreankor Oct 2, 2025
68247be
Select secret - The "New" secret option has been moved to top (#10491)
radhakrishna68 Oct 2, 2025
abf61bd
Tag creation with comma separated and avoid key duplication (#10460)
radhakrishna68 Oct 2, 2025
f7117b8
Version bump (#10492)
radhakrishna68 Oct 2, 2025
82a8da4
add input reference component update (#2174)
ankormoreankor Oct 2, 2025
0fbebac
Fix entity-reference-list Load more size and number-input buttons rou…
3em Oct 3, 2025
63f6eca
add pr create design review (#2176)
ankormoreankor Oct 6, 2025
813a6a8
TailwindCSS config changes and other design system component changes …
praneshg239 Oct 7, 2025
f6340d2
feat: [CODE-4455]: Add user groups to the codeowners panel (#10494)
karansaraswat19 Oct 7, 2025
b9bb790
Fix secrets details layout (#2179)
3em Oct 7, 2025
248415f
Bump UI (#2180)
3em Oct 7, 2025
518145e
Add new pagination v2 (#2178)
pixel-buba Oct 7, 2025
90b4e07
chore: Add "2xs" size variant for Drawer (#10498)
vardanbansal-harness Oct 7, 2025
7f3fa4c
fix issue with password managers populating username in search field …
jake-bassett Oct 7, 2025
821b533
Bump version to 0.0.144 in package.json (#2182)
vardanbansal-harness Oct 7, 2025
827a12f
Horizontal drawer scroll issue (#10497)
radhakrishna68 Oct 8, 2025
7be3b73
Redesign pull-request-timeline-item - add header for first comment (#…
pixel-buba Oct 8, 2025
ec6a884
feat: [CODE-4454]: Add user groups to default reviewers panel and bra…
karansaraswat19 Oct 8, 2025
8072f88
Add loading skeletons to the Entity Details pages (#2183)
3em Oct 8, 2025
d5152c8
Bump UI (#2185)
3em Oct 8, 2025
5ca3ad1
add check for undefined rbac permissions to RbacSplitButton (#10502)
jake-bassett Oct 8, 2025
d9db29d
Changes page comment fixes (#2177)
ankormoreankor Oct 9, 2025
913ccb1
add time ago card refactoring (#2186)
ankormoreankor Oct 9, 2025
d462c04
Replace star to Pin (#10503)
radhakrishna68 Oct 9, 2025
d6e4bc3
Version bump (#10508)
radhakrishna68 Oct 9, 2025
3433cc2
Got rid of using useComponents with RBAC components on the Details Pa…
3em Oct 10, 2025
63c2285
Bump UI (#2192)
3em Oct 10, 2025
de282bb
Tree component updates (#10511)
praneshg239 Oct 10, 2025
c022ad5
Bump UI package version (#10513)
praneshg239 Oct 10, 2025
f421c8f
fix sticky header on PR Changes page (#2191)
ankormoreankor Oct 10, 2025
0cab3b9
fix: PR diff scroll jumping improvement + accordion header design fix…
shaurya-harness Oct 10, 2025
12f5d77
Add "All Settings" link to Connectors and Secrets pages (#10510)
radhakrishna68 Oct 10, 2025
6497770
Feedback changes (#10515)
radhakrishna68 Oct 10, 2025
b76272d
Version bump (#10514)
radhakrishna68 Oct 11, 2025
dd7da17
fix: [CODE-4542] upload attachments in PR replies on changes tab (#10…
rkapoor10 Oct 12, 2025
ceb37cd
fix: [CODE-4582] suffix mismatch in diff (#10500)
rkapoor10 Oct 12, 2025
973cdd4
feat: [CODE-4509] target repo selection for branch and tag rules (#10…
rkapoor10 Oct 12, 2025
f9611c8
Fix sidebar layout and spacings (#2171)
pixel-buba Oct 13, 2025
d59b3d5
UI fixes for Secret Details Page - References and Activity Tabs (#2193)
3em Oct 13, 2025
b4ab2f9
Bump UI (#2194)
3em Oct 13, 2025
6243f40
fix: PR diff optimizations to render markdown diff hunk till a diff i…
shaurya-harness Oct 13, 2025
817eb81
make branch selector close on select (#2189)
ankormoreankor Oct 13, 2025
92932c4
add delete button to reviewers list (#2190)
ankormoreankor Oct 13, 2025
1defc74
Rename filter types from Favorite to Pinned (#10517)
radhakrishna68 Oct 13, 2025
d545f51
chore: [CODE-4517] add back FF for code features (#10467)
rkapoor10 Oct 14, 2025
b4964bc
add pr conversation design review (#2181)
ankormoreankor Oct 14, 2025
b97a1e8
Feedback changes (#10518)
radhakrishna68 Oct 15, 2025
0faaa69
Remove unused icons packages (#2197)
pixel-buba Oct 15, 2025
dcb4f80
remove old tailwind classes and tokens (#2199)
ankormoreankor Oct 15, 2025
ce40e53
add pagination props to stacked list and table components (#2196)
ankormoreankor Oct 15, 2025
e1a733f
Set auto height or width to Drawer content to fix bug with resize (#2…
3em Oct 15, 2025
f597d36
Add word-break: break-all style to Alert description block (#2201)
3em Oct 15, 2025
aadba82
Bump UI (#2204)
3em Oct 15, 2025
684b4a8
fix secret flow (#10519)
srdjan-harness Oct 15, 2025
53f7059
bump versions (#10520)
srdjan-harness Oct 15, 2025
fed4073
update transformation functions (#10521)
srdjan-harness Oct 15, 2025
96caa7e
bump ui version (#10523)
srdjan-harness Oct 16, 2025
31520a2
add search page design review (#2195)
ankormoreankor Oct 16, 2025
af9d0fd
Add noInitials support to Avatar component (#2208)
3em Oct 16, 2025
a514a7d
Remove tailwind classes 2 (#2203)
ankormoreankor Oct 16, 2025
2bc86d4
unit test for multiline select (#10439)
srdjan-harness Oct 16, 2025
2500b9e
warning support for step template (#10507)
srdjan-harness Oct 16, 2025
e723742
add types fixes (#2198)
ankormoreankor Oct 16, 2025
59dcb3f
Replaced Name instead of ID in secret list (#10522)
radhakrishna68 Oct 16, 2025
8e60384
fix text variant in Protal (#2207)
ankormoreankor Oct 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions apps/design-system/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { createBrowserRouter, Navigate, RouterProvider } from 'react-router-dom'
import ViewPreview from '@/pages/view-preview/view-preview'
import { useThemeStore } from '@utils/theme-utils'

import { DialogProvider, TooltipProvider } from '@harnessio/ui/components'
import { ThemeProvider, TranslationProvider } from '@harnessio/ui/context'
import { TooltipProvider } from '@harnessio/ui/components'
import { DialogProvider, ThemeProvider, TranslationProvider } from '@harnessio/ui/context'

import AppRouterProvider from './AppRouterProvider'

Expand Down
25 changes: 13 additions & 12 deletions apps/design-system/src/AppRouterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ import {
useSearchParams
} from 'react-router-dom'

import { Button, RbacButtonProps, SplitButton, toButtonProps, Tooltip } from '@harnessio/ui/components'
import {
Button,
MoreActionsTooltip,
RbacButtonProps,
rbacTooltip,
SplitButton,
Tooltip
} from '@harnessio/ui/components'
import { ComponentProvider, RouterContextProvider } from '@harnessio/ui/context'

const RbacButton = ({ rbac: _, tooltip, ...rest }: RbacButtonProps) => {
const hasPermission = true

const button = (
<Button
{...toButtonProps({
...rest,
ignoreIconOnlyTooltip: true
})}
disabled={!hasPermission}
/>
)
const button = <Button {...rest} ignoreIconOnlyTooltip disabled={!hasPermission} />

return !hasPermission ? (
<Tooltip title={tooltip?.title ?? 'You are missing the permission for this action.'} content={tooltip?.content}>
<Tooltip title={tooltip?.title ?? rbacTooltip} content={tooltip?.content}>
{button}
</Tooltip>
) : (
Expand All @@ -50,7 +49,9 @@ const AppRouterProvider: FC = () => {
useMatches={useMatches}
useParams={useParams}
>
<ComponentProvider components={{ RbacButton, RbacSplitButton: SplitButton }}>
<ComponentProvider
components={{ RbacButton, RbacSplitButton: SplitButton, RbacMoreActionsTooltip: MoreActionsTooltip }}
>
<Outlet />
</ComponentProvider>
</RouterContextProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const useRootViewWrapperStore = () => {
},
{
id: 23,
iconName: 'page',
iconName: 'empty-page',
title: 'File Store',
to: '/delegates'
},
Expand Down Expand Up @@ -332,7 +332,7 @@ export const useRootViewWrapperStore = () => {
items: [
{
id: 39,
iconName: 'externaltickets',
iconName: 'external-tickets',
title: 'External Tickets',
to: '/external-tickets'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3176,12 +3176,12 @@ export const commitDetailsStore: ICommitDetailsStore = {
newNumber: 152
},
{
content: '- <span className="size-2 bg-icons-2 rounded-full block" />',
content: '- <span className="size-2 rounded-full block" />',
type: 'delete',
oldNumber: 153
},
{
content: '+ <span className="block size-2 rounded-full bg-icons-2" />',
content: '+ <span className="block size-2 rounded-full" />',
type: 'insert',
newNumber: 153
},
Expand Down Expand Up @@ -3225,7 +3225,7 @@ export const commitDetailsStore: ICommitDetailsStore = {
contentId: 'content-packages/ui/src/components/dropdown-menu.tsx::::packages/ui/src/components/dropdown-menu.tsx',
fileId: 'packages/ui/src/components/dropdown-menu.tsx::::packages/ui/src/components/dropdown-menu.tsx',
filePath: 'packages/ui/src/components/dropdown-menu.tsx',
raw: 'diff --git a/packages/ui/src/components/dropdown-menu.tsx b/packages/ui/src/components/dropdown-menu.tsx\nindex b5476fe12dfc08aeb6c1478d4ca77c46b4263490..651d2b8a9c79fc3dbc8bae8dd60f039e14cf83bb 100644\n--- a/packages/ui/src/components/dropdown-menu.tsx\n+++ b/packages/ui/src/components/dropdown-menu.tsx\n@@ -150,7 +150,7 @@ const DropdownMenuRadioItem = React.forwardRef<\n >\n <span className="absolute left-2 flex size-4 items-center justify-center rounded-full border border-icons-1">\n <DropdownMenuPrimitive.ItemIndicator>\n- <span className="size-2 bg-icons-2 rounded-full block" />\n+ <span className="block size-2 rounded-full bg-icons-2" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n'
raw: 'diff --git a/packages/ui/src/components/dropdown-menu.tsx b/packages/ui/src/components/dropdown-menu.tsx\nindex b5476fe12dfc08aeb6c1478d4ca77c46b4263490..651d2b8a9c79fc3dbc8bae8dd60f039e14cf83bb 100644\n--- a/packages/ui/src/components/dropdown-menu.tsx\n+++ b/packages/ui/src/components/dropdown-menu.tsx\n@@ -150,7 +150,7 @@ const DropdownMenuRadioItem = React.forwardRef<\n >\n <span className="absolute left-2 flex size-4 items-center justify-center rounded-full border border-icons-1">\n <DropdownMenuPrimitive.ItemIndicator>\n- <span className="size-2 rounded-full block" />\n+ <span className="block size-2 rounded-full" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n'
},
{
blocks: [
Expand Down Expand Up @@ -4268,7 +4268,7 @@ export const commitDetailsStore: ICommitDetailsStore = {
newNumber: 247
},
{
content: ' <Icon name="success" className="text-icons-success" />',
content: ' <Icon name="success" className="text-cn-success" />',
type: 'context',
oldNumber: 248,
newNumber: 248
Expand Down Expand Up @@ -4380,7 +4380,7 @@ export const commitDetailsStore: ICommitDetailsStore = {
newNumber: 272
},
{
content: ' <Icon name="success" className="text-icons-success" />',
content: ' <Icon name="success" className="text-cn-success" />',
type: 'context',
oldNumber: 273,
newNumber: 273
Expand Down Expand Up @@ -4578,7 +4578,7 @@ export const commitDetailsStore: ICommitDetailsStore = {
'packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx::::packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx',
filePath:
'packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx',
raw: 'diff --git a/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx b/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx\nindex e06b76dd1b69885e022ce9188ee8d813dda07075..37284116f49710e2be9669ca7e65a6a4c7c54d0a 100644\n--- a/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx\n+++ b/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx\n@@ -67,7 +67,7 @@ interface HeaderItemProps {\n header: string\n }\n const HeaderItem: React.FC<HeaderItemProps> = ({ header }: HeaderItemProps) => {\n- return <span className="text-cn-3 text-1">{header}</span>\n+ return <span className="text-1 text-cn-3">{header}</span>\n }\n \n const AvatarItem: React.FC<AvatarItemProps> = ({ evaluations }: AvatarItemProps) => {\n@@ -244,15 +244,15 @@ const PullRequestChangesSection = ({\n ((minApproval ?? 0) > 0 && minReqLatestApproval === undefined)) && (\n <div className="ml-6 flex items-center justify-between">\n {approvedEvaluations && minApproval && minApproval <= approvedEvaluations?.length ? (\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon name="success" className="text-icons-success" />\n <span className="text-2 text-cn-foreground-1">\n {`Changes were approved by ${approvedEvaluations?.length} ${easyPluralize(approvedEvaluations?.length, \'reviewer\', \'reviewers\')}`}\n </span>\n </div>\n ) : (\n- <div className="flex gap-x-2 items-center">\n- <Icon name="circle" className="text-icons-7 fill-transparent" />\n+ <div className="flex items-center gap-x-2">\n+ <Icon name="circle" className="fill-transparent text-icons-7" />\n <span className="text-2 text-cn-foreground-1">\n {`${(approvedEvaluations && approvedEvaluations.length) || \'\'}/${minApproval} approvals completed`}\n </span>\n@@ -269,13 +269,13 @@ const PullRequestChangesSection = ({\n {latestApprovalArr !== undefined &&\n minReqLatestApproval !== undefined &&\n minReqLatestApproval <= latestApprovalArr?.length ? (\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon name="success" className="text-icons-success" />\n <span className="text-2 text-cn-foreground-1">{`Latest changes were approved by ${latestApprovalArr?.length || minReqLatestApproval || \'\'} ${easyPluralize(latestApprovalArr?.length || minReqLatestApproval, \'reviewer\', \'reviewers\')}`}</span>\n </div>\n ) : (\n- <div className="flex gap-x-2 items-center">\n- <Icon name="circle" className="text-icons-7 fill-transparent" />\n+ <div className="flex items-center gap-x-2">\n+ <Icon name="circle" className="fill-transparent text-icons-7" />\n <span className="text-2 text-cn-foreground-1">\n {`${latestApprovalArr?.length || minReqLatestApproval || \'\'} ${easyPluralize(latestApprovalArr?.length || minReqLatestApproval || 0, \'approval\', \'approvals\')} pending on latest changes`}\n </span>\n@@ -289,7 +289,7 @@ const PullRequestChangesSection = ({\n \n {!isEmpty(changeReqEvaluations) && (\n <div className="ml-6 flex items-center justify-between">\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon\n name="triangle-warning"\n className={cn({\n@@ -310,7 +310,7 @@ const PullRequestChangesSection = ({\n {!isEmpty(codeOwners) && !isEmpty(codeOwners.evaluation_entries) && (\n <div className="ml-6 flex items-center justify-between">\n {codeOwnerChangeReqEntries && codeOwnerChangeReqEntries?.length > 0 ? (\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon\n name="triangle-warning"\n className={cn({\n'
raw: 'diff --git a/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx b/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx\nindex e06b76dd1b69885e022ce9188ee8d813dda07075..37284116f49710e2be9669ca7e65a6a4c7c54d0a 100644\n--- a/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx\n+++ b/packages/ui/src/views/repo/pull-request/details/components/conversation/sections/pull-request-changes-section.tsx\n@@ -67,7 +67,7 @@ interface HeaderItemProps {\n header: string\n }\n const HeaderItem: React.FC<HeaderItemProps> = ({ header }: HeaderItemProps) => {\n- return <span className="text-cn-3 text-1">{header}</span>\n+ return <span className="text-1 text-cn-3">{header}</span>\n }\n \n const AvatarItem: React.FC<AvatarItemProps> = ({ evaluations }: AvatarItemProps) => {\n@@ -244,15 +244,15 @@ const PullRequestChangesSection = ({\n ((minApproval ?? 0) > 0 && minReqLatestApproval === undefined)) && (\n <div className="ml-6 flex items-center justify-between">\n {approvedEvaluations && minApproval && minApproval <= approvedEvaluations?.length ? (\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon name="success" className="text-cn-success" />\n <span className="text-2 text-cn-foreground-1">\n {`Changes were approved by ${approvedEvaluations?.length} ${easyPluralize(approvedEvaluations?.length, \'reviewer\', \'reviewers\')}`}\n </span>\n </div>\n ) : (\n- <div className="flex gap-x-2 items-center">\n- <Icon name="circle" className="text-icons-7 fill-transparent" />\n+ <div className="flex items-center gap-x-2">\n+ <Icon name="circle" className="fill-transparent text-icons-7" />\n <span className="text-2 text-cn-foreground-1">\n {`${(approvedEvaluations && approvedEvaluations.length) || \'\'}/${minApproval} approvals completed`}\n </span>\n@@ -269,13 +269,13 @@ const PullRequestChangesSection = ({\n {latestApprovalArr !== undefined &&\n minReqLatestApproval !== undefined &&\n minReqLatestApproval <= latestApprovalArr?.length ? (\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon name="success" className="text-cn-success" />\n <span className="text-2 text-cn-foreground-1">{`Latest changes were approved by ${latestApprovalArr?.length || minReqLatestApproval || \'\'} ${easyPluralize(latestApprovalArr?.length || minReqLatestApproval, \'reviewer\', \'reviewers\')}`}</span>\n </div>\n ) : (\n- <div className="flex gap-x-2 items-center">\n- <Icon name="circle" className="text-icons-7 fill-transparent" />\n+ <div className="flex items-center gap-x-2">\n+ <Icon name="circle" className="fill-transparent text-icons-7" />\n <span className="text-2 text-cn-foreground-1">\n {`${latestApprovalArr?.length || minReqLatestApproval || \'\'} ${easyPluralize(latestApprovalArr?.length || minReqLatestApproval || 0, \'approval\', \'approvals\')} pending on latest changes`}\n </span>\n@@ -289,7 +289,7 @@ const PullRequestChangesSection = ({\n \n {!isEmpty(changeReqEvaluations) && (\n <div className="ml-6 flex items-center justify-between">\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon\n name="triangle-warning"\n className={cn({\n@@ -310,7 +310,7 @@ const PullRequestChangesSection = ({\n {!isEmpty(codeOwners) && !isEmpty(codeOwners.evaluation_entries) && (\n <div className="ml-6 flex items-center justify-between">\n {codeOwnerChangeReqEntries && codeOwnerChangeReqEntries?.length > 0 ? (\n- <div className="flex gap-x-2 items-center">\n+ <div className="flex items-center gap-x-2">\n <Icon\n name="triangle-warning"\n className={cn({\n'
},
{
blocks: [
Expand Down
2 changes: 1 addition & 1 deletion apps/design-system/src/subjects/views/data-table-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const DataTableDemo: React.FC = () => {
size="compact"
currentSorting={tableSorting}
onSortingChange={handleSortingChange}
pagination={{
paginationProps={{
currentPage: 1,
pageSize: 3,
totalItems: users.length,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function StepNodeComponent({

return (
<Drawer.Root>
<Drawer.Trigger asChild>{stepNode}</Drawer.Trigger>
<Drawer.Trigger>{stepNode}</Drawer.Trigger>
<Drawer.Content size="md">
<Drawer.Header className="p-0">
<ExecutionHeader
Expand Down Expand Up @@ -129,7 +129,7 @@ export function ApprovalStepNodeComponent({

return (
<Drawer.Root>
<Drawer.Trigger asChild>{approvalNode}</Drawer.Trigger>
<Drawer.Trigger>{approvalNode}</Drawer.Trigger>
<Drawer.Content>
<Drawer.Header>
<Drawer.Title>Approval</Drawer.Title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const PullRequestCompareWrapper: FC<Partial<PullRequestComparePageProps>> = prop
setDesc={noop}
handleDeleteReviewer={noop}
handleAddReviewer={noop}
handleAddUserGroupReviewer={noop}
handleDeleteUserGroupReviewer={noop}
onFormSubmit={noop}
onFormDraftSubmit={noop}
onFormCancel={noop}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { noop } from '@utils/viewUtils'
import { CommitSuggestionsDialog } from '@harnessio/ui/components'
import {
CommitSuggestion,
EnumBypassListType,
EnumCheckStatus,
EnumPullReqReviewDecision,
ILabelType,
Expand All @@ -24,6 +25,7 @@ import {
mockPrLabels,
mockPullRequestActions,
mockReviewers,
mockUserGroupReviewers,
pendingChangesInfoData,
prPanelInfo,
pullReqChecksDecisionSucceeded
Expand Down Expand Up @@ -57,7 +59,7 @@ const PullRequestConversation: FC<PullRequestConversationProps> = ({ state }) =>
const showRestoreBranchButton = false
const errorMsg = ''

const currentUserData = { display_name: 'admin', uid: '' }
const currentUserData = { display_name: 'admin', id: 1, uid: '' }

const comment = ''

Expand All @@ -76,7 +78,25 @@ const PullRequestConversation: FC<PullRequestConversationProps> = ({ state }) =>
const PRLabels = state === 'complex-1' ? mockPrLabels : { label_data: [] as LabelAssignmentType[] }
const searchLabel = ''
const pullReqMetadata = { source_sha: '' }
const reviewers = state === 'complex-1' ? mockReviewers : undefined
const reviewers =
state === 'complex-1'
? mockReviewers.map(reviewer => ({
...reviewer,
reviewer: { ...reviewer.reviewer, type: EnumBypassListType.USER }
}))
: undefined
const userGroupReviewers =
state === 'complex-1'
? mockUserGroupReviewers.map(reviewer => ({
...reviewer,
reviewer: {
display_name: reviewer.user_group.name,
id: reviewer.user_group.id,
email: reviewer.user_group.identifier,
type: EnumBypassListType.USER_GROUP
}
}))
: undefined

const filtersData = usePrFilters()

Expand Down Expand Up @@ -172,15 +192,17 @@ const PullRequestConversation: FC<PullRequestConversationProps> = ({ state }) =>
handleUpload: noop
}}
sideBarProps={{
addReviewers: noop,
currentUserId: currentUserData?.uid,
addReviewer: noop,
authorId: currentUserData?.id,
pullRequestMetadata: { source_sha: pullReqMetadata?.source_sha || '' },
processReviewDecision,
refetchReviewers: noop,
handleDelete: noop,
handleUserGroupReviewerDelete: noop,
addReviewerError: '',
removeReviewerError: '',
reviewers,
userGroupReviewers,
labelsList,
PRLabels: PRLabels?.label_data,
searchLabelQuery: searchLabel,
Expand Down
Loading