Skip to content

Ingle v0.4.1

Choose a tag to compare

@LukeSkelhorn LukeSkelhorn released this 13 Nov 13:32
· 29 commits to main since this release
15f52b8

Added

  • Filter the board calendar. Each person with a calendar of their own has a button on the board calendar. Tap it to see just their events, the family's events and holidays, and, with chores on, their chores and those up for grabs. Tap it again to see everyone. The new Calendars button hides calendars you don't want on the wall, like a work calendar. Filters go when the calendar returns to the chores after being left alone, or when the page reloads. Each event now says which calendar it's from, and tapping it shows when and where it is, its calendar, and whose it is. (DOM-56)
  • Whose calendar it is. In Admin › Calendars, a calendar can belong to one person (say, Dad's work calendar) or to the family. The family is the default, and existing calendars start as the family's. A person's events show in their colour, with their picture, on the board calendar and the screensaver. Each calendar now has Edit, to change its name and whose it is. Archiving someone makes their calendars the family's. (DOM-54)
  • Holiday mode. Admin › Settings › Holiday mode pauses chores while you're away. Add a holiday with its first and last days, for everyone or for one person (say, a child at camp). Leave the first day as today to start it now, and End now finishes it early. While it's on, no chores come due and nothing shows as missed or overdue. Anything already overdue when it starts is cleared, so chores start again fresh the morning after. The board shows "🏖️ On holiday until Sunday", or "Away until Sunday" in one person's column, and the calendar marks the days. When one person's away, the others carry on with chores they share and anything up for grabs, and a chore they'd claimed goes back up for grabs. Rewards, goals and money still work. (DOM-98)
  • Download or delete your household's data. Admin › Settings › Your household's data downloads everything Ingle holds for your household as a zip: people, chores, points and money, rewards, calendars, settings, photos and pictures. Passwords, PINs and sign-in codes aren't included. You can also delete the household and everything in it, after typing its name to confirm. Self-hosted Ingle then starts again at first-run setup. (DOM-70)
  • For developers: Postgres. Set INGLE_DATABASE_URL to a postgres:// URL to run Ingle on Postgres instead of SQLite. This is for Hosted; self-hosted Ingle stays on SQLite and nothing changes for it. Both use the same queries, and each database has its own migrations. Nightly backups are SQLite only, so use the Postgres service's own backups. task pg:up starts a local Postgres and task test:pg runs the tests on it. (DOM-70)
  • For developers: households kept apart by the database. On Postgres, every table has row-level security, so each request and background job can only see and change its own household's rows. A query that forgets to filter by household returns nothing, not another family's data. Run the app as a role that can't bypass it, with the owner set in INGLE_DATABASE_MIGRATE_URL for migrations. Self-hosted SQLite is unchanged. (DOM-70)
  • Encrypted calendar links. Set INGLE_MASTER_KEY (make one with openssl rand -base64 32) and calendar links, which have a private key in them, are stored encrypted, with a separate key for each household. Links you've already added are encrypted on the next refresh. Keep the master key somewhere other than the database and its backups. It's optional for self-hosted Ingle and required with Postgres. (DOM-70)

Changed

  • The board calendar shows what's on. It now shows calendar events and holidays without the chores, which already have their own view. Turn on Show chores on the calendar in Admin › Settings to show them by default. Anyone at the board can turn chores on or off with the calendar's new Chores button. It goes back to the setting when the calendar returns to the chores after being left alone, or when the page reloads. The screensaver and the locked screen are unchanged. (DOM-55)
  • For developers: one server, many households. The server now works out the household for each request instead of using one fixed household, so a program built on the core can serve many households from one process. A request's household comes from a new resolver hook, or else from its display or session. A display or session from another household is signed out, and the right password for another household doesn't sign in. First-run setup, module background jobs (calendar refresh, photo rescan) and the dates shown on pages all follow the request's household too. Self-hosted Ingle still has one household and works as before. (DOM-69)
  • For developers: hooks in the app package. app.Options gains several hooks, and none of them changes anything for people running Ingle. (DOM-69)
    • ResolveHousehold serves many households from one server. No household is made at startup, and the background jobs run for every household.
    • Routes adds your own pages behind Ingle's sign-in, with Helpers.RequireAdmin.
    • AdminLinks adds links to the Admin bar.
    • PhotoBlobs stores uploaded photos somewhere other than the data folder.
    • Jobs: app.JobsElsewhere moves the background jobs to a separate process running app.RunJobs.
  • For developers: another service can sign adults in. app.Options.SignIn hands adults' sign-in to another service, as Hosted will do with WorkOS. Once that service confirms who someone is, Helpers.StartSession starts their Ingle session. It only works for an active adult of that household. With SignIn set, a few things change. Nothing changes for self-hosted Ingle, and PINs and household displays work as before. (DOM-104)
    • /signin goes to the service's page instead of Ingle's email and password form.
    • There's no first-run setup.
    • Admin › People shows no email or password for adults.
    • Signing out also runs OnSignOut, which can end the other service's session.
    • SessionIdle sets how long a session lasts without use.

Fixed

  • Setting a PIN on a tablet: setting a PIN or the household code brought up the tablet's full keyboard, and you could type letters into the box. They're now typed twice on Ingle's own number keypad, the one used to unlock, with a Show digits button to check what you typed. This covers Admin › People › PIN (adults' and kids'), Admin › Settings › Household unlock code and the PIN in first-run setup. First-run setup now asks for the PIN twice too. (DOM-63)
  • Easier-to-read blue: links, primary buttons and other blue text were too light to read easily. Links and the current Admin page now use a darker blue in light mode. Primary buttons, selected options (such as Child or Adult, and the lock weekdays), the keypad's → key, the calendar's today number and the chores count use it in both modes. They now meet the WCAG AA contrast for text, and match the website. (DOM-66)
  • Signing out idle displays: with more than one household in a database, the hourly clean-up of expired sign-ins used one household's admin timeout for every household's displays. Each household now uses its own. Self-hosted Ingle has a single household, so it was never affected. (DOM-69)