Text Panel Content Guidelines: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 124: | Line 124: | ||
{{article end | {{article end | ||
|seealso= | |seealso= | ||
* [Text Panel] | * [[Text Panel] | ||
* [Plotly] | * [[Plotly]] | ||
* [JavaScript] | * [[JavaScript]] | ||
* [TQL] | * [[TQL]] | ||
* [Select (TQL)] | * [[Select (TQL)]] | ||
* [Panel properties] | * [[Panel properties]] | ||
* [Heat Stress] | * [[Heat Stress]] | ||
|howtos= | |howtos= | ||
* [How to insert a Plotly Graph] | * [[How to insert a Plotly Graph]] | ||
|api= | |api= | ||
* [Api session event editor panel set text] | *[[Api session event editor panel set text]] | ||
}} | }} | ||
Revision as of 09:04, 1 December 2026
Quality assurance
This checklist describes how to verify that a Panel, especially a Text Panel containing HTML, JavaScript, and Plotly, has been created, persisted, and rendered correctly.
The checklist is intended for:
- manual review,
- automated validation,
- AI-assisted panel authoring,
- regression testing after project recalculation.
Pre-Flight Checks
Before rendering the panel, verify:
- the panel exists,
- the panel type is correct,
- the panel name is exact,
- no stale empty panel shadows the intended panel,
- the panel size matches the intended layout,
- the panel text is not empty,
- the panel is coupled to the correct overlay when required,
- stakeholder visibility is configured as intended,
- TQL queries validate successfully,
- TQL tags are static and not constructed in JavaScript,
- array-producing TQL tags are wrapped in square brackets,
- category and value arrays use compatible clause families,
- the Plotly library is provided by the platform,
- no public CDN Plotly script is included,
- the chart initialization is wrapped in error handling.
Data Accuracy Checks
Verify that the chart data matches the project data:
- category names come from the project, not from a hardcoded list,
- values come from the intended TQL query,
- category and value arrays have the same length,
- category and value arrays are aligned index-by-index,
- no values are accidentally shifted by one position,
- missing or non-finite values are filtered or handled explicitly,
- the aggregate type matches the intended metric, for example `GRIDAVG` for an average,
- the grid type and result type match the intended overlay,
- the timeframe matches the subtitle,
- units are consistent with the metric.
Rendered-Image Checks
Inspect the rendered panel image or rendered HTML:
- the chart is visible,
- the title is visible and not duplicated,
- the subtitle is visible and readable,
- all category labels are visible,
- x-axis labels are not clipped,
- y-axis labels are not clipped,
- bar value labels are not clipped,
- the footnote is visible if present,
- the background is readable over the 3D map,
- text colors have sufficient contrast,
- bars are colored according to the intended encoding,
- the minimum and maximum categories are visually distinguishable,
- the colorbar or legend is present when color encodes a value,
- units are shown in the axis, labels, tooltip, and colorbar where relevant,
- the timeframe or date is shown,
- no JavaScript error message is visible,
- no blank chart container is present.
Metadata Checks
Verify panel metadata:
- the panel name matches the requested name,
- the panel ID being inspected is the intended panel,
- the panel size matches the layout assumptions,
- the overlay coupling matches the data source,
- the panel visibility matches the stakeholder requirements,
- the panel location or popup configuration is correct when used in the map,
- the rendered panel corresponds to the stored panel text,
- screenshots are not older than the stored text version.
Common Failure Signatures
| Symptom | Likely cause |
|---|---|
| Empty panel body | Panel text was not persisted |
| Blank chart container | JavaScript error, missing container, or bad trace shape |
| Visible JavaScript error | Invalid syntax, bad TQL substitution, or runtime exception |
| All bars same default color | Missing or misspelled `marker.color` |
| Smallest bar appears gray or white | `cmin` pinned to data minimum on a near-white sequential scale |
| Bars look almost identical | Zero baseline over a narrow value band |
| x-axis labels missing | Chart too tall for panel or insufficient bottom margin |
| Title missing or below chart | Chart container placed before title in DOM |
| Literal `°` in labels | HTML entity used inside JavaScript string |
| Wrong panel name with `(2)` | Name collision with existing panel |
| Panel shows blank map but content exists elsewhere | Stale empty panel with same name shadows intended panel |
| Subtitle date does not match chart | Timeframe not pinned or subtitle not updated |
{{article end |seealso=
- [[Text Panel]
- Plotly
- JavaScript
- TQL
- Select (TQL)
- Panel properties
- Heat Stress
|howtos=
|api=
}}