mirror of https://github.com/harness/drone.git
feat: [CDE-107]: Product feedback chanegs (#2221)
* feat: [CDE-107]: Product feedback chanegsunified-ui
parent
8315560180
commit
6c3627621e
|
@ -76,7 +76,7 @@ export const DetailsCard = ({ data }: { data: TypesGitspaceConfig | null; loadin
|
|||
</Layout.Vertical>
|
||||
|
||||
<Layout.Vertical spacing="small" flex={{ justifyContent: 'center', alignItems: 'flex-start' }}>
|
||||
<Text>{getString('cde.lastUsed')}</Text>
|
||||
<Text>{getString('cde.lastActivated')}</Text>
|
||||
{instance?.last_used ? (
|
||||
<ReactTimeago date={instance?.last_used || 0} />
|
||||
) : (
|
||||
|
|
|
@ -164,6 +164,7 @@ export const GitnessRepoImportForm = () => {
|
|||
return {
|
||||
...prvValues,
|
||||
code_repo_url: repo.git_url,
|
||||
branch: repo.default_branch,
|
||||
identifier: repoParams?.[repoParams.length - 1],
|
||||
name: repo.path
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ import {
|
|||
} from 'iconoir-react'
|
||||
import { Intent, Menu, MenuItem, PopoverInteractionKind, Position } from '@blueprintjs/core'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { isNil } from 'lodash-es'
|
||||
import { useMutate } from 'restful-react'
|
||||
import type { IconName } from '@harnessio/icons'
|
||||
import { UseStringsReturn, useStrings } from 'framework/strings'
|
||||
|
@ -160,9 +159,8 @@ export const RenderGitspaceName: Renderer<CellProps<TypesGitspaceConfig>> = ({ r
|
|||
}
|
||||
|
||||
export const RenderRepository: Renderer<CellProps<TypesGitspaceConfig>> = ({ row }) => {
|
||||
const { getString } = useStrings()
|
||||
const details = row.original
|
||||
const { name, branch, code_repo_url, code_repo_type, instance } = details || {}
|
||||
const { name, branch, code_repo_url, code_repo_type } = details || {}
|
||||
|
||||
return (
|
||||
<Layout.Vertical spacing={'small'}>
|
||||
|
@ -192,11 +190,6 @@ export const RenderRepository: Renderer<CellProps<TypesGitspaceConfig>> = ({ row
|
|||
{branch}
|
||||
</Text>
|
||||
</Layout.Horizontal>
|
||||
{(isNil(instance?.tracked_changes) || instance?.tracked_changes === '') && (
|
||||
<Text color={Color.GREY_300} font={{ align: 'left', size: 'small', weight: 'semi-bold' }}>
|
||||
{getString('cde.noChange')}
|
||||
</Text>
|
||||
)}
|
||||
</Layout.Vertical>
|
||||
)
|
||||
}
|
||||
|
@ -387,6 +380,7 @@ const ActionMenu = ({
|
|||
</Container>
|
||||
|
||||
<MenuItem
|
||||
disabled={disabledActionButtons}
|
||||
onClick={deleteGitspace as Unknown as () => void}
|
||||
text={
|
||||
<Layout.Horizontal spacing="small" flex={{ alignItems: 'center', justifyContent: 'flex-start' }}>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
margin-top: var(--spacing-xxlarge) !important;
|
||||
width: 100% !important;
|
||||
|
||||
[data-testid='logsCard-panel'],
|
||||
[data-testid='eventsCard-panel'] {
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ export const GitspaceDetails = () => {
|
|||
useEffect(() => {
|
||||
const filteredEvent = eventData?.filter(
|
||||
item =>
|
||||
item.event === 'agent_gitspace_creation_start' &&
|
||||
(item.event === 'agent_gitspace_creation_start' || item.event === 'agent_gitspace_deletion_start') &&
|
||||
defaultTo(item?.timestamp, 0) >= defaultTo(data?.instance?.updated, 0)
|
||||
)
|
||||
if (disabledActionButtons && filteredEvent?.length && !isStreamingLogs) {
|
||||
|
|
|
@ -1159,7 +1159,7 @@ cde:
|
|||
startingGitspace: Starting Gitspace
|
||||
stopingGitspace: Stopping Gitspace
|
||||
sessionDuration: Last Started
|
||||
lastActivated: LAST ACTIVATED
|
||||
lastActivated: Last Activated
|
||||
deleteGitspaceTitle: Delete Gitspace '{{name}}'
|
||||
deleteGitspaceText: 'This action cannot be undone. Are you sure you want to proceed to delete?'
|
||||
deleteSuccess: Gitspace deleted succesfully
|
||||
|
@ -1185,7 +1185,7 @@ cde:
|
|||
repoNotFound: 'Create a repo <strong>{{repo}}</strong> in Gitness'
|
||||
gitspaceCreateSuccess: Gitspace created successfully
|
||||
gitspaceCreateFailed: Gitspace creation failed
|
||||
subtext: Start Coding, no setup required. Dedicated cloud development environments with your favorite editor
|
||||
subtext: Start Coding, no setup required. Dedicated cloud development environments with your favorite editor.
|
||||
importWarning:
|
||||
Currently we support only third party public repositories. In order to use a private git repository, please
|
||||
import the repository into Gitness.
|
||||
|
|
Loading…
Reference in New Issue