Skip to content

feat(settings): add 'Import from BeTidy' screen - #178

Open
mschabhuettl wants to merge 1 commit into
donetick:developfrom
mschabhuettl:feat/import-betidy-ui
Open

feat(settings): add 'Import from BeTidy' screen#178
mschabhuettl wants to merge 1 commit into
donetick:developfrom
mschabhuettl:feat/import-betidy-ui

Conversation

@mschabhuettl

Copy link
Copy Markdown

⚠️ Draft / WIP — opening early for feedback (see donetick/donetick#754). Depends on the backend endpoint in donetick/donetick#756 (POST /chores/import/betidy); until that merges this page has nothing to call.

What

Adds a Settings → Import from BeTidy page so users can migrate from the BeTidy chores app (which has no export) without touching the API by hand.

The page lets you:

  • upload a BeTidy export bundle (betidy_export.json, produced by the community tool betidy-export),
  • set the timezone (pre-filled from the browser) and optionally include inactive/finished tasks,
  • run the import and see a summary (imported / skipped / labels created).

Changes

  • src/views/Settings/BeTidyImportSettings.jsx — the new page (MUI Joy, SettingsLayout, useNotification).
  • src/utils/Fetcher.jsxImportBeTidy(bundle)POST /chores/import/betidy.
  • src/contexts/RouterContext.jsx — route settings/import-betidy.
  • src/views/Settings/SettingsOverview.jsx — a card in the settings overview.
  • public/locales/en/settings.json — English strings (other languages fall back to en; translations can follow).

Verified

npm run build passes; eslint clean on the new/changed files (pre-existing lint issues in SettingsOverview.jsx untouched).

Notes

Endpoint name/placement should track whatever is decided for the backend PR / #264 ("import from other apps"). Happy to adjust wording, add translations, or rework the flow.

Adds a Settings page (Settings -> Import from BeTidy) to upload a BeTidy
export bundle and import it into Donetick via the new
POST /chores/import/betidy endpoint. Includes file upload, timezone and
include-inactive options, a result summary, and English i18n strings.

Requires backend donetick/donetick#756. Proposed in discussion
donetick/donetick#754.
@mschabhuettl
mschabhuettl marked this pull request as ready for review July 30, 2026 00:34
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.

1 participant