Skip to content

Let the codebook export's header checkbox act on the shown or on all units - #282

Open
jojohoch wants to merge 1 commit into
masterfrom
feature/281-header-checkbox-scope
Open

jojohoch wants to merge 1 commit into
masterfrom
feature/281-header-checkbox-scope

Conversation

@jojohoch

Copy link
Copy Markdown
Contributor

With a search term set, the header checkbox of the codebook export selected every available unit, the hidden ones as well, and nothing in the dialog showed that hidden units were selected, the preselected open unit among them (#281). Studio's own unit lists now let the user decide what the header checkbox acts on (iqb-berlin/studio-lite#433, PR iqb-berlin/studio-lite#2140). This brings the codebook export in line, with the same wording and look.

  • A slide toggle below the search field: Häkchen in der Kopfzeile wirkt nur auf angezeigte Einträge. Off (the default, as before): the header checkbox acts on all available units. On: only on the units the search shows; hidden selected units stay as they are. Ticked and partly ticked follow the same scope. Disabled units stay out in both.
  • A click on a partly ticked header selects everything in scope. With nothing in scope the header checkbox is disabled.
  • Filtering never changes the selection. While selected units are hidden, the count line adds , davon m ausgeblendet · ausgeblendete abwählen; the action deselects exactly those and reports the selection to the host. That part is always laid out and only invisible while nothing is hidden: the line sits above the search field, and in the narrow list column its wrapping moved the field by a line while typing.
  • The header's tooltip and aria-label name the scope (Alle Einträge aus- oder abwählen, auch ausgeblendete / Alle angezeigten Einträge aus- oder abwählen). The tooltip used to appear only with a search term.
  • The grey summary below the table is removed: it repeated the count of the line above (1 Aufgaben ausgewählt beside Eine Aufgabe ausgewählt), and Studio's lists have only the line above. The selected-units translation stays, since Studio's loader spec reads it; select-all-units and select-all-including-hidden are gone.

For hosts: coding-box's cypress/zoneless/statistics-codebook.cy.ts:253 asserts 1 Aufgaben ausgewählt, which came from the removed summary; the dialog now shows Eine Aufgabe ausgewählt there. Header and row checkboxes keep their selectors, and with the toggle off the header behaves as before.

Validation

  • ng test ngx-coding-components (ChromeHeadlessNoSandbox): 887/887. Five new specs cover the shown-only scope, disabled units, the hidden count and deselecting it, an empty scope, and the German texts with the scope-dependent aria-label; they do not compile against master.
  • npm run lint (no new warnings), npm run build_cc && npm run test:codebook (1344/1344).
  • The built package dropped into Studio (studio-lite develop with #2140) and checked in the codebook dialog at 1280, 1000 and 800 px: toggle, count line, header checkbox, no grey summary; the search field no longer moves while typing.

No version bump; that is left to the release.

With a search term set, the header checkbox selected hidden units as well
and nothing showed them. A toggle sets its scope as in Studio's unit lists,
and the count line names and deselects hidden selected units. The grey
summary below the table repeated that count and is gone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant