Thank you for your interest in contributing to the Mifos X Web App! We welcome contributions from the community to help improve financial inclusion solutions globally.
To ensure a smooth collaboration process and maintain code quality, we enforce a strict 7-Step Contribution Workflow. Please read this guide carefully before submitting any code.
- View the README or watch this video to get your development environment up and running.
- Sign the Contribution License Agreement.
- Always follow the code of conduct - this is important to us.
- Learn more at our getting started guide.
- Have a look at our Wiki.
- Sign up to the mailing list.
Do not open a Pull Request without prior discussion.
We avoid "surprise" contributions. Before writing code, you must validate your idea with the community to ensure it aligns with the roadmap and isn't already in progress.
Before you start coding (especially for new features, UI changes, or refactoring), you must signal your intent.
- Join the Community: Mifos Slack
- Find the Channel: Navigate to
#web-app - Post Your Proposal:
- Features: Explain what you want to build and why.
- Bugs: Briefly explain the issue and provide screenshots if applicable.
- Wait for Approval: Do not proceed until a maintainer or community member acknowledges the task is valid and free for you to take.
All development work is tracked in Jira to manage the release backlog and ensure transparency.
- System: Mifos Jira
- Project: WEB (Mifos X Web App)
- Board: Board 62 (Active Development Board)
- Search: Check the Jira Board to ensure the ticket doesn't already exist.
- Create: If unique, create a new ticket in Project WEB.
- Summary:
[Component] Concise description(e.g.,[Client] Fix submit button alignment) - Description: Steps to reproduce, expected result, actual result, and environment details.
- Summary:
- Assign:
- Assign the ticket to yourself if you have permissions.
- If you lack permissions, comment "I am working on this" on the ticket and ask a maintainer to assign it to you.
- Manage Status:
- To Do: Task is open.
- In Progress: Move here immediately when you begin coding.
- In Review: Move here when you post the PR link in the comments.
- Done: Do not move here. Maintainers will move the ticket to Done after the PR is merged.
We follow a strict branching model to keep our history clean.
- Upstream Branch: Always branch from
dev. Never branch frommasterormain. - Naming Convention: Your branch name must include the Jira Ticket ID.
- Format:
WEB-<ID>-<short-description> - Example:
git checkout -b WEB-123-fix-login-button
- Format:
The following branch names and tags (and derivatives and extensions e.g., releasev1.0) are reserved for use by Mifos Organisation. Any branches created by non-admins with these names will be deleted without notice:
mainmasterdevdevelopmentsecsecuritymifosreleaserelrcstagingprodproductiongsoc
The Web App utilizes Angular Material. Design consistency is critical for user trust in financial software.
- Reference: Match the Figma mockup or the existing page layout exactly.
- Grid System: Spacing must be multiples of 8px (8px, 16px, 24px). Do not use arbitrary values like 10px or 15px.
- Typography: Use standard fonts (Roboto) and weights (500 for headers) defined in the SCSS variables.
- Components: Always use Angular Material components (e.g.,
<mat-select>,<mat-card>) instead of native HTML tags.
You must attach "Before" and "After" screenshots to your Pull Request description. PRs involving UI changes without screenshots will be declined.
We use Prettier to enforce a consistent code style automatically. This eliminates "style wars" in code review.
- Configuration: The project includes a
.prettierrcfile. - Run Prettier: Before committing, run the following command in the root directory:
npx prettier --write . - Linting: Ensure your code passes Angular linting:
ng lint
⚠️ If the CI build fails due to formatting or linting errors, your PR will not be reviewed.
We maintain a linear, meaningful git history.
- One Feature = One PR: Do not combine unrelated fixes.
- Squash Requirement: If your PR contains more than 2 commits, you must squash them.
- ❌ Bad History:
init,wip,typo,fix,fix again - ✅ Good History:
WEB-123: Implement client search functionality
- ❌ Bad History:
How to Squash (Step-by-Step Example):
-
Start Interactive Rebase: Run the following command (replace
2with the number of commits you want to combine):git rebase -i HEAD~2
-
Edit the Rebase File: An editor will open listing your recent commits. It will look like this:
pick a1b2c3d Message of the older commit pick e4f5g6h Message of the newer commit -
Squash the Commits: Change
picktosquash(ors) for all commits except the first one:pick a1b2c3d Message of the older commit s e4f5g6h Message of the newer commit -
Save and Close: Save the file and close the editor.
-
Finalize Message: A new editor window will appear. Combine or edit the commit messages into a single, meaningful title (e.g.,
WEB-123: Feature description). Save and close. -
Force Push: Send the changes to your remote repository.
git push origin branch-name --force-with-lease
When you are ready to submit your PR:
- Target: The
devbranch. - Title: Includes the Jira Key (e.g.,
WEB-123: Fix login button). - Description: Includes a link to the Jira ticket.
- Context: Includes a link to the Slack discussion or summary of approval.
- Visuals: "Before" and "After" screenshots are attached (if UI related).
- Quality: Prettier formatting is applied and
ng lintpasses.
If you get stuck, please reach out in the #web-app channel on Slack. We are happy to help you navigate the codebase or troubleshoot environment issues!
- Learn how to format pull requests.
- Read how to rebase/merge upstream branches.
- Understand our commit message conventions.
- Fork the project on GitHub
- Clone the project locally into your system.
git clone https://github.com/your-username/web-app.git
- We use the
mainbranch for releases, hotfixes and special purposes. All regular work on releases flows into thedevbranch.
git checkout dev
- Create a new branch with a meaningful name before adding and committing your changes.
git checkout -b branch-name
- Add the files you changed. (Better don't use
git add .)
git add file-name
- Follow the style conventions for a meaningful commit message.
git commit
- If you forgot to add some changes, you can edit your previous commit message.
git commit --amend
- Squash multiple commits to a single commit. (Example: squash last two commits done on this branch into one.)
git rebase --interactive HEAD~2
- Push this branch to your remote repository on GitHub.
git push --set-upstream origin branch-name
-
If any of the squashed commits have already been pushed to your remote repository, you need to do a force push.
git push origin branch-name --force-with-lease
-
Follow the Pull request template and submit a pull request with a motive for your change and the method you used to achieve it to be merged with the
devbranch. -
If possible, please submit the pull request along with tests.
-
During review, if you are requested to make changes, rebase your branch and squash commits into one again. Once you push these changes, the pull request will edit automatically.
When a repository is cloned, it has a default remote called origin that points to your fork on GitHub, not the original repository it was forked from. To keep track of the original repository, you can add another remote called upstream.
- Set the
upstream.
git remote add upstream https://github.com/openMF/web-app.git
- Use
git remote -vto check the status. The output must be something like this:
> origin https://github.com/your-username/web-app.git (fetch)
> origin https://github.com/your-username/web-app.git (push)
> upstream https://github.com/openMF/web-app.git (fetch)
> upstream https://github.com/openMF/web-app.git (push)
- To update your local copy with remote changes, run the following: (This will give you an exact copy of the current remote. You should not have any local changes on your dev branch, if you do, use rebase instead.)
git fetch upstream
git checkout dev
git merge upstream/dev
- Push these merged changes to the dev branch on your fork. (Ensure to pull in upstream changes regularly to keep your forked repository up to date. Or you use the "Sync fork" button on top of the Github page of your fork, followed by
git pull.)
git push origin dev
- Switch to the branch you are using for some piece of work.
git checkout branch-name
- Rebase your branch, which means, take in all latest changes and replay your work in the branch on top of this - this produces cleaner versions/history.
git rebase dev
- Push the final changes when you're ready.
git push origin branch-name
After your pull request is merged, you can safely delete your branch and pull the changes from the dev (upstream) repository.
- Delete the remote branch on GitHub.
git push origin --delete branch-name
- Checkout the dev branch.
git checkout dev
- Delete the local branch.
git branch -D branch-name
- Update your dev branch with the latest upstream version.
git pull upstream dev
If running a build is not required for a particular commit (in some cases like an update to README.md), add [ci skip] or [skip ci] to the git commit message. Commits that have [ci skip] or [skip ci] anywhere in the commit messages are ignored by Travis CI.
Thank you for contributing!