Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: switch to rum-distiller for oversight #669

Merged
merged 4 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"homepage": "https://github.com/adobe/helix-website#readme",
"devDependencies": {
"@adobe/rum-distiller": "^1.4.1",
"@babel/core": "7.18.0",
"@babel/eslint-parser": "7.17.0",
"@esm-bundle/chai": "4.3.4-fix.0",
Expand Down
150 changes: 0 additions & 150 deletions tools/oversight/acquisition.js

This file was deleted.

5 changes: 4 additions & 1 deletion tools/oversight/charts/barchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import {
Chart, LinearScale, registerables,
// eslint-disable-next-line import/no-unresolved, import/extensions
} from 'chartjs';
import { utils } from '@adobe/rum-distiller';
import AbstractChart from './chart.js';
import {
toHumanReadable, scoreBundle, cwvInterpolationFn, cssVariable,
toHumanReadable, cssVariable, cwvInterpolationFn,
} from '../utils.js';

const { scoreBundle } = utils;

Chart.register(LinearScale, ...registerables);

const INTERPOLATION_THRESHOLD = 10;
Expand Down
5 changes: 4 additions & 1 deletion tools/oversight/charts/sankey.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
import { SankeyController, Flow } from 'chartjs-chart-sankey';
// eslint-disable-next-line import/no-unresolved
import { Chart, registerables } from 'chartjs';
import { utils } from '@adobe/rum-distiller';
import AbstractChart from './chart.js';
import {
cssVariable, parseConversionSpec, reclassifyAcquisition, reclassifyEnter,
cssVariable, parseConversionSpec,
} from '../utils.js';

const { reclassifyAcquisition, reclassifyEnter } = utils;

Chart.register(SankeyController, Flow, ...registerables);

/*
Expand Down
22 changes: 14 additions & 8 deletions tools/oversight/charts/skyline.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,24 @@ import {
// eslint-disable-next-line import/no-unresolved, import/extensions
import 'chartjs-adapter-luxon';
import {
INTERPOLATION_THRESHOLD,
scoreBundle,
scoreCWV,
toHumanReadable,
cwvInterpolationFn,
utils,
stats,
} from '@adobe/rum-distiller';
import AbstractChart from './chart.js';
import {
truncate,
simpleCWVInterpolationFn,
toHumanReadable,
cssVariable,
getGradient,
cwvInterpolationFn,
simpleCWVInterpolationFn,
INTERPOLATION_THRESHOLD,
} from '../utils.js';
import AbstractChart from './chart.js';
import { linearRegression } from '../cruncher.js';

const {
scoreCWV, scoreBundle,
} = utils;
const { linearRegression } = stats;

Chart.register(TimeScale, LinearScale, ...registerables);

Expand Down
56 changes: 0 additions & 56 deletions tools/oversight/consent.js

This file was deleted.

Loading
Loading