vault/ui/ember-cli-build.js
Vault Automation 8c37186b50
Backport Migrate Vault Reporting Dashboard from shared package into Vault Enterprise into ce/main (#15382)
* no-op commit

* Migrate Vault Reporting Dashboard from shared package into Vault Enterprise (#14892)

* Migrate Vault Reporting Dashboard from shared package into Vault Enterprise

* Add click interactions for export toggle in usage reporting dashboard tests

* feat(reporting): enhance external link security with rel attributes

* feat(reporting): migrate Vault Reporting Dashboard components and integrate meter chart visualization

* feat(reporting): remove deprecated meter.js and migration instructions for Vault Reporting Dashboard

* Migrate Vault Reporting Dashboard from shared package into Vault Enterprise

* Add click interactions for export toggle in usage reporting dashboard tests

* feat(reporting): enhance external link security with rel attributes

* feat(reporting): migrate Vault Reporting Dashboard components and integrate meter chart visualization

* feat(reporting): remove deprecated meter.js and migration instructions for Vault Reporting Dashboard

* feat(reporting): migrate horizontal bar chart to new viz-card component and remove deprecated files

* feat(reporting): remove horizontal bar chart component and associated files

* feat(reporting): update dashboard to force remount of chart layers on namespace refresh and improve data fetching logic

* feat(reporting): remove usage reporting handler and associated imports

* feat(reporting): refactor route handling and remove safeRoute utility; update data download methods- copilot recommendation

* feat(reporting): enhance tooltip interaction by replacing mouse events with pointer events for better responsiveness

* feat(reporting): remove reporting analytics service and associated tracking logic from dashboard components

* feat(reporting): standardize text casing in dashboard and export components

* feat(reporting): standardize text casing in usage reporting tests

* feat(reporting): add padding to carbon chart for improved layout

* feat(reporting): implement toSentenceCase utility and update chart labels for consistency

* feat(reporting): enhance toSentenceCase utility to handle acronyms and branded names

* feat(reporting): migrate vault-reporting module from shared package to Vault Enterprise

* feat(reporting): enhance tooltip functionality and styling for usage reporting charts

* Fix formatting in pnpm-lock.yaml

* Refactor CSV export to use sentence case for labels and enhance toSentenceCase utility

* Refactor CSV download test to simplify URL handling and assert sentence case labels

* Enhance destination name formatting to use sentence case in reporting dashboard

* Add RabbitMQ branding override and update tests for sentence case handling

---------

Co-authored-by: Aravind VM <aravind.vm@ibm.com>
2026-06-10 13:26:45 -07:00

93 lines
2.3 KiB
JavaScript

/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
/* eslint-env node */
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const config = require('./config/environment')();
const environment = EmberApp.env();
const isProd = environment === 'production';
const isTest = environment === 'test';
// const isCI = !!process.env.CI;
const appConfig = {
'ember-service-worker': {
serviceWorkerScope: config.serviceWorkerScope,
skipWaitingOnMessage: true,
},
babel: {
plugins: [require.resolve('ember-concurrency/async-arrow-task-transform')],
},
fingerprint: {
exclude: ['images/'],
},
assetLoader: {
generateURI: function (filePath) {
return `${config.rootURL.replace(/\/$/, '')}${filePath}`;
},
},
'ember-cli-babel': {
enableTypeScriptTransform: true,
throwUnlessParallelizable: true,
},
hinting: isTest,
tests: !isProd,
sourcemaps: {
enabled: !isProd,
},
sassOptions: {
sourceMap: false,
onlyIncluded: true,
quietDeps: true, // silences deprecation warnings from dependencies
precision: 4,
includePaths: [
'./node_modules/@hashicorp/design-system-components/dist/styles',
'./node_modules/@hashicorp/design-system-tokens/dist/products/css',
'./node_modules/ember-basic-dropdown/',
'./node_modules/ember-power-select/',
],
},
minifyCSS: {
options: {
advanced: false,
},
},
autoprefixer: {
enabled: isTest || isProd,
grid: true,
browsers: ['defaults'],
},
autoImport: {
forbidEval: true,
},
'ember-test-selectors': {
strip: isProd,
},
'ember-composable-helpers': {
except: ['array'],
},
'ember-cli-deprecation-workflow': {
enabled: true,
},
};
module.exports = function (defaults) {
const app = new EmberApp(defaults, appConfig);
app.import('node_modules/text-encoder-lite/text-encoder-lite.js');
app.import('vendor/jsondiffpatch.umd.js');
app.import('vendor/htmlformatter.umd.js');
app.import('node_modules/jsondiffpatch/lib/formatters/styles/html.css');
app.import('app/styles/bulma/bulma-radio-checkbox.css');
app.import(
'node_modules/@hashicorp/design-system-components/dist/styles/@hashicorp/design-system-components.css'
);
app.import('node_modules/@carbon/charts/dist/styles.css');
return app.toTree();
};