feat(android): the form of an activity command #312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "286_activity-command-form"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #286.
What it does
The configuration of the app now has a full form for an activity command, in place of the description-only placeholder. It opens from the Config screen and from ⋮ → Edit command of the activity screen.
#RRGGBB; Of its place clears it), the name, move up/down and delete;sport = run,sport = jog, place = park). Or opens a dialog with aPlacementEntry.ConnectedChoice), each with a line explaining it. Below is a row of example days in the series colours: Run 1, Run 3, Climbing 2, Run 1 + Climbing 2, Run 2 + Climbing 1, none. The mixed examples are left out with fewer than two series. A default is only written where the file already had a value.commandSteps, so a renamed key goes first. The form can't be saved with no series, a series without a name or a query, or an invalid colour (LocalFieldErrors).2 series · count · split. New command now offersactivity, andnewCommandstarts with one empty series.Core and bindings
The rule is that logic stays in the core, so the drawing of a day was pulled out of
tracked_dayintodrawing(one place for classification,drawnandlevel).example_daysuses it for the preview row.activity_examples,activity_paletteandactivity_color.activityExamples,activityPaletteandactivityColor(recordExampleDay).Configuring(palette,color,examples), whichStreamSession.ktanswers.DayCell, which the preview reuses. The existing activity screenshots are pixel-identical.Tests
ActivityDraftTest): colour by place, the next colour, moving and removing keep colours, the query of a series, completeness, example labels,chosen, the steps of a new and a renamed command.ConfigListTestis updated for the new one-line summary and the first series.ConfigEditScreenshots): two series (tall), one series fixed/most (tall), and a new command.nix flake checkandnix build .#streamd-apppass.Not done: the round trip on the emulator (edit, save, see the commit in Changes) was not tried.
43c71c281af9f1b1206a