Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
135edce
chore: doc link component added
shivani170 May 14, 2025
82a037e
chore: added doc link in tippy customoze
shivani170 May 14, 2025
5c186f8
chore: Documentation constant added in doc link component
shivani170 May 15, 2025
ad5a2aa
chore: modification in the naming of the Doclink
shivani170 May 15, 2025
4c8f1eb
chore: modification in the naming of the Doclink
shivani170 May 15, 2025
f5855bc
chore: size props added in links
shivani170 May 15, 2025
2556b62
chore: Replaced all Doc link anchor with docLink Component
shivani170 May 15, 2025
726d320
chore: type added for documentation link
shivani170 May 15, 2025
7def66d
fix: Update DocLink component to handle isEnterprise prop
shivani170 May 15, 2025
29e6812
Merge branch 'develop' into feat/doc-utm-source
shivani170 May 19, 2025
ef7d8c0
feat: add FEATURE_REDFISH_NODE_ENABLE to customEnv interface
AbhishekA1509 May 19, 2025
1eddf38
chore: code refactoring
shivani170 May 19, 2025
58b7d85
feat: enhance SegmentedBarChart with hideLegend prop and update types
AbhishekA1509 May 19, 2025
9b45b39
fix: update getBarChartEntities return type to NonNullable<Entity[]>
AbhishekA1509 May 19, 2025
2f4ef2f
chore: isExternalLink support for ci external plugins
shivani170 May 19, 2025
ad5e1c3
chore: text fix for documentation in page header
shivani170 May 19, 2025
7fca4fc
chore: isEnterprise tpe moved to page header
shivani170 May 19, 2025
5ff3361
feat: add thermometer icon and update icon map
AbhishekA1509 May 20, 2025
f6900c4
chore: css fixes
shivani170 May 20, 2025
ab2aead
feat: add terminal icon and update icon map
AbhishekA1509 May 20, 2025
659e83f
fix: correct z-index for search panel in code editor
RohitRaj011 May 20, 2025
406fe06
chore: version bump
RohitRaj011 May 20, 2025
9baa102
Merge pull request #738 from devtron-labs/fix/code-editor-panel-z-index
RohitRaj011 May 20, 2025
e567368
fix: update NodeDetailTabsInfoType to use renderComponent instead of …
AbhishekA1509 May 20, 2025
7412648
fix: update version to 1.13.0-redfish-preview-beta-1 in package.json …
AbhishekA1509 May 20, 2025
2ffd730
fix: update version to 1.13.0-pre-8 in package.json and package-lock.…
AbhishekA1509 May 21, 2025
3e250dc
Merge branch 'release-candidate-v0.36.0' of https://github.com/devtro…
AbhishekA1509 May 21, 2025
ce2759d
Merge pull request #741 from devtron-labs/feat/redfish-node-ui-rc
AbhishekA1509 May 21, 2025
d3af342
Merge branch 'develop' into feat/doc-utm-source
shivani170 May 21, 2025
ceb4929
fix: set default value for NodeDrainOptions
May 21, 2025
cca05f2
chore(version): bump to 1.14.0
RohitRaj011 May 21, 2025
9865d73
Merge pull request #743 from devtron-labs/fix/bulk-drain
whoami-amrit May 21, 2025
8fcd059
Merge branch 'release-candidate-v0.36.0' into rc-merge/v0.36.0
RohitRaj011 May 21, 2025
e39ac3d
Merge pull request #744 from devtron-labs/rc-merge/v0.36.0
whoami-amrit May 21, 2025
4335197
Merge pull request #745 from devtron-labs/release-candidate-v0.36.0
RohitRaj011 May 21, 2025
efc2597
chore: moved doc link to shared
shivani170 May 21, 2025
b8f0677
chore: type strict
shivani170 May 21, 2025
bb3d3d3
Merge branch 'main' into feat/doc-utm-source
shivani170 May 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/Common/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export const DOCUMENTATION_VERSION = '/v/v0.7'
export const DISCORD_LINK = 'https://discord.devtron.ai/'
export const DEFAULT_JSON_SCHEMA_URI = 'https://json-schema.org/draft/2020-12/schema'
export const DOCUMENTATION = {
Comment thread
AbhishekA1509 marked this conversation as resolved.
Outdated
APP_METRICS: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/usage/applications/app-details/app-metrics`,
APP_TAGS: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/usage/applications/create-application#tags`,
APP_OVERVIEW_TAGS: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/usage/applications/overview#manage-tags`,
BLOB_STORAGE: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/getting-started/install/installation-configuration#configuration-of-blob-storage`,
GLOBAL_CONFIG_BUILD_INFRA: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/global-configurations/build-infra`,
ENTERPRISE_LICENSE: `${DOCUMENTATION_HOME_PAGE}/enterprise-license`,
KUBE_CONFIG: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/usage/resource-browser#running-kubectl-commands-locally`,
APP_METRICS: `usage/applications/app-details/app-metrics`,
Comment thread
shivani170 marked this conversation as resolved.
Outdated
APP_TAGS: `usage/applications/create-application#tags`,
APP_OVERVIEW_TAGS: `usage/applications/overview#manage-tags`,
BLOB_STORAGE: `getting-started/install/installation-configuration#configuration-of-blob-storage`,
GLOBAL_CONFIG_BUILD_INFRA: `global-configurations/build-infra`,
ENTERPRISE_LICENSE: `enterprise-license`,
KUBE_CONFIG: `usage/resource-browser#running-kubectl-commands-locally`,
TENANT_INSTALLATION: `${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/usage/software-distribution-hub/tenants`,
Comment thread
shivani170 marked this conversation as resolved.
Outdated
}

Expand Down
3 changes: 2 additions & 1 deletion src/Common/CustomTagSelector/PropagateTagInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ReactComponent as ICHelpOutline } from '../../Assets/Icon/ic-help-outli
import { TippyCustomized } from '../TippyCustomized'
import { TippyTheme } from '../Types'
import { DOCUMENTATION } from '../Constants'
import { getDocumentationUrl } from '@Common/DocLink'

export default function PropagateTagInfo({ isCreateApp }: { isCreateApp: boolean }) {
const additionalInfo = () => (
Expand Down Expand Up @@ -47,7 +48,7 @@ export default function PropagateTagInfo({ isCreateApp }: { isCreateApp: boolean
showCloseButton
trigger="click"
interactive
documentationLink={isCreateApp ? DOCUMENTATION.APP_TAGS : DOCUMENTATION.APP_OVERVIEW_TAGS}
documentationLink={isCreateApp ? getDocumentationUrl(DOCUMENTATION.APP_TAGS) : getDocumentationUrl(DOCUMENTATION.APP_OVERVIEW_TAGS)}
Comment thread
shivani170 marked this conversation as resolved.
Outdated
documentationLinkText="View Documentation"
>
<div className="flexbox cursor">
Expand Down
19 changes: 19 additions & 0 deletions src/Common/DocLink/DocLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { DOCUMENTATION_HOME_PAGE, DOCUMENTATION_VERSION } from '..'
import { DocLinkProps } from './types'

export const appendUtmToUrl = (docLink: string) => `${docLink}?utm_source=product`

export const getDocumentationUrl = (docLink: string) =>
Comment thread
shivani170 marked this conversation as resolved.
Outdated
`${DOCUMENTATION_HOME_PAGE}${DOCUMENTATION_VERSION}/${appendUtmToUrl(docLink)}`

export const DocLink = ({ docLink, docLinkText = 'Learn more', dataTestId, className = 'dc__link' }: DocLinkProps) => (
<a
Comment thread
shivani170 marked this conversation as resolved.
Outdated
href={getDocumentationUrl(docLink)}
target="_blank"
rel="noreferrer noopener"
data-testid={dataTestId || ''}
className={className}
>
{docLinkText}
</a>
)
1 change: 1 addition & 0 deletions src/Common/DocLink/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { DocLink, getDocumentationUrl } from './DocLink'
6 changes: 6 additions & 0 deletions src/Common/DocLink/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface DocLinkProps {
docLink: string
dataTestId: string
docLinkText?: string
className?: string
}
1 change: 1 addition & 0 deletions src/Common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export * from './DeleteCINodeButton'
export { default as DevtronCopyright } from './DevtronCopyright'
export * from './DevtronProgressing'
export * from './Dialogs'
export * from './DocLink'
export * from './DraggableWrapper'
export * from './Drawer'
export * from './EmptyState'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import { ReactComponent as ICInfoFilledOverride } from '@Icons/ic-info-filled-override.svg'
import { Checkbox } from '@Common/Checkbox'
import { DOCUMENTATION } from '@Common/Constants'
import { getDocumentationUrl } from '@Common/DocLink'
import { Progressing } from '@Common/Progressing'
import { Tooltip } from '@Common/Tooltip'
import { CHECKBOX_VALUE } from '@Common/Types'
Expand Down Expand Up @@ -96,7 +97,7 @@ const DTApplicationMetricsFormField = ({
<InfoIconTippy
heading="Application Metrics"
infoText="Capture and show key application metrics over time. (E.g. Status codes 2xx, 3xx, 5xx; throughput and latency)."
documentationLink={DOCUMENTATION.APP_METRICS}
documentationLink={getDocumentationUrl(DOCUMENTATION.APP_METRICS)}
documentationLinkText="Learn more"
dataTestid="app-metrics-info"
iconClassName="dc__no-shrink icon-dim-16 fcn-6"
Expand Down
3 changes: 2 additions & 1 deletion src/Pages/GlobalConfigurations/BuildInfra/Descriptor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import { getDocumentationUrl } from '@Common/DocLink'
import { InfoIconTippy } from '@Shared/Components/InfoIconTippy'

import { BreadCrumb, DOCUMENTATION } from '../../../Common'
Expand All @@ -38,7 +39,7 @@ const Descriptor = ({
infoText={tippyInfoText ?? BUILD_INFRA_TEXT.EDIT_DEFAULT_TOOLTIP}
additionalContent={tippyAdditionalContent}
heading={tooltipHeading || BUILD_INFRA_TEXT.HEADING}
documentationLink={DOCUMENTATION.GLOBAL_CONFIG_BUILD_INFRA}
documentationLink={getDocumentationUrl(DOCUMENTATION.GLOBAL_CONFIG_BUILD_INFRA)}
documentationLinkText="View Documentation"
iconClassName="icon-dim-20 fcn-6"
/>
Expand Down
12 changes: 9 additions & 3 deletions src/Shared/Components/CICDHistory/Artifacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import folder from '@Icons/ic-folder.svg'
import { ReactComponent as ICHelpOutline } from '@Icons/ic-help.svg'
import { ReactComponent as MechanicalOperation } from '@Icons/ic-mechanical-operation.svg'
import noartifact from '@Images/no-artifact.webp'
import { DocLink } from '@Common/DocLink'
import { getIsApprovalPolicyConfigured } from '@Shared/Helpers'
import { useDownload } from '@Shared/Hooks'

Expand Down Expand Up @@ -274,14 +275,19 @@ const Artifacts = ({
<span className="fs-13 fw-4 mr-8 ml-8">
{EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles}
</span>
<a
{/* <a
Comment thread
shivani170 marked this conversation as resolved.
Outdated
className="fs-13 fw-6 cb-5 dc__no-decor"
href={DOCUMENTATION.BLOB_STORAGE}
href={getDocumentationUrl(DOCUMENTATION.BLOB_STORAGE)}
target="_blank"
rel="noreferrer"
>
{EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage}
</a>
</a> */}
<DocLink
docLink={DOCUMENTATION.BLOB_STORAGE}
docLinkText={EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage}
dataTestId="configure-blob-storage"
/>
<OpenInNew className="icon-dim-20 ml-8" />
</div>
</div>
Expand Down
15 changes: 7 additions & 8 deletions src/Shared/Components/CICDHistory/LogsRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import DOMPurify from 'dompurify'
import { ReactComponent as ICArrow } from '@Icons/ic-caret-down.svg'
import { ReactComponent as ICCollapseAll } from '@Icons/ic-collapse-all.svg'
import { ReactComponent as ICExpandAll } from '@Icons/ic-expand-all.svg'
import { DocLink } from '@Common/DocLink'
import { ANSI_UP_REGEX, ComponentSizeType } from '@Shared/constants'
import { escapeRegExp, sanitizeTargetPlatforms } from '@Shared/Helpers'
import { AppThemeType, getComponentSpecificThemeClass } from '@Shared/Providers'
Expand Down Expand Up @@ -82,14 +83,12 @@ const renderBlobNotConfigured = (): JSX.Element => (
<div className="flexbox configure-blob-container pt-8 pr-12 pb-8 pl-12 bcv-1 br-4">
<HelpIcon className="icon-dim-20 fcv-5" />
<span className="fs-13 fw-4 mr-8 ml-8 text__white">Want to store logs to view later?</span>
<a
className="fs-13 fw-6 cb-5 dc__no-decor"
href={DOCUMENTATION.BLOB_STORAGE}
target="_blank"
rel="noreferrer"
>
Configure blob storage
</a>

<DocLink
docLink={DOCUMENTATION.BLOB_STORAGE}
docLinkText="Configure blob storage"
dataTestId="configure-blob-storage"
/>
<OpenInNew className="icon-dim-20 ml-8" />
</div>
</>
Expand Down
3 changes: 2 additions & 1 deletion src/Shared/Components/License/License.components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useEffect, useRef, useState } from 'react'
import { ReactComponent as ICCheck } from '@Icons/ic-check.svg'
import { ReactComponent as ICClipboard } from '@Icons/ic-copy.svg'
import { DOCUMENTATION } from '@Common/Constants'
import { getDocumentationUrl } from '@Common/DocLink'
import { ClipboardButton, copyToClipboard, showError } from '@Common/index'

import { Backdrop, Button, ButtonStyleType, ButtonVariantType, Icon, InfoIconTippy, QRCode } from '..'
Expand Down Expand Up @@ -90,7 +91,7 @@ const InstallationFingerprintInfo = ({ fingerprint, showHelpTooltip = false }: I
documentationLinkText="Documentation"
iconClassName="icon-dim-20 fcn-6"
placement="right"
documentationLink={DOCUMENTATION.ENTERPRISE_LICENSE}
documentationLink={getDocumentationUrl(DOCUMENTATION.ENTERPRISE_LICENSE)}
/>
)}
</div>
Expand Down