mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 02:28:39 +00:00
improvements: additional feedback
This commit is contained in:
-4
@@ -1,6 +1,3 @@
|
|||||||
import { faExpand } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
|
|
||||||
import { createNotification } from "@app/components/notifications";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { ProjectPermissionCan } from "@app/components/permissions";
|
import { ProjectPermissionCan } from "@app/components/permissions";
|
||||||
import { Button } from "@app/components/v2";
|
import { Button } from "@app/components/v2";
|
||||||
@@ -63,7 +60,6 @@ export const SecretScanningResourceSection = ({ dataSource }: Props) => {
|
|||||||
{(isAllowed) => (
|
{(isAllowed) => (
|
||||||
<Button
|
<Button
|
||||||
colorSchema="secondary"
|
colorSchema="secondary"
|
||||||
leftIcon={<FontAwesomeIcon icon={faExpand} />}
|
|
||||||
onClick={handleTriggerScan}
|
onClick={handleTriggerScan}
|
||||||
isDisabled={!isAllowed || triggerDataSourceScan.isPending}
|
isDisabled={!isAllowed || triggerDataSourceScan.isPending}
|
||||||
isLoading={triggerDataSourceScan.isPending}
|
isLoading={triggerDataSourceScan.isPending}
|
||||||
|
|||||||
+10
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import { RESOURCE_DESCRIPTION_HELPER } from "@app/helpers/secretScanningV2";
|
||||||
import { TSecretScanningDataSource } from "@app/hooks/api/secretScanningV2";
|
import { TSecretScanningDataSource } from "@app/hooks/api/secretScanningV2";
|
||||||
|
|
||||||
import { SecretScanningScanTable } from "./SecretScanningScanTable";
|
import { SecretScanningScanTable } from "./SecretScanningScanTable";
|
||||||
@@ -7,10 +8,18 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const SecretScanningScanSection = ({ dataSource }: Props) => {
|
export const SecretScanningScanSection = ({ dataSource }: Props) => {
|
||||||
|
const resourceDetails = RESOURCE_DESCRIPTION_HELPER[dataSource.type];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
|
<div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
|
||||||
<div className="mb-4 flex items-center justify-between">
|
<div className="mb-4 flex items-center justify-between">
|
||||||
<p className="text-xl font-semibold text-mineshaft-100">Scan History</p>
|
<div>
|
||||||
|
<p className="text-xl font-semibold text-mineshaft-100">Scan History</p>
|
||||||
|
<p className="text-sm text-bunker-300">
|
||||||
|
Detailed history of when {resourceDetails.singularNoun} scans occurred and their
|
||||||
|
findings
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<SecretScanningScanTable dataSource={dataSource} />
|
<SecretScanningScanTable dataSource={dataSource} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user