Skip to content

fix(tally): jump to settings when no tally types are configured - #4314

Merged
bobrippling merged 1 commit into
espruino:masterfrom
xhon-pelushi:fix/3853-tally-empty-state-to-settings
Aug 17, 2026
Merged

fix(tally): jump to settings when no tally types are configured#4314
bobrippling merged 1 commit into
espruino:masterfrom
xhon-pelushi:fix/3853-tally-empty-state-to-settings

Conversation

@xhon-pelushi

Copy link
Copy Markdown
Contributor

Fixes #3853

On first install (or after removing all tally types), the app opened
straight to an empty "Tallies" list with no way to tell what to do next
— nothing to tally, and no visible path to add a type.

app.js now checks tallycfg.json (the configured tally types) before
showing the list; if it's empty, it loads the app's own settings screen
instead, using the same eval(storage.read("<id>.settings.js"))(back)
pattern already used elsewhere in this repo (e.g. alarm, zambretti).

Bumped to 0.03 with a ChangeLog entry.

Test plan

  • Rebuilt app.js from app.ts via the real typescript/build.sh
    (tsc), rather than hand-editing the compiled output.
  • node bin/sanitycheck.js — 0 errors, 0 warnings (31 known/
    pre-existing errors and 13 known warnings elsewhere, unrelated).
  • npx eslint apps/tally --max-warnings 0 — clean.
  • Not tested on real Bangle.js 2 hardware or the emulator (none
    available in my environment) — would appreciate a maintainer or
    the reporter confirming the on-device behavior.

On first install (or after all tally types are removed), the app
opened straight to an empty "Tallies" list with no way to tell the
user what to do next - there was nothing to tally and no visible
path to add a type.

Check tallycfg.json before showing the list; if it's empty, load the
app's own settings screen instead so the user can add a tally type
right away.

Fixes espruino#3853

Signed-off-by: xhon-pelushi <xhon@pelushi.com>
@bobrippling

Copy link
Copy Markdown
Collaborator

Nice, thanks!

@bobrippling
bobrippling merged commit dbf4703 into espruino:master Aug 17, 2026
2 checks passed
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.

[tally] By default Tally app is entirely empty

2 participants