Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
280f596
Add warning of no newline in diff to comment box suggestion block (#1…
jake-bassett Aug 6, 2025
284393e
Fix PR title layout at list and in PR page (#2051)
3em Aug 6, 2025
79500fd
exit confirmation on the file edit page (#10131)
srdjan-harness Aug 6, 2025
bd6628a
md btn gap updated (#10130)
cxramina Aug 6, 2025
8e538f2
Allow exit when file is commited (#10134)
srdjan-harness Aug 6, 2025
7a8d840
fix: commits tab should be selected by default in case PR is already …
rkapoor10 Aug 6, 2025
bb3ba72
feat: resizable file explorer in repo files page + sticky PR changes …
shaurya-harness Aug 6, 2025
90325d0
fix: design on commit details, make route backward compatible (#10137)
sans-harness Aug 6, 2025
272898e
feat: split closed/merged PR states and updated file search window (#…
harish-viswa Aug 7, 2025
c9a9ec5
Merge page design fixes (#10138)
radhakrishna68 Aug 7, 2025
40556dc
Update on click markdown image preview to open in newtab (#10141)
praneshg239 Aug 7, 2025
ee49799
feat: add support to bypass branch rules via branch dialog when block…
rkapoor10 Aug 7, 2025
a5f31fb
fix: revert commits tab should be selected by default in case PR is …
rkapoor10 Aug 7, 2025
9c25ef0
fix: Fix few P3 bugs on Repo listing page (#10142)
vardanbansal-harness Aug 7, 2025
c8bb251
Align PR list with design (#2053)
3em Aug 7, 2025
de2527c
Ds migration skeleton (#2049)
pixel-buba Aug 7, 2025
8e90478
Change comment markdown size text (#2054)
3em Aug 7, 2025
42229ef
fix: jump to a diff functionality for MFE + sticky filters/accordion …
shaurya-harness Aug 7, 2025
60d6ab3
fix: diff file links in case of delete branch (#10145)
rkapoor10 Aug 7, 2025
e75b62d
feat: move current author to top (#10136)
rkapoor10 Aug 7, 2025
83074a6
Fix fetch errors for getting inherited label values (#10139)
jake-bassett Aug 7, 2025
e5ea028
fix: update description when checkboxes are checked/unchecked (#10146)
shaurya-harness Aug 7, 2025
3e377a9
feat: design fixes webhook executions list page, execution details an…
sans-harness Aug 7, 2025
04628f1
Merge page - Reviewers and closed pr design fixes (#10147)
radhakrishna68 Aug 7, 2025
a08e7f1
fix: p2/p3 bugs across the app (#10149)
sans-harness Aug 7, 2025
3c13ab4
fix comment box to insert uploaded images and videos at the text sele…
jake-bassett Aug 7, 2025
fcd01cc
fix: design fixes across pages (#10152)
abhinavrastogi-harness Aug 7, 2025
697e50d
fix: minor webhook design fixes (#10153)
sans-harness Aug 7, 2025
57e8e06
fix: pr list order by number (#10154)
sans-harness Aug 7, 2025
4951622
fix: webhook schema, commit-dialog (#10155)
sans-harness Aug 8, 2025
7f2bf25
Fast-Forward error display when rebase available (#10156)
radhakrishna68 Aug 8, 2025
3cb7867
add icons to header and empty state buttons and make all buttons titl…
jake-bassett Aug 8, 2025
f78a385
fix: redirect legacy url for edit files (#10158)
rkapoor10 Aug 8, 2025
3c36e65
Update tag, tag icon sizes and Add new button sizes (#10148)
praneshg239 Aug 8, 2025
23003d9
Update comments markdown typography styles (#2056)
3em Aug 8, 2025
6bedaad
refactor: update Skeleton.Table usage across multiple components to i…
pixel-buba Aug 8, 2025
9a7e5c4
Add focus state for Radio and Checkbox (#2057)
3em Aug 8, 2025
19d9735
Fix md scroll style (#2058)
3em Aug 8, 2025
1d0dc7f
Fix dropdown content height on small screen heights (#2059)
3em Aug 8, 2025
831ccdf
Fix some design diffs and bugs at Summary page + add focus to Switch …
3em Aug 8, 2025
322f58a
fix: show files list instantly and lazy load file details in summary …
shaurya-harness Aug 8, 2025
a689b77
fix: add outdated timestamp (#10161)
rkapoor10 Aug 8, 2025
dd930f7
fix a couple of remaining 'Create' button titles (#10162)
jake-bassett Aug 8, 2025
6d8e7b2
fix: Fix few P3 bugs (#10150)
vardanbansal-harness Aug 8, 2025
3d27f2f
change Add User to Create User (#10165)
jake-bassett Aug 8, 2025
2dca3a8
chore: update to title case from 'outdated' to 'Outdated' (#10168)
rkapoor10 Aug 8, 2025
160c28d
unhide comment box grab handle so it can be resized (#10167)
jake-bassett Aug 8, 2025
0e366af
fix: make required badges consistent
abhinavrastogi-harness Aug 10, 2025
7eeaee7
Delete file navigation to default branch fix (#10171)
radhakrishna68 Aug 11, 2025
9567e25
Fix dropdown checkbox icon (#2062)
3em Aug 11, 2025
eacb511
Fix checkbox icon size (#2063)
3em Aug 11, 2025
9917b25
fix multiple issues (#2050)
ankormoreankor Aug 11, 2025
bd09b4a
fix: open paths lost in MFE, file input rebuildPaths (#10174)
shaurya-harness Aug 11, 2025
876dcde
Extended diff view improvement (#10175)
srdjan-harness Aug 11, 2025
831a2f2
Blame editor v2 (#10163)
srdjan-harness Aug 11, 2025
49f6ede
fallback added (#10176)
cxramina Aug 11, 2025
0aea792
feat: Replace window location update with route utils from MFE (#10170)
vardanbansal-harness Aug 11, 2025
2d66bd8
feat: match search page to mocks (#10178)
sans-harness Aug 11, 2025
3780f8c
Conflict section - Alignment issues (#10169)
radhakrishna68 Aug 11, 2025
f48f94b
fix: Remove extra left margin from Breadcrumbs to align vertically (#…
vardanbansal-harness Aug 11, 2025
87d9e37
fix: make required badges consistent (#10172)
abhinavrastogi-harness Aug 11, 2025
026c166
feat: fix routing for parent scopes on rules page (#10180)
sans-harness Aug 12, 2025
ee55cdb
fix: sticky PR filters for PR compare page - changes tab (#10183)
shaurya-harness Aug 12, 2025
7aa040e
card-gradient-fix (#10177)
cxramina Aug 12, 2025
e0c00e5
add commit details page design review (#2046)
ankormoreankor Aug 12, 2025
12f6e53
Show pagination only if data is available and update clear filter/sea…
praneshg239 Aug 12, 2025
27b1eac
fix: design for sticky file headers (#10181)
abhinavrastogi-harness Aug 12, 2025
c8c151c
fix: checks bug and normalize git ref for calculateDivergence api (#1…
shaurya-harness Aug 12, 2025
381929d
Files - scroll issue for Preview and History tabs (#10182)
radhakrishna68 Aug 12, 2025
2b488d9
chore: bump UI (#10191)
sans-harness Aug 12, 2025
e095cfe
fix: Show email in Author filter dropdown on PR List page (#10189)
vardanbansal-harness Aug 13, 2025
5496e77
Conditional logic for Timestamps (#10190)
radhakrishna68 Aug 13, 2025
50e3ac8
feat: Add RBAC support (#10192)
vardanbansal-harness Aug 13, 2025
252fba1
fix: remove pagination on search (#10193)
sans-harness Aug 13, 2025
7dc7dbf
fix: merge strategies p2 fix (#10194)
sans-harness Aug 13, 2025
bdd6552
light mode colors update (#10188)
cxramina Aug 13, 2025
6208574
Update offset for PR comment options dropdown menu to avoid click ove…
praneshg239 Aug 13, 2025
b2eea15
Update repo-tags-list-page (#2060)
pixel-buba Aug 13, 2025
a301bf4
gray set light mode fix (#10195)
cxramina Aug 13, 2025
07f3c8d
Fix Dialog scrolling in Shadow DOM and Forms usage inside Dialog (#2066)
3em Aug 13, 2025
6a64faf
fix: batch for 20 files else throttle with 500ms delay (#10197)
shaurya-harness Aug 13, 2025
66b3cd1
fix: codeowners required panel state in case review is required from …
rkapoor10 Aug 13, 2025
563a77c
feat: file explorer functionality for PR diffs in changes and compare…
shaurya-harness Aug 13, 2025
92ed7f6
Update offset values for dropdown menu in PR panel (#10199)
praneshg239 Aug 13, 2025
769a31b
add plus icon to missed Create File button (#10200)
jake-bassett Aug 13, 2025
6507945
Branch rule - Hide placeholder after select a value for multi select …
radhakrishna68 Aug 13, 2025
139a339
fix: design for approve button and branch info bar (#10204)
abhinavrastogi-harness Aug 13, 2025
327513c
feat: Add RBAC tooltips to Button and Splitbutton (#10205)
vardanbansal-harness Aug 14, 2025
6659c4c
for new files only show Preview tab when its a markdown file (#10202)
jake-bassett Aug 14, 2025
0bceb9c
add repo files design review (#2064)
ankormoreankor Aug 14, 2025
f4eacbf
Fix text-input autofocus at Dialog (#2068)
3em Aug 14, 2025
8f4157d
fix: order of unsetHidden -> transform -> removeTempFields (#10209)
shaurya-harness Aug 14, 2025
84233be
Add shrink to stepper button in number input (#10210)
praneshg239 Aug 14, 2025
6c8e565
Add line selection and state in the fragment (#10198)
srdjan-harness Aug 14, 2025
d5f01e5
pull request header - User avatar missing (#10203)
radhakrishna68 Aug 14, 2025
43b3741
fix code highlight (#10212)
srdjan-harness Aug 14, 2025
39c7841
styles-updates (#10211)
cxramina Aug 14, 2025
3f142e1
fix: ux issues (#10207)
abhinavrastogi-harness Aug 14, 2025
d10f269
add recursive query param to space level rule and tag status check qu…
jake-bassett Aug 14, 2025
bd60b73
Create branch dialogue should stay when api fails (#10213)
radhakrishna68 Aug 14, 2025
c7777bc
fix: multiple parity items (#10215)
abhinavrastogi-harness Aug 14, 2025
576d557
Tag creation not allowed even if user is in bypass list (#10216)
radhakrishna68 Aug 15, 2025
cdf16c1
fix: Remove SSE integration from Pull Requests (#10217)
vardanbansal-harness Aug 15, 2025
49d8761
Create tag and branch - Hz scroll in pop when there is error (#10218)
radhakrishna68 Aug 15, 2025
0e19d7b
File edit - Rendering issue (#10219)
radhakrishna68 Aug 15, 2025
cef3fbe
fix: multiple p3 fixes across app (#10208)
sans-harness Aug 15, 2025
07d4632
Refactor UI Components to support Refs (#1893)
pixel-buba Aug 15, 2025
ee2a1bd
add repo general settings design review (#2067)
ankormoreankor Aug 15, 2025
6af864a
Settings container refactoring (#2070)
ankormoreankor Aug 15, 2025
dcff10f
fix: multiple p2, p3 bugs across app (#10220)
sans-harness Aug 15, 2025
2610035
Fixed favorite to unfavorite and unfavorite to favorite calls (#10223)
radhakrishna68 Aug 15, 2025
5cef061
add undo and redo to pr comment box (#10224)
jake-bassett Aug 15, 2025
57bb66c
fix: label issues in prs (#10225)
abhinavrastogi-harness Aug 16, 2025
7f45ed0
Fix: multiple p3's across app (#10227)
sans-harness Aug 16, 2025
3e8cbe7
fix: pr compare logic (#10228)
abhinavrastogi-harness Aug 16, 2025
17a5403
Parity Gap - History commits after file name changes (#10226)
radhakrishna68 Aug 17, 2025
7746b29
fix sticky sidebars (#2072)
ankormoreankor Aug 18, 2025
6c5546b
Fix Create Branch dialog and remove redundant list props (#2075)
3em Aug 18, 2025
da1778f
Fix Delete alert Dialog (#2076)
3em Aug 18, 2025
bbb5103
fix review requested button styles (#2074)
ankormoreankor Aug 18, 2025
56b1a21
Code editor highlight (#10222)
srdjan-harness Aug 18, 2025
109c2c6
Fix Tooltip max-height and add scroll (#2077)
3em Aug 18, 2025
ec23181
fix: hide pr suggest btn on conv view (#10229)
abhinavrastogi-harness Aug 18, 2025
8c7aa6b
PR Files - Fixed since last view changed (#10230)
radhakrishna68 Aug 18, 2025
9fd9fe6
add branches page design review (#2052)
ankormoreankor Aug 18, 2025
2a1747f
Chained commits selection using shift key (#10221)
srdjan-harness Aug 18, 2025
07070c1
This PR updates the delete repository warning message to utilize the …
jake-bassett Aug 18, 2025
c060c4c
fix: commit-dialog docs link (#10234)
abhinavrastogi-harness Aug 18, 2025
fb1ac35
fix filters serialisation (#10232)
srdjan-harness Aug 19, 2025
9205c5f
fix: rely on repo details for initial pr listing count (#10231)
harish-viswa Aug 19, 2025
cca979a
fix dialog bottom scroll (#2080)
ankormoreankor Aug 19, 2025
bfc3890
read only mode for unified view (#10241)
srdjan-harness Aug 19, 2025
adb69ed
Add word break to PR titles (#2083)
3em Aug 19, 2025
4b63371
Fix font size for all md preview at PR pages (#2084)
3em Aug 19, 2025
0f22c37
remove unnecessary checkmark (#2086)
ankormoreankor Aug 19, 2025
4ed7c9f
feat: Display PR title as document title (#10239)
vardanbansal-harness Aug 19, 2025
9741809
fix: duplicate checks (#10243)
rkapoor10 Aug 19, 2025
e71432e
feat: add scope filter on search page (#10235)
sans-harness Aug 19, 2025
34cc564
feat: add avatar tooltip on br list (#10240)
sans-harness Aug 19, 2025
605fa59
Closing/Ready for review - confirmation removed (#10244)
radhakrishna68 Aug 19, 2025
b6be0f4
fix counts for PR changes page viewed files (#10245)
jake-bassett Aug 19, 2025
771a775
PR statuses background color update (#10238)
radhakrishna68 Aug 19, 2025
1f9814c
fix: scroll file to middle from tree (#10247)
abhinavrastogi-harness Aug 19, 2025
a675ca7
fix suggestion code copy (#10242)
srdjan-harness Aug 19, 2025
c15f543
Update styles (#10246)
cxramina Aug 19, 2025
6d200f9
fix: multiple p3 bugs (#10248)
sans-harness Aug 19, 2025
0237ffe
fix: p3/p4 UX issues (#10249)
sans-harness Aug 20, 2025
07254db
add props to dropdwon subcontent (#2082)
ankormoreankor Aug 20, 2025
6dafbe5
Fix input focus and keyboard navigation in the SearchFiles dropdown (…
3em Aug 20, 2025
88f8156
add comment truncation (#2085)
ankormoreankor Aug 20, 2025
3690668
fix: ai summary calls for all refs (#10254)
rkapoor10 Aug 20, 2025
ffa7097
PR Diff - File rename display (#10251)
radhakrishna68 Aug 20, 2025
7dc76c7
Fix Dropdown keyboard navigation in ShadowDOM (#2089)
3em Aug 20, 2025
0f85001
add ability to apply list syntax at cursor for PR comment box (#10250)
jake-bassett Aug 20, 2025
5ca126c
Icon swap (#10253)
cxramina Aug 20, 2025
1ffaf26
fix: updated label filter to be a controlled component (#10259)
harish-viswa Aug 20, 2025
063d0bc
Colors update (#10260)
cxramina Aug 20, 2025
ac3e80f
add ai summary button to conversation tab edit description comment bo…
jake-bassett Aug 21, 2025
3c27cd6
fix: sidebar width and scroll position persistence as MFE re-renders …
shaurya-harness Aug 21, 2025
1c33c34
fix: height for scrollArea + file explorer folder click triggers acco…
shaurya-harness Aug 21, 2025
4c4ad24
Change Delete filter Dropdown to Button (#2091)
3em Aug 21, 2025
5308020
limit multiline selection to one hunk (#10256)
srdjan-harness Aug 21, 2025
a5c8aed
PR panel (Draft view): show “Close PR” in MoreActionsTooltip (#2092)
3em Aug 21, 2025
46d07c1
add files tree design review (#2088)
ankormoreankor Aug 21, 2025
2c0b80b
fix: revert timeago card color, add hover, labels delete (#10261)
sans-harness Aug 21, 2025
1728ec1
PR Conversation - File link should be clickable (#10265)
radhakrishna68 Aug 21, 2025
e1e510d
moves the cursor to the end of a quoted reply in pr comment box (#10266)
jake-bassett Aug 22, 2025
7bee28d
README in Summary - Edit icon should be available (#10268)
radhakrishna68 Aug 22, 2025
a8ab7f5
fix: minor bugs across app (#10269)
sans-harness Aug 22, 2025
1f31428
fix: full app reload on commits page (#10271)
sans-harness Aug 22, 2025
6d4eb02
feat: SSE Pub/Sub Implementation (#10267)
sans-harness Aug 22, 2025
14f80a5
Fix scrolling in a Drawer inside Shadow DOM (#2094)
3em Aug 22, 2025
fc5cf52
add clone to input factory (#10272)
srdjan-harness Aug 22, 2025
57e4236
fix suggested changes ui (#2093)
ankormoreankor Aug 22, 2025
a6a6366
fix: Cleanup AppMFE corresponding to optimizations done in parent NG …
vardanbansal-harness Aug 22, 2025
57b4687
fix repo files content header (#2096)
ankormoreankor Aug 22, 2025
ca93632
fix: remove eager true (#10276)
abhinavrastogi-harness Aug 22, 2025
2d85c86
fix: routing on commits pull req page (#10278)
sans-harness Aug 22, 2025
f94f7d4
fix: updated history state with replace wherever applicable (#10273)
harish-viswa Aug 22, 2025
c7fdc54
fix: Show "Edit" and "Delete" comment options on PR conversation page…
vardanbansal-harness Aug 22, 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
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions apps/design-system/src/AppRouterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
useSearchParams
} from 'react-router-dom'

import { RouterContextProvider } from '@harnessio/ui/context'
import { Button, SplitButton } from '@harnessio/ui/components'
import { ComponentProvider, RouterContextProvider } from '@harnessio/ui/context'

const AppRouterProvider: FC = () => {
const navigate = useNavigate()
Expand All @@ -27,7 +28,9 @@ const AppRouterProvider: FC = () => {
useMatches={useMatches}
useParams={useParams}
>
<Outlet />
<ComponentProvider components={{ RbacButton: Button, RbacSplitButton: SplitButton }}>
<Outlet />
</ComponentProvider>
</RouterContextProvider>
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
import { FC, useCallback } from 'react'
import { FC, useCallback, useRef, useState } from 'react'

import { commitDetailsStore } from '@subjects/views/commit-details/commit-details-store'
import { repoFilesStore } from '@subjects/views/repo-files/components/repo-files-store'
import { renderEntries } from '@utils/fileViewUtils'
import { noop } from '@utils/viewUtils'

import { FileExplorer } from '@harnessio/ui/components'
import { CommitDiff, CommitSidebar, ICommitDetailsStore } from '@harnessio/ui/views'
import { FileExplorer, Layout } from '@harnessio/ui/components'
import {
CommitDiff,
CommitSidebar,
DraggableSidebarDivider,
ICommitDetailsStore,
SIDEBAR_MIN_WIDTH
} from '@harnessio/ui/views'

export const CommitDetailsDiffViewWrapper: FC = () => {
const useCommitDetailsStore = useCallback((): ICommitDetailsStore => commitDetailsStore, [])
const [sidebarWidth, setSidebarWidth] = useState(SIDEBAR_MIN_WIDTH)
const containerRef = useRef<HTMLDivElement>(null)

return (
<>
<CommitSidebar navigateToFile={() => {}} filesList={repoFilesStore.filesList}>
<Layout.Flex gapX="lg" ref={containerRef}>
<CommitSidebar navigateToFile={() => {}} filesList={repoFilesStore.filesList} sidebarWidth={sidebarWidth}>
<FileExplorer.Root onValueChange={noop} value={[]}>
{renderEntries(repoFilesStore.filesTreeData, '')}
</FileExplorer.Root>
</CommitSidebar>
<DraggableSidebarDivider width={sidebarWidth} setWidth={setSidebarWidth} containerRef={containerRef} />
<CommitDiff useCommitDetailsStore={useCommitDetailsStore} />
</>
</Layout.Flex>
)
}
Original file line number Diff line number Diff line change
@@ -1,39 +1,59 @@
import { FC, HTMLAttributes, PropsWithChildren } from 'react'
import { FC, HTMLAttributes, PropsWithChildren, useRef, useState } from 'react'

import { repoFilesStore } from '@subjects/views/repo-files/components/repo-files-store'
import { renderEntries } from '@utils/fileViewUtils'
import { noop } from '@utils/viewUtils'

import { FileExplorer } from '@harnessio/ui/components'
import { BranchSelectorV2, RepoSidebar as RepoSidebarView } from '@harnessio/ui/views'
import { FileExplorer, Layout } from '@harnessio/ui/components'
import {
BranchSelectorV2,
DraggableSidebarDivider,
RepoSidebar as RepoSidebarView,
SIDEBAR_MAX_WIDTH,
SIDEBAR_MIN_WIDTH
} from '@harnessio/ui/views'

export const RepoFilesViewWrapper: FC<PropsWithChildren<HTMLAttributes<HTMLElement>>> = ({ children }) => {
const [sidebarWidth, setSidebarWidth] = useState(SIDEBAR_MIN_WIDTH)
const containerRef = useRef<HTMLDivElement>(null)

return (
<div className="flex flex-1">
<RepoSidebarView
navigateToNewFile={noop}
navigateToFile={noop}
filesList={repoFilesStore.filesList}
branchSelectorRenderer={() => (
<BranchSelectorV2
repoId="canary"
spaceId="org"
branchList={[]}
tagList={[]}
selectedBranchorTag={{ name: 'main', sha: 'sha' }}
selectedBranch={{ name: 'main', sha: 'sha' }}
onSelectBranch={noop}
isBranchOnly={false}
dynamicWidth={false}
setSearchQuery={noop}
/>
)}
<Layout.Flex className="flex-1" ref={containerRef}>
<div
className="shrink-0 overflow-hidden"
style={{
width: `${sidebarWidth}px`,
minWidth: `${SIDEBAR_MIN_WIDTH}px`,
maxWidth: `${SIDEBAR_MAX_WIDTH}px`
}}
>
<FileExplorer.Root onValueChange={noop} value={[]}>
{renderEntries(repoFilesStore.filesTreeData, '')}
</FileExplorer.Root>
</RepoSidebarView>
<div className="min-h-[calc(100vh-var(--cn-page-nav-height))]">{children}</div>
</div>
<RepoSidebarView
navigateToNewFile={noop}
navigateToFile={noop}
filesList={repoFilesStore.filesList}
branchSelectorRenderer={() => (
<BranchSelectorV2
repoId="canary"
spaceId="org"
branchList={[]}
tagList={[]}
selectedBranchorTag={{ name: 'main', sha: 'sha' }}
selectedBranch={{ name: 'main', sha: 'sha' }}
onSelectBranch={noop}
isBranchOnly={false}
dynamicWidth={false}
setSearchQuery={noop}
/>
)}
>
<FileExplorer.Root onValueChange={noop} value={[]}>
{renderEntries(repoFilesStore.filesTreeData, '')}
</FileExplorer.Root>
</RepoSidebarView>
</div>
<DraggableSidebarDivider width={sidebarWidth} setWidth={setSidebarWidth} containerRef={containerRef} />

{children}
</Layout.Flex>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { noop } from '@utils/viewUtils'
import { DiffFileEntry, ICommitDetailsStore } from '@harnessio/ui/views'

export const commitDetailsStore: ICommitDetailsStore = {
commitSHA: '',
setCommitSHA: noop,
diffs: [
{
blocks: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import { LabelsListStore } from '@subjects/stores/labels-store'
import { noop } from '@utils/viewUtils'

import { DeleteAlertDialog } from '@harnessio/ui/components'
import { LabelsListPage } from '@harnessio/ui/views'
import { LabelsListPage, SandboxLayout } from '@harnessio/ui/views'

export const ProjectLabelsList = () => {
const [openAlertDeleteDialog, setOpenAlertDeleteDialog] = useState(false)

return (
<>
<SandboxLayout.Content>
<LabelsListPage
useLabelsStore={LabelsListStore.useLabelsStore}
createdIn={''}
searchQuery={''}
setSearchQuery={noop}
labelsListViewProps={{ handleEditLabel: noop, handleDeleteLabel: () => setOpenAlertDeleteDialog(true) }}
Expand All @@ -26,6 +25,6 @@ export const ProjectLabelsList = () => {
deleteFn={noop}
isLoading={false}
/>
</>
</SandboxLayout.Content>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const RepoLabelsList = () => {
<>
<LabelsListPage
useLabelsStore={LabelsListStore.useLabelsStore}
createdIn={''}
searchQuery={''}
setSearchQuery={noop}
isRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const PullRequestCompareWrapper: FC<Partial<PullRequestComparePageProps>> = prop
isDeleted: false,
filePath: 'bot.txt',
diffData: {
fileId: 'some-id',
containerId: 'some-container-id',
contentId: 'some-content-id',
isCombined: false,
Expand All @@ -52,7 +51,8 @@ const PullRequestCompareWrapper: FC<Partial<PullRequestComparePageProps>> = prop
language: 'txt',
blocks: [],
oldName: 'bot.txt',
newName: 'bot.txt'
newName: 'bot.txt',
isRename: false
}
}
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const PullRequestConversation: FC<PullRequestConversationProps> = ({ state }) =>
panelProps={{
handleRebaseBranch,
handlePrState,
handleViewUnresolvedComments: noop,
changesInfo: {
header: changesInfo.title,
content: changesInfo.statusMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const pullRequestListStore: PullRequestListStore = {
page: 1,
openPullReqs: 1,
closedPullReqs: 0,
mergedPullReqs: 0,
setPage: noop,
setLabelsQuery: noop,
prState: ['open'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,20 @@ import { IBranchSelectorStore, RepoBranchListView } from '@harnessio/ui/views'
import { repoBranchesStore } from './repo-branches-store'

export function RepoBranchesView() {
const [isCreateBranchDialogOpen, setCreateBranchDialogOpen] = useState(false)
const [_isCreateBranchDialogOpen, setCreateBranchDialogOpen] = useState(false)
const useRepoBranchesStore = useCallback((): IBranchSelectorStore => repoBranchesStore, [])

return (
<RepoBranchListView
isLoading={false}
isCreatingBranch={false}
onSubmit={async () => {}}
useRepoBranchesStore={useRepoBranchesStore}
isCreateBranchDialogOpen={isCreateBranchDialogOpen}
setCreateBranchDialogOpen={setCreateBranchDialogOpen}
searchQuery={''}
setSearchQuery={noop}
createBranchError={undefined}
toPullRequest={() => ''}
toBranchRules={() => ''}
toPullRequestCompare={() => ''}
onDeleteBranch={noop}
setCreateBranchSearchQuery={noop}
/>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,19 @@ export const repoBranchesStore: IBranchSelectorStore = {
running: 1,
success: 1
}
}
},
pullRequests: [
{
number: 3,
updated: 1737045212396,
state: 'merged',
is_draft: false,
merged: 1737045212397,
timestamp: 'Jan 13, 2025',
reviewRequired: false,
labels: []
}
]
},
{
id: 2,
Expand Down
4 changes: 2 additions & 2 deletions apps/design-system/src/subjects/views/repo-create-rule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useEffect, useState } from 'react'

import { useRepoRulesStore } from '@subjects/views/repo-general-settings/use-repo-rules-store'

import { SkeletonForm } from '@harnessio/ui/components'
import { Skeleton } from '@harnessio/ui/components'
import { RepoBranchSettingsRulesPage } from '@harnessio/ui/views'

const errors = {
Expand Down Expand Up @@ -36,7 +36,7 @@ export const RepoCreateRule = () => {
}, [])

if (!loaded) {
return <SkeletonForm className="mt-7" />
return <Skeleton.Form className="mt-7" />
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const RepoFileEdit = () => {
/>

<Tabs.Root
className="flex flex-col h-full"
className="flex h-full flex-col"
value={view as string}
onValueChange={val => onChangeView(val as EditViewTypeValue)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const RepoFilesWrapper: FC<RepoFilesWrapperProps> = ({ codeMode, isDir, i
<RepoFiles
isRepoEmpty={repoFilesStore.repository.is_empty}
pathParts={repoFilesStore.pathParts}
loading={false}
files={repoFilesStore.files}
isDir={isDir}
isShowSummary={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { tagsStore } from './repo-tags-store'
export const RepoTagsList = () => {
const [openCreateTagDialog, setOpenCreateTagDialog] = useState(false)
const [openCreateBranchDialog, setOpenCreateBranchDialog] = useState(false)
const [selectedTagInList, setSelectedTagInList] = useState<BranchSelectorListItem | null>(null)
const [selectedTagInList, setSelectedTagInList] = useState<BranchSelectorListItem>()
const [preSelectedTab, setPreSelectedTab] = useState<BranchSelectorTab>(BranchSelectorTab.BRANCHES)

const [openDeleteTagDialog, setOpenDeleteTagDialog] = useState(false)
Expand Down Expand Up @@ -60,7 +60,9 @@ export const RepoTagsList = () => {
onSubmit={noop}
isLoading={false}
error=""
selectedBranchOrTag={null}
violation={false}
bypassable={false}
resetViolation={noop}
branchSelectorRenderer={() => (
<BranchSelectorV2
branchList={branches}
Expand Down Expand Up @@ -98,6 +100,9 @@ export const RepoTagsList = () => {
preSelectedTab={preSelectedTab}
/>
)}
violation={false}
bypassable={false}
resetViolation={noop}
/>
<DeleteAlertDialog
open={openDeleteTagDialog}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const SearchPagePreview = () => {
return (
<SearchPageView
isLoading={false}
toRepo={() => '#'}
searchQuery={searchQuery}
regexEnabled={regexEnabled}
setRegexEnabled={setRegexEnabled}
Expand All @@ -25,6 +26,8 @@ export const SearchPagePreview = () => {
onLanguageSelect={() => {}}
onClearFilters={() => {}}
isRepoScope={true}
onRecursiveToggle={() => {}}
scope={{ accountId: '1', orgIdentifier: '2', projectIdentifier: '3' }}
/>
)
}
4 changes: 2 additions & 2 deletions apps/design-system/src/subjects/views/templates/view-only.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ const dataMock: ViewOnlyProps[] = [
value: (
<div className="flex flex-wrap items-center gap-4">
<div className="inline-flex items-center gap-1">
<LogoV2 size="sm" name="app-dynamics" /> delegate-1
<LogoV2 size="xs" name="app-dynamics" /> delegate-1
</div>
<div className="inline-flex items-center gap-1">
<LogoV2 size="sm" name="katalon" /> delegate-2
<LogoV2 size="xs" name="katalon" /> delegate-2
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/gitness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@git-diff-view/react": "^0.0.16",
"@git-diff-view/react": "^0.0.30",
"@swc/core": "^1.12.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^12.1.5",
Expand Down
Loading