{% extends "base.html" %}
{% load i18n static ui charts help %}
{% block title %}{% translate "Pattern library" %}{% endblock %}
{% block head %}{% chart_scripts %}{% endblock %}
{% block content %}
{% translate "Design system" %} {% blocktranslate trimmed %}
Every component of the web app, in both themes, for design review and the accessibility
audit. Components are template includes in {% translate "Pattern library" %}
core/templates/components; each
file lists its parameters.
{% endblocktranslate %}
{% blocktranslate trimmed %}
Each colour has one job. Ink is for actions: primary buttons and the current tab.
Links are blue and underlined. The brand blue is only for the logo, focus rings and
selection. Status colours are only for the verdict and run state, always with an
icon and a label. The theme hues mark data: Heat, Cold, Rain and Drought, and a
neutral for "Also measured". The gridded map's scales have eight bins each, by the index's kind. The trend scale colours a significant decrease or
increase, and the coverage steps a year's missing days. Every text and background pair meets WCAG AA in both
themes, and the theme hues and chart colours stay apart for colour-blind readers
(both checked by tests from the token values). Charts outside the browser read
chart-palette.json.
{% endblocktranslate %}
{{ token }}--map-seq-{{ kind }}-1 {{ "…" }} -8
{% translate "Eyebrow" %}
{% translate "Heading 1: station results" %}
{% translate "A lead paragraph introduces a page in a sentence or two." %}
{% blocktranslate trimmed %}
Body text uses the system font of each device, so nothing is downloaded and every
script the operating system supports displays. Lines are kept to a readable length.
A link and inline code.
{% endblocktranslate %}
{% translate "Small, muted text for notes and captions." %}
{% translate "An SVG sprite drawn for this app, inserted with the icon template tag. Icons are decorative unless given a label." %}
{{ name }}{% translate "Labels above inputs, hints under labels, errors inline and summarised at the top. This form is shown after a submission with mistakes." %}
{% translate "A real file input inside a large target. Without JavaScript it is a plain file input; with it, files can be dropped and the chosen file is shown." %}
{% translate "A button that opens the file picker and sends the chosen file at once, for a second upload where a drop zone would take too much room. Without JavaScript it is a file input and a submit button. Say near it what happens when a file is chosen." %}
{{ form.corrected_file.help_text }}
{% translate "A first visit's only page: numbered steps divided by a hairline, a tick once a step is done, then one call to action with a note on what it does. The file card is the one box: the file read, what was read, Replace, and the days with data in each year, amber where a year misses more than 15 days." %}
{% translate "The fields the results depend on, with short hints only." %}
{% translate "Quality thresholds and index settings use the defaults. You can change them later in Inputs." %}
{% translate "Toasts confirm something that happened in the background and disappear on their own; errors stay until dismissed. Dialogs ask for a decision and keep focus inside until closed." %}
{% translate "A station's Indices (#236, #263). The filter rail: a search, the themes as a list with their counts, Significant only and the line that defines significant. One line answers above the table. The table has every index, its code first, with the slope per decade and its unit, its 95% interval, significance and a sparkline, in rows 32px high, largest trend first. Its column headers sort it: links without JavaScript, buttons with it. A row's code shows the index in the detail pane beside the table: a chart with axes, the base period and Sen's slope, the statistics with the mean, and the links." %}
{% translate "Each theme has its hue: its dot, its sparklines and its charts, with a neutral for the indices under Also measured. The theme's name is always beside the hue." %}
{% translate "Codes first: wherever an index is listed, its code leads in mono and a short name follows. Experts scan by code; the name is there for everyone else. R's long name is the index page's definition line, and search finds all three." %}
{% translate "Hottest day" as index_name_demo %}{% include "components/index_name.html" with code="TXx" name=index_name_demo title=True only %}
{% include "components/index_name.html" with code="TXx" name=index_name_demo only %}
{% translate "One index's page (#237): its context bar with the previous and next index, its name and theme, its definition and the provenance line, and its CSV, R's plot and a citation; then a chart drawn on the server beside the trend statistics, and the values as a data table. The chart shows the values or their anomalies from the base period, annual or monthly, by two segmented controls: links, the current one ink, so each works without JavaScript." %}
{% translate "The verdict strip: the level in bold and one sentence, the counts on one mono line, the decision's buttons at the end. The coverage strip: missing days per year for each variable in three steps of lightness, with its table view. Then the checks as a rail (#264): each check links to its detail (?show=), wide beside the rail: its charts, its values table with only the check's columns, and the selected value with the days around it; after the rail on narrow screens, with Back to the list." %}
{% translate "Look wrong" %} {{ "·" }} {% translate "PR" %} {{ "·" }} {% translate "2 rows" %}
| {% translate "Date" %} | {% translate "PR mm" %} | {% translate "TX °C" %} | {% translate "TN °C" %} |
|---|---|---|---|
| {{ "1986-08-06" }} | {{ "327.6" }} | {{ "15.2" }} | {{ "10.4" }} |
| {{ "1990-02-03" }} | {{ "243.6" }} | {{ "24.9" }} | {{ "18.0" }} |
{{ "1986-08-06" }} {{ "·" }} {% translate "Out of range" %}
| {% translate "Date" %} | {% translate "PR mm" %} | {% translate "TX °C" %} | {% translate "TN °C" %} |
|---|---|---|---|
| {{ "1986-08-05" }} | {{ "0.0" }} | {{ "17.1" }} | {{ "9.0" }} |
| {{ "1986-08-06" }} | {{ "327.6" }} | {{ "15.2" }} | {{ "10.4" }} |
| {{ "1986-08-07" }} | {{ "12.4" }} | {{ "14.8" }} | {{ "9.9" }} |
{% translate "Line 18,481 in the file" %}
{% translate "One framed object: rows 32px high, one line each, a header on the sunken tint that stays in view, numbers and codes in mono with tabular figures, and the selected row in the selected tint with an ink edge." %}
{% translate "Annual indices, Sydney Observatory Hill" as t_caption %}{% translate "Empty table" as t_empty_caption %}{% translate "No index values for this period." as t_empty %}{% translate "Add stations' files, a row each: the station name, latitude and longitude typed in the table, the period and days read, the index settings and what reading found. Every problem shows at once; a row with one is tinted and stays out." %}
{% include "stations/_add_table.html" with review=add_review rows=add_review.rows %}{% translate "Files are offered in one place, the Files page. A long group is a closed disclosure whose summary gives the count and the total size; it opens to a table with one small download button per file, each with its format and size." %}
| {% translate "Index" %} | {% translate "Table" %} | {% translate "Plot" %} |
|---|---|---|
| {{ f.name }} | {% include "components/download_link.html" with d=f.csv href="#files" %} | {% include "components/download_link.html" with d=f.png href="#files" %} |
{% translate "A station's sections, under its name. Each tab is a page of its own, so they are links, not an ARIA tablist. Each has a status: an icon of its own shape and a word, never colour alone. A section that is not available yet is not a link." %}
{% translate "Quality's tab shows the verdict of the checks: Checking… while they run, then Ready, Usable or Fix first in the verdict's colour, with the number of values that look wrong." %}
{% for label, tabs in workspace_verdicts %} {% include "components/workspace_tabs.html" with tabs=tabs label=label %} {% endfor %}{% translate "Everything the user gave, beside a station's sections, each with one link to change it. An input changed since the results shown is tinted and says so, and the run of the new inputs shows its progress beneath the list. While that run is a change to the workspace's settings, Undo the change puts them back. Edit opens a side sheet with only that input's form: modal, so focus stays inside it until Apply, Cancel or Escape. It says what applying will update before the user applies it. A long form, such as the index settings, scrolls between the sheet's header and its foot, so Apply stays in view. Without JavaScript Edit is a page with the same form." %}
{% translate "Recalculating" %}
{% blocktranslate with percent=62 %}{{ percent }}% done{% endblocktranslate %}
{% translate "Under the header on every workspace and station page: the breadcrumb with the previous and next station, the title, one mono line of provenance, the page's actions, then the tabs. On a page it reaches the window's edges and stays in view as the page scrolls." %}
{% translate "A workspace's overview: one line above the table, neutral with a bar while stations calculate, quiet when they have finished and red only when one failed; then a row a station, with its verdict, its indices state as it goes and its fix, and how many indices have a significant trend." %}
{% translate "Every workspace of this browser: its name with a hint of its stations, the station count, the stations' verdicts as pills and any failure, the base period, when it changed, when it is deleted (highlighted under three days away) and Delete." %}
{% translate "Trends across stations: Sen's slope per decade of each station's indices, always written, filled on the trend scale when the 95% interval excludes zero, a dashed edge when it does not, hatched without results; a station whose results are out of date tagged “· out of date” after its name, its row edged; beside it the selected column's interval plot, each station's slope as a dot and its interval as a line about zero." %}
{% translate "Overlay the series: one index's series at every station, a line each in its categorical colour, in a fixed order and never repeated, so eight stations at most; with more, the user chooses which eight. Stations out of date are tagged, stations left out are named, and the table under it has every station." %}
{% translate "On a phone the station's name and a ⋯ menu share one line, and the page's actions are in the menu: a disclosure, so Enter opens it, Tab goes through its actions and Escape closes it. Under the tabs, the Inputs bar is the Inputs panel in one line: the base period, whether the settings are the defaults, and anything changed or running. Edit opens the inputs in a sheet that fills the screen, and each input's sheet opens over it. Only the tabs and the bar stay in view as the page scrolls." %}
{% translate "After the user changes an input, the results stay on the page under this banner until new ones replace them. It says what changed and what happens next. While the new run is on the way it shows its progress; otherwise it offers one action. The results below keep their full contrast: an edge marks them, and their sparklines and charts are greyed." %}
{% translate "22 of 80 indices changed significantly since 1936." %}
{% include "components/spark.html" with spark=spark_line %}{% translate "A section header is the section's title, an optional muted note, then a Help button at the end of the row, in the same place on every section. The button is a pill with a word: Help, or a question where one helps. It opens the section's help in a side panel. The panel is not modal: the page stays usable. It sits beside the content on wide screens and below it on narrow ones. Escape or the close button closes it, and focus goes back to the button. Without JavaScript the button is a link to the same help on a page of its own." %}
{% translate "Almost always typing errors or swapped columns." %}
{% section_help "quality.wrong" %}{% translate "Missing days per year" %}
{% translate "How to read this" as read_label %}{% section_help "quality.missing" label=read_label %}{% translate "At most one per section, and none on sections that explain themselves. Fields have no help link of their own. They keep a short hint only when their value needs one. The Help button at the end of the header opens the guide to the page shown." %}
{% translate "Sections sit on the page, separated by space and a heading, not by cards. A box marks only one object, such as a chart, a detail pane or a data table. Tables inside a card have hairline rows and no frame." %}
{% translate "Your inputs" %}
{% translate "A station's workspace header, with its name, the file and years, the page's actions and the section tabs, stays in view as the page scrolls on screens 40rem wide or more. The page's scroll padding keeps a focused element out from under it." %}
{% translate "The chart scripts (#75) draw into the plot area; until then it shows a placeholder. Every chart has a text summary, a legend, a table view and a CSV download." %}
{% translate "TXx, hottest day of the year" as ch_title %}{% translate "Rising by 0.21 °C per decade since 1936 (significant at 5%). Highest 45.8 °C in 2013." as ch_summary %} {% include "components/chart_frame.html" with id="pattern-chart" title=ch_title summary=ch_summary legend=chart_legend csv_href="#charts" table_template="core/patterns_table.html" %}{% translate "The chart frame with a data URL: charts.js draws it with uPlot when it scrolls into view. Drag across the plot to zoom, double-click to show all; the buttons and the keyboard (plus, minus, arrows, 0) zoom and move; PNG and SVG save the current view. The data are the Sydney sample and its run." %}