Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/deploy-offline-pwa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy DailyTally Offline PWA
on:
push:
branches: [offline-pwa]
paths:
- 'offline/**'
- '.github/workflows/deploy-offline-pwa.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate offline PWA
run: |
cd offline
node tests/smoke.cjs
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: offline
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
27 changes: 27 additions & 0 deletions offline/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DailyTally — Offline-only PWA

This folder is a standalone, static Progressive Web App. It reuses DailyTally's ledger, expense, report, budget, reminder, language and appearance UI while saving the complete account state locally in IndexedDB.

## Deploy

GitHub Actions publishes this folder to GitHub Pages from the `offline-pwa` branch. The original `main` branch and Render backend are intentionally untouched.

## Storage and privacy

- All ledger data is stored in IndexedDB on this browser/device.
- No registration, sign-in, server API, cloud sync, server backup or push subscription is used by this app.
- JSON backup and restore are available from Profile. Export a backup regularly and before clearing browser data.
- Browser storage is not encrypted by this app. Use a trusted device and protect it with the device lock.
- Reminders are evaluated while the app is open. Background push and guaranteed scheduled delivery are not available in this static version.

## Device use

Install from the browser's Install app / Add to Home Screen command. Android and Windows device-specific acceptance tests must still be run manually after Pages deployment.

## Existing data migration

The old server account is not automatically copied. On the old app, download its JSON account backup first. Then open this PWA and use Profile → JSON backup restore. Check the restored people, transactions and balances before relying on it.

## Local checks

Run `node tests/smoke.cjs` from this folder. It validates script syntax, relative paths, manifest scope and absence of direct fetch/API usage in the offline runtime.
12 changes: 12 additions & 0 deletions offline/auth.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions offline/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading