This files describes API changes in /mod/classroomtoolbox/*,
information provided here is intended especially for developers.

=== 0.22.0 ===
* Looks only: the wheel canvas draws a dome shading and a rim, and the blocks and cards get a rounded, raised look
  with box-shadow (styles.css). No markup, API or database change.

=== 0.21.0 ===
* The scoreboard is a grid: each entry is an li.mod_classroomtoolbox-score-row holding div.mod_classroomtoolbox-score-head
  (place and, for a teacher, the remove button), the name, an optional p.mod_classroomtoolbox-score-members, the points and
  span.mod_classroomtoolbox-score-controls (minus and plus only).
* New optional column classroomtoolbox_scores.members. The external functions mod_classroomtoolbox_add_scores (optional
  "members" list) and every function that returns entries (new "members" field) are extended; old callers keep working.
  scores::add() takes an optional list of members; scores::clean_members() and scores::MAX_MEMBERS are new.

=== 0.20.1 (not released separately) ===
* On the scoreboard the teacher's name of an entry is a textarea (rows 1, data-field="label", class
  mod_classroomtoolbox-score-label) inside span.mod_classroomtoolbox-score-labelwrap, not an input; the minus button, the
  points, the plus button and the remove button are inside span.mod_classroomtoolbox-score-controls. Behat steps that
  looked for input[data-field="label"] use [data-field="label"]. No server side change.

=== 0.20.0 ===
* The scoreboard's config (data-config) has a colors list (the colour scheme of the activity); each row
  (.mod_classroomtoolbox-score-row) gets an inline background and text colour from it, by the order the entries were added.
  The timer and counter card lists have justify-content-center. No server side change.

=== 0.19.0 ===
* The group generator's cards have a text box for the group name (class mod_classroomtoolbox-groupgen-name, language string
  groupgen_renamegroup). The event mod_classroomtoolbox:groups now has detail.names (the group names) next to detail.groups,
  and is fired again when a name is changed. Nothing is stored on the server.

=== 0.18.0 ===
* New tool \mod_classroomtoolbox\local\tools\sequence (id 'sequence', after 'timer' in the tab order) with the template
  templates/sequence.mustache, the AMD module mod_classroomtoolbox/sequence and the language strings tool_sequence and seq_*.
  It has no server side storage: the segments are kept in the browser with mod_classroomtoolbox/store. The tool is not
  added to existing activities (their stored tool list is unchanged).
* mod_classroomtoolbox/sound gets SEQUENCE_KINDS and the sounds softchime, bell and gong, which play() accepts.

=== 0.17.0 ===
* New AMD module mod_classroomtoolbox/fullfit (fitter() and keepFitted()) that sizes the font of a card grid in full
  screen so that all cards are visible; used by groups.js, timer.js and counter.js. Full screen styles for
  [data-region="timer-list"] and [data-region="counter-list"] are in styles.css.

=== 0.16.0 ===
* New AJAX-only external function mod_classroomtoolbox_clear_scores (\mod_classroomtoolbox\external\clear_scores,
  capability mod/classroomtoolbox:managescores) that removes every scoreboard entry, with a "Clear scoreboard" button
  (data-action="score-clear" in templates/scoreboard.mustache) and the language strings score_clear, score_clearconfirm,
  score_clearquestion and score_cleartitle. The scoreboard_changed event gets the action 'clear'.
* The Group generator dispatches a bubbling CustomEvent 'mod_classroomtoolbox:groups' (detail.groups: array of arrays of names)
  each time groups are generated; the scoreboard listens for it on the toolbox element for its "Add generated groups"
  button (data-action="score-add-generated"). New strings score_addgenerated and score_generatedhint.

=== 0.12.2 ===
* With two wheels, one "Spin both wheels" button (data-action="wheel-spinboth" in templates/wheel.mustache) spins both:
  the second wheel starts 500 ms after the first and the winners are shown together in the one dialog. The 0.12.1
  behaviour of spinning the wheels independently was replaced. The unit's spin() now takes a callback that receives the
  index the wheel stopped on.
* New language strings wheel_spinboth, wheel_winners, wheel_pair, wheel_keepboth, wheel_removeboth, wheel_removedboth,
  wheel_clickboth and wheel_needboth.

=== 0.12.0 ===
* The "Pick partners" switch of 0.11.0 was replaced by an "Add second wheel" button on the name wheel tab. The
  mod_classroomtoolbox/wheel module now makes each wheel as its own unit (canvas, spin, names list) and shares the winner
  dialog, group chooser and sound switch. The wheel template has data-region attributes wheel-unit, wheel-stagecol and
  wheel-namescard that the script copies for the second wheel. The partner_* language strings were removed and wheel_*
  strings added. classroomtoolbox_replace_partner_tool() is kept for activities that still list the old tool.

=== 0.11.0 ===
* The separate 'partners' tool added in 0.10.0 was removed again: the partner wheel is now a "Pick partners" switch on the
  name wheel tab (mod_classroomtoolbox/wheel, templates/wheel.mustache). classroomtoolbox_replace_partner_tool() turns
  a stored 'partners' tool into 'wheel' on upgrade.
* mod_classroomtoolbox/sound: alarm() was replaced by play(kind, force) and the list KINDS (siren, beeps, clock, klaxon,
  futuristic, duck). Each timer chooses its sound; the choice is stored with the other timer settings in the browser.
* The timer template carries the sound chooser in a <template> element that the timer script copies into each card.

=== 0.10.0 ===
* New tool 'partners' (class \mod_classroomtoolbox\local\tools\partners, extends tools\wheel) is registered in
  toolbox::classes() after the wheel. The wheel template and the mod_classroomtoolbox/wheel module take a region name
  ('wheel' or 'partners') and a partner mode, so two wheels can be on one page.
* New AMD module mod_classroomtoolbox/store keeps each tool's settings in the browser's localStorage, per activity
  (the toolbox template has a data-storekey attribute set to the course module id).
* The timer alarm is now a siren; it only uses plain oscillators.

=== 0.9.0 ===
* The toolbox is now a teacher-only tool. The capability mod/classroomtoolbox:view is no longer granted to the student
  archetype, and the upgrade step removes it from roles of the student archetype on existing sites. Grant it to a role
  yourself if some other users should open the toolbox.
* New classroomtoolbox_cm_info_dynamic() hides the activity from users without that capability.
* FEATURE_COMPLETION_TRACKS_VIEWS is no longer supported (students never open the toolbox).

=== 0.8.0 ===
* New AMD modules mod_classroomtoolbox/sound (Web Audio sounds and the shared sound preference) and
  mod_classroomtoolbox/colour (readable text colour for a background colour).
* The Colour scheme setting now also colours the group generator's cards. The 'text' key was removed from
  classroomtoolbox_color_schemes(): the scripts pick white or dark text per colour.
* The privacy provider is now a full provider (metadata plus request provider) instead of a null provider. It still
  links nothing to a user account. Deleting all data in an activity context now clears that activity's scoreboard.
* Capability mod/classroomtoolbox:managescores now carries RISK_SPAM.
* The external function mod_classroomtoolbox_get_scores is marked readonlysession.

=== 0.7.0 ===
* New table classroomtoolbox_scores, capability mod/classroomtoolbox:managescores, event
  \mod_classroomtoolbox\event\scoreboard_changed and six AJAX-only external functions
  (mod_classroomtoolbox_get_scores, add_scores, change_score, update_score, delete_score, reset_scores).

=== 0.5.0 ===
* Renamed from mod_namewheel to mod_classroomtoolbox. Tools are classes implementing
  \mod_classroomtoolbox\local\tool_interface, listed in \mod_classroomtoolbox\local\toolbox.
* cli/migrate_from_namewheel.php moves existing Name wheel activities across.
