MInor: Fixed PR Comments (#20655)

* fixed Memerbs page || table|| bot column

* Minor:added cursor pointer

* Minor:added cursor pointer

* fixed comments

* fixed comments

* fixed comments
This commit is contained in:
Dhruv Parmar 2025-04-07 21:31:02 +05:30 committed by GitHub
parent 03cc7daa48
commit 69678f59fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 38 additions and 15 deletions

View File

@ -20,7 +20,6 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import { ReactComponent as IconDelete } from '../../../../assets/svg/ic-delete.svg';
import { LINK_COLOR } from '../../../../constants/constants';
import { BOTS_DOCS } from '../../../../constants/docs.constants';
import { GlobalSettingsMenuCategory } from '../../../../constants/GlobalSettings.constants';
import { PAGE_HEADERS } from '../../../../constants/PageHeaders.constant';
@ -52,8 +51,8 @@ import Table from '../../../common/Table/Table';
import TitleBreadcrumb from '../../../common/TitleBreadcrumb/TitleBreadcrumb.component';
import { TitleBreadcrumbProps } from '../../../common/TitleBreadcrumb/TitleBreadcrumb.interface';
import PageHeader from '../../../PageHeader/PageHeader.component';
import './bot-list-v1.less';
import { BotListV1Props } from './BotListV1.interfaces';
const BotListV1 = ({
showDeleted,
handleAddBotClick,
@ -130,8 +129,7 @@ const BotListV1 = ({
<Link data-testid={`bot-link-${name}`} to={getBotsPath(fqn)}>
<Typography.Text
className="text-ellipsis bot-link"
ellipsis={{ tooltip: true }}
style={{ color: LINK_COLOR }}>
ellipsis={{ tooltip: true }}>
{stringToHTML(highlightSearchText(name, searchTerm))}
</Typography.Text>
</Link>
@ -315,7 +313,7 @@ const BotListV1 = ({
onSearch={handleSearch}
/>
</Col>
<Col span={24}>
<Col className="bot-list-v1-container" span={24}>
<Table
columns={columns}
customPaginationProps={{

View File

@ -0,0 +1,18 @@
/*
* Copyright 2025 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@import (reference) url('../../../../styles/variables.less');
.bot-list-v1-container {
.bot-link {
color: @blue-17;
}
}

View File

@ -95,14 +95,10 @@ const DomainSelectableList = ({
[onUpdate, multiple]
);
const handleCancel = useCallback(
(e) => {
e.stopPropagation();
setPopupVisible(false);
onCancel?.();
},
[onCancel]
);
const handleCancel = useCallback(() => {
setPopupVisible(false);
onCancel?.();
}, [onCancel]);
const popoverContent = useMemo(() => {
return (

View File

@ -17,7 +17,7 @@ export interface DomainSelectableTreeProps {
value?: string[]; // array of fqn
onSubmit: (option: EntityReference[]) => Promise<void>;
visible: boolean;
onCancel: (event?: React.SyntheticEvent) => void;
onCancel: () => void;
isMultiple?: boolean;
initialDomains?: EntityReference[];
dropdownRef?: React.RefObject<HTMLDivElement>;

View File

@ -35,7 +35,6 @@ export const BORDER_COLOR = '#0000001a';
export const BLACK_COLOR = '#000000';
export const WHITE_COLOR = '#ffffff';
export const LIGHT_GREEN_COLOR = '#4CAF50';
export const LINK_COLOR = '#0968da';
export const DEFAULT_CHART_OPACITY = 1;
export const HOVER_CHART_OPACITY = 0.3;

View File

@ -66,6 +66,10 @@ export interface RESTConnection {
* Regex to only fetch api collections with names matching the pattern.
*/
apiCollectionFilterPattern?: FilterPattern;
/**
* Documentation URL for the schema.
*/
docURL?: string;
/**
* Open API Schema URL.
*/

View File

@ -180,6 +180,10 @@ export interface RESTConnection {
* Regex to only fetch api collections with names matching the pattern.
*/
apiCollectionFilterPattern?: FilterPattern;
/**
* Documentation URL for the schema.
*/
docURL?: string;
/**
* Open API Schema URL.
*/

View File

@ -2598,6 +2598,10 @@ export interface ConfigClass {
* Regex to only fetch api collections with names matching the pattern.
*/
apiCollectionFilterPattern?: FilterPattern;
/**
* Documentation URL for the schema.
*/
docURL?: string;
/**
* Open API Schema URL.
*/