Two fixes for the noisy post-finalize popup: 1. Dedicated admin-user step The wizard was passing Frappe's existing Administrator identity (full_name="Administrator", email="admin@example.com") into setup_complete, which made Frappe's user creation suggest a new username and warn that admin@example.com had no linked employee ("İşçinin Öz Xidməti rolu silindi"). Add a new "user" step between "company" and "confirm" collecting full name, email (= login), and password (with confirmation). build_setup_args sends those values, so Frappe creates a real user with no naming clash. Administrator stays untouched as the system-of-last-resort fallback. Validation: name required, basic email regex, password ≥8 chars, passwords must match. Email "admin@example.com" / "administrator" are blocked client-side as obviously-reserved. 2. Suppress alert-style toasts At the end of materialize_after_setup, drop every entry from frappe.local.message_log where alert=1. That kills the cluster of "Sənəd X yenidən adlandırıldı" toasts that pile up when the AZ translation pipeline renames default Item Group fixtures, without silencing the genuine modal warnings (e.g. HRMS Salary Component "accounts not assigned") which use plain msgprint. |
||
|---|---|---|
| jey_wizard | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| CLAUDE.md | ||
| README.md | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Jey Wizard
Jey Wizard
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch main
bench install-app jey_wizard
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/jey_wizard
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense