T17: sweep of the WebApp after the feature-parity work

Removed the legacy indicator layout, unused chart helpers, styles and
exports, the card-actions component, fetch-all and explanatory comments;
one pager shared by the four worklists, shared filter-row styles, one
FHIR name and CURP reader, downloads through export/, the concept-map
editor on Material controls.
This commit is contained in:
2026-12-01 06:48:57 -06:00
parent 8237e9f483
commit 7c98566579
61 changed files with 338 additions and 1166 deletions
+2 -10
View File
@@ -4,7 +4,6 @@ import plotly from './plotly-bundle';
export type Figure = { data: Partial<Plotly.Data>[]; layout?: Partial<Plotly.Layout> };
/** The series colours today's charts use, in order. */
export const PALETTE = [
'#A8C243',
'#42C29C',
@@ -21,21 +20,16 @@ const LAYOUT: Partial<Plotly.Layout> = {
margin: { t: 24, r: 16, b: 48, l: 56 },
paper_bgcolor: 'rgba(0,0,0,0)',
plot_bgcolor: 'rgba(0,0,0,0)',
// Above the plot, left-aligned: Plotly reserves its room, so it never meets an axis title.
legend: { orientation: 'h', x: 0, xanchor: 'left', y: 1.02, yanchor: 'bottom' },
hoverlabel: { font: { family: 'Roboto, Arial, sans-serif', size: 13 } },
};
// Axes make room for their labels and titles; a title keeps clear of the tick labels.
// (`ticklabelstandoff` is Plotly's, newer than its published types.)
const AXIS = {
automargin: true,
title: { standoff: 12 },
ticklabelstandoff: 4, // the lowest y label and the first x label never touch
ticklabelstandoff: 4,
} as Partial<Plotly.LayoutAxis>;
/** The platform's layout under a figure's own: legend, margins and axes merged key by key,
* so a figure that sets one of their keys keeps the others. */
export function layoutOf(layout: Partial<Plotly.Layout> = {}): Partial<Plotly.Layout> {
function layoutOf(layout: Partial<Plotly.Layout> = {}): Partial<Plotly.Layout> {
const axes = Object.fromEntries(
Object.entries(layout)
.filter(([k]) => /^[xy]axis\d*$/.test(k))
@@ -56,7 +50,6 @@ export function layoutOf(layout: Partial<Plotly.Layout> = {}): Partial<Plotly.La
};
}
/** Pie labels that sit outside take the room they need instead of being clipped. */
function withRoom(data: Partial<Plotly.Data>[]): Plotly.Data[] {
return data.map((d) => (d.type === 'pie' ? { automargin: true, ...d } : d)) as Plotly.Data[];
}
@@ -66,7 +59,6 @@ const CONFIG: Partial<Plotly.Config> = {
modeBarButtonsToRemove: ['lasso2d', 'select2d'],
};
/** One Plotly chart: the figure, drawn with the platform's layout and config. */
@Component({
selector: 'app-plot',
template: '<div #host class="plot" [style.height.px]="height()"></div>',