@google-psat/report 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@ import React, { memo, useEffect, useMemo, useState } from 'react';
|
|
|
21
21
|
import { getCookieKey, noop, } from '@google-psat/common';
|
|
22
22
|
import { I18n } from '@google-psat/i18n';
|
|
23
23
|
import { Resizable } from 're-resizable';
|
|
24
|
-
import {
|
|
24
|
+
import { TableChipsBar, TableFiltersSidebar, useGlobalFiltering, FilterIcon, } from '@google-psat/design-system';
|
|
25
25
|
/**
|
|
26
26
|
* Internal dependencies.
|
|
27
27
|
*/
|
|
@@ -50,10 +50,10 @@ const AssembledCookiesLanding = ({ tabCookies, tabFrames, setAppliedFilters, dow
|
|
|
50
50
|
const [showFilterSidebar, setShowFilterSidebar] = useState(false);
|
|
51
51
|
return (_jsxs("div", { className: "h-full flex flex-col", children: [_jsx(Header, { url: url, dateTime: dateTime, version: psatVersion }), _jsxs("div", { className: "flex justify-center items-center flex-1 border-b border-gray-300 dark:border-quartz bg-anti-flash-white dark:bg-raisin-black", children: [_jsx("button", { className: "w-3 h-3 m-1 pl-1", onClick: () => setShowFilterSidebar(!showFilterSidebar), title: I18n.getMessage('openFilterOptions'), children: _jsx(FilterIcon, { className: showFilterSidebar
|
|
52
52
|
? 'text-royal-blue dark:text-medium-persian-blue'
|
|
53
|
-
: 'text-mischka' }) }), _jsx(
|
|
53
|
+
: 'text-mischka' }) }), _jsx(TableChipsBar, { selectedFilters: filterOutput.selectedFilters, resetFilters: filterOutput.resetFilters, toggleFilterSelection: filterOutput.toggleFilterSelection })] }), _jsxs("div", { className: "flex grow-0", style: {
|
|
54
54
|
height: 'calc(100% - 82px)',
|
|
55
55
|
}, children: [showFilterSidebar && (_jsx(Resizable, { minWidth: "100px", maxWidth: "50%", enable: {
|
|
56
56
|
right: true,
|
|
57
|
-
}, className: "border border-r border-gray-300 dark:border-quartz", children: _jsx(
|
|
57
|
+
}, className: "border border-r border-gray-300 dark:border-quartz", children: _jsx(TableFiltersSidebar, { filters: filterOutput.filters, toggleFilterSelection: filterOutput.toggleFilterSelection, toggleSelectAllFilter: filterOutput.toggleSelectAllFilter, isSelectAllFilterSelected: filterOutput.isSelectAllFilterSelected }) })), _jsx("div", { className: "flex-1 overflow-auto h-full", id: menuBarScrollContainerId, children: _jsx(Landing, { tabCookies: cookiesByKey, tabFrames: tabFrames, cookiesWithIssues: cookiesWithIssues, downloadReport: downloadReport, libraryMatches: libraryMatches, libraryMatchesUrlCount: libraryMatchesUrlCount, menuBarScrollContainerId: menuBarScrollContainerId }) })] })] }));
|
|
58
58
|
};
|
|
59
59
|
export default memo(AssembledCookiesLanding);
|
package/dist/dashboard/components/utils/reportDownloader/generateSiteMapReportandDownload.js
CHANGED
|
@@ -39,9 +39,9 @@ const generateSiteMapReportandDownload = async (JSONReport, appliedFilters, path
|
|
|
39
39
|
const report = generateSitemapHTMLFile(JSONReport, appliedFilters);
|
|
40
40
|
const rootSummaryData = generateRootSummaryDataCSV(JSONReport);
|
|
41
41
|
zip.file('report.html', report);
|
|
42
|
-
zip.file('report.csv', rootSummaryData);
|
|
43
42
|
const errorLogs = generateErrorLogFile(JSONReport);
|
|
44
43
|
zip.file('error_logs.txt', errorLogs);
|
|
44
|
+
zip.file('report.csv', rootSummaryData);
|
|
45
45
|
const content = await zip.generateAsync({ type: 'blob' });
|
|
46
46
|
saveAs(content, `psat_cli_report_${getFolderName(path)}_${getCurrentDateAndTime('YYYY-MM-DD_HH-MM-SS')}.zip`);
|
|
47
47
|
};
|