Welcome! Thanks for checking out the New Expensify app and taking the time to contribute!
If you would like to become an Expensify contributor, the first step is to read this document in its entirety. The second step is to review the README guidelines here to understand our coding philosophy and for a general overview of the code repository (i.e. how to run the app locally, testing, storage, our app philosophy, etc). Please read both documents before asking questions, as it may be covered within the documentation.
You can create as many accounts as needed in order to test your changes directly from the app. An initial account can be created when logging in for the first time, and additional accounts can be created by opening the "New Chat" or "Group Chat" pages via the Global Create menu, inputting a valid email or phone number, and tapping the user's avatar.
Notes:
- When testing chat functionality in the app please do this between accounts you or your fellow contributors own - do not test chatting with Concierge, as this diverts to our customer support team. Thank you.
- A member of our customer onboarding team gets auto-assigned to every new policy created by a non-paying account to help them set up. Please do not interact with these teams, ask for calls, or support on your issues. If you do need to test functionality inside the defaultRooms (#admins & #announce) for any issues you’re working on, please let them know that you are a contributor and don’t need assistance. They will proceed to ignore the chat.
You can generate multiple test accounts by using a +
postfix, for example if your email is test@test.com, you can create multiple New Expensify accounts connected to the same email address by using test+123@test.com, test+456@test.com, etc.
All internal engineers, contributors, and C+ members are required to test with a “high traffic” account against the staging or production web servers. Use these Google forms to manage your high-traffic accounts. You'll need to authenticate via Google first.
Some features are locked behind beta flags while development is ongoing. As a contributor you can work on these beta features locally by overriding the Permissions.canUseAllBetas
function to return true
.
This project and everyone participating in it is governed by the Expensify Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to contributors@expensify.com.
At this time, we are not hiring contractors in Crimea, North Korea, Russia, Iran, Cuba, or Syria.
All contributors should be a member of two Slack channels:
- #expensify-open-source -- used to ask general questions, facilitate discussions, and make feature requests.
- #expensify-bugs -- used to discuss or report bugs specifically.
Before requesting an invite to Slack please ensure your Upwork account is active, since we only pay via Upwork (see below). To request an invite to these two Slack channels, email contributors@expensify.com with the subject Slack Channel Invites
. We'll send you an invite!
Note: Do not send direct messages to the Expensify team in Slack or Expensify Chat, they will not be able to respond.
Note: if you are hired for an Upwork job and have any job-specific questions, please ask in the GitHub issue or pull request. This will ensure that the person addressing your question has as much context as possible.
If you've found a vulnerability, please email security@expensify.com with the subject Vulnerability Report
instead of creating an issue.
We hire and pay external contributors via Upwork.com. If you'd like to be paid for contributing or reporting a bug, please create an Upwork account, apply for an available job in GitHub, and finally apply for the job in Upwork once your proposal gets selected in GitHub. Please make sure your Upwork profile is fully verified before applying, otherwise you run the risk of not being paid. If you think your compensation should be increased for a specific job, you can request a reevaluation by commenting in the Github issue where the Upwork job was posted.
Payment for your contributions and bug reports will be made no less than 7 days after the pull request is deployed to production to allow for regression testing. If you have not received payment after 8 days of the PR being deployed to production, and there are no regressions, please add a comment to the issue mentioning the BugZero team member (Look for the melvin-bot "Triggered auto assignment to... (Bug
)" to see who this is).
New contributors are limited to working on one job at a time, however experienced contributors may work on numerous jobs simultaneously.
Please be aware that compensation for any support in solving an issue is provided entirely at Expensify’s discretion. Personal time or resources applied towards investigating a proposal will not guarantee compensation. Compensation is only guaranteed to those who propose a solution and get hired for that job. We understand there may be cases where a selected proposal may take inspiration from a previous proposal. Unfortunately, it’s not possible for us to evaluate every individual case and we have no process that can efficiently do so. Issues with higher rewards come with higher risk factors so try to keep things civil and make the best proposal you can. Once again, any information provided may not necessarily lead to you getting hired for that issue or compensated in any way.
Important: Payment amounts are variable, dependent on when your PR is merged and if there are any regressions. Your PR will be reviewed by a Contributor+ (C+). team member and an internal engineer. All tests must pass and all code must pass lint checks before a merge.
Payment timelines are based on the day and timestamp the contributor is assigned to the Github issue by an Expensify employee:
- Merged PR within 3 business days (72 hours) - 50% bonus
- Merged PR within 6 business days (144 hours) - 0% bonus
- Merged PR within 9 business days (216 hours) - 50% penalty
- No PR within 12 business days - Contract terminated
We specify exact hours to make sure we can clearly decide what is eligible for the bonus given our team is global and contributors span across all the timezones.
If a PR causes a regression at any point within the regression period (starting when the code is merged and ending 168 hours (that's 7 days) after being deployed to production):
- payments will be issued 7 days after all regressions are fixed (ie: deployed to production)
- a 50% penalty will be applied to the Contributor and Contributor+ for each regression on an issue
- the assigned Contributor and Contributor+ are not eligible for the 50% urgency bonus
The 168 hours (aka 7 days) will be measured by calculating the time between when the PR is merged, and when a bug is posted to the #expensify-bugs Slack channel.
A job could be fixing a bug or working on a new feature. There are two ways you can find a job that you can contribute to:
This is the most common scenario for contributors. The Expensify team posts new jobs to the Upwork job list here (you must be signed in to Upwork to view jobs). Each job in Upwork has a corresponding GitHub issue, which will include instructions to follow. You can also view all open jobs in the Expensify/App GH repository by searching for GH issues with the Help Wanted
label. Lastly, you can follow the @ExpensifyOSS Twitter account to see a live feed of jobs that are posted.
It’s possible that you found a new bug that we haven’t posted as a job to the GitHub repository. This is an opportunity to raise it and claim the bug bounty. If it's a valid bug that we choose to resolve by deploying it to production — either internally or via an external contributor — then we will compensate you $50 for identifying the bug (we do not compensate for reporting new feature requests). If the bug is fixed by a PR that is not associated with your bug report, then you will not be eligible for the corresponding compensation unless you can find the PR that fixed it and prove your bug report came first.
- Note: If you get assigned the job you proposed and you complete the job, this $50 for identifying the improvement is in addition to the reward you will be paid for completing the job.
- Note about proposed bugs: Expensify has the right not to pay the $50 reward if the suggested bug has already been reported. Following, if more than one contributor proposes the same bug, the contributor who posted it first in the #expensify-bugs Slack channel is the one who is eligible for the bonus.
- Note: whilst you may optionally propose a solution for that job on Slack, solutions are ultimately reviewed in GitHub. The onus is on you to propose the solution on GitHub, and/or ensure the issue creator will include a link to your proposal.
Please follow these steps to propose a job or raise a bug:
- Check to ensure a GH issue does not already exist for this job in the New Expensify Issue list.
- Check to ensure the
Bug:
orFeature Request:
was not already posted in Slack (specifically the #expensify-bugs or #expensify-open-source Slack channels). Use your best judgement by searching for similar titles, words and issue descriptions. - If your bug or new feature matches with an existing issue, please comment on that Slack thread or GitHub issue with your findings if you think it will help solve the issue.
- If there is no existing GitHub issue or Upwork job, check if the issue is happening on prod (as opposed to only happening on dev)
- If the issue is just in dev then it means it's a new issue and has not been deployed to production. In this case, you should try to find the offending PR and comment in the issue tied to the PR and ask the assigned users to add the
DeployBlockerCash
label. If you can't find it, follow the reporting instructions in the next item, but note that the issue is a regression only found in dev and not in prod. - If the issue happens in main, staging, or production then report the issue(s) in the #expensify-bugs Slack channel, using the report bug workflow. You can do this by clicking 'Workflow > report Bug', or typing
/Report bug
. View this guide for help creating a plan when proposing a feature request. Please verify the bug's presence on every platform mentioned in the bug report template, and confirm this with a screen recording..- Important note/reminder: never share any information pertaining to a customer of Expensify when describing the bug. This includes, and is not limited to, a customer's name, email, and contact information.
- The Applause team will review your job proposal in the appropriate slack channel. If you've provided a quality proposal that we choose to implement, a GitHub issue will be created and your Slack handle will be included in the original post after
Issue reported by:
- If an external contributor other than yourself is hired to work on the issue, you will also be hired for the same job in Upwork to receive your payout. No additional work is required. If the issue is fixed internally, a dedicated job will be created to hire and pay you after the issue is fixed.
- Payment will be made 7 days after code is deployed to production if there are no regressions. If a regression is discovered, payment will be issued 7 days after all regressions are fixed.
Note: Our problem solving approach at Expensify is to focus on high value problems and avoid small optimizations with results that are difficult to measure. We also prefer to identify and solve problems at their root. Given that, please ensure all proposed jobs fix a specific problem in a measurable way with evidence so they are easy to evaluate. Here's an example of a good problem/solution:
Problem: The app start up time has regressed because we introduced "New Feature" in PR #12345 and is now 1042ms slower because
SomeComponent
is re-rendering 42 times.Solution: Start up time will perceptibly decrease by 1042ms if we prevent the unnecessary re-renders of this component.
Reminder: For technical guidance please refer to the README.
Additionally if you want to discuss an idea with the open source community without having a P/S statement yet, you can post it in #expensify-open-source with the prefix IDEA:
. All ideas to build the future of Expensify are always welcome! i.e.: "IDEA:
I don't have a P/S for this yet, but just kicking the idea around... what if we [insert crazy idea]?".
- Expensify requires that you can test the app on iOS, MacOS, Android, Web, and mWeb.
- You'll need a Mac to test the iOS and MacOS app.
- In case you don't have one, here's a helpful document on how you might test all platforms on a Windows/Linux device.
- Expensify reviews all solution proposals on a first come first serve basis. If you see other contributors have already proposed a solution, you can still provide a solution proposal and we will review it. We look for the earliest provided, best proposed solution that addresses the job.
- Use your test account(s) to reproduce the problem by following the steps in the GitHub issue.
- If you cannot reproduce the problem, pause on this step and add a comment to the issue explaining where you are stuck or that you don't think the issue can be reproduced.
- You can propose solutions on any issue at any time, but if you propose solutions to jobs before the
Help Wanted
label is applied, you do so at your own risk. Proposals will not be reviewed until the label is added and there is always a chance that we might not add the label or hire an external contributor for the job. - After you reproduce the issue, complete the proposal template here and post it as a comment in the corresponding GitHub issue (linked in the Upwork job).
- Note: Before submitting a proposal on an issue, be sure to read any other existing proposals. ALL NEW PROPOSALS MUST BE DIFFERENT FROM EXISTING PROPOSALS. The difference should be important, meaningful or considerable.
- Refrain from leaving additional comments until someone from the Contributor-Plus team and / or someone from Expensify provides feedback on your proposal (do not create a pull request yet).
- Do not leave more than one proposal.
- Do not make extensive changes to your current proposal until after it has been reviewed.
- If you want to make an entirely new proposal or update an existing proposal, please go back and edit your original proposal, then post a new comment to the issue in this format to alert everyone that it has been updated:
## Proposal [Updated](link to proposal)
- If your proposal is accepted by the Expensify engineer assigned to the issue, Expensify will hire you on Upwork and assign the GitHub issue to you.
- Once hired, post a comment in the Github issue stating when you expect to have your PR ready for review.
- When you are ready to start, fork the repository and create a new branch.
- Before you begin writing any code, please be aware that we require all commits to be signed. The easiest way to do that is to generate a new GPG key and add it to your GitHub account. Once you've done that, you can automatically sign all your commits by adding the following to your
.gitconfig
:[commit] gpgsign = true [user] email = <Your GH account email> name = <Your Name> signingkey = <your_signing_key> [gpg] program = gpg
- Open a pull request, and make sure to fill in the required fields.
- An Expensify engineer and a member from the Contributor-Plus team will be assigned to your pull request automatically to review.
- Daily updates on weekdays are highly recommended. If you know you won’t be able to provide updates for > 1 week, please comment on the PR or issue how long you plan to be out so that we may plan accordingly. We understand everyone needs a little vacation here and there. Any issue that doesn't receive an update for 1 full week may be considered abandoned and the original contract terminated.
- When you are ready to submit your pull request for final review, make sure the following checks pass:
- CLA - You must sign our Contributor License Agreement by following the CLA bot instructions that will be posted on your PR
- Tests - All tests must pass before a merge of a pull request
- Lint - All code must pass lint checks before a merge of a pull request
- Please never force push when a PR review has already started (because this messes with the PR review history)
- Please pay attention to the pull request template, especially to how we link PRs with issues they fix. Make sure you don't use GitHub keywords such as
fixes
in your PR description, as this can break our current automated steps for issue management. Follow the PR template format carefully. - Upon submission of a PR, please include a numbered list of explicit testing steps for each platform (Web, Desktop, iOS, Android, and Mobile Web) to confirm the fix works as expected and there are no regressions.
- Please add a screenshot of the app running on each platform (Web, Desktop, iOS, Android, Mobile Web).
- Once your PR has been deployed to production, a checklist will automatically be commented in the GH issue. You're required to complete the steps that have your name mentioned before payment will be issued.
- The items requiring your completion consist of:
- Proposing steps to take for a regression test to ensure the bug doesn't occur again (For information on how to successfully complete this, head here).
- Identifying and noting the offending PR that caused the bug (if any).
- Commenting on the offending PR to note the bug it caused and why (if applicable).
- Starting a conversation on if any additional steps should be taken to prevent further bugs similar to the one fixed from occurring again.
- Once the above items have been successfully completed, then payments will begin to be issued.
- If you have made a change to your pull request and are ready for another review, leave a comment that says "Updated" on the pull request itself.
- Please keep the conversation in GitHub, and do not ping individual reviewers in Slack or Upwork to get their attention.
- Pull Request reviews can sometimes take a few days. If your pull request has not been addressed after four days please let us know via the #expensify-open-source Slack channel.
- On occasion, our engineers will need to focus on a feature release and choose to place a hold on the review of your PR. Depending on the hold length, our team will decide if a bonus will be applied to the job.
- Read our official JavaScript and React style guide. Please refer to our Style Guide before asking for a review.
Follow all the above above steps and processes. When you find a job you'd like to work on:
- Post “I’m from [agency], I’d like to work on this job”
- If no proposals have been submitted by other contributors, BugZero (BZ) team member or an internal engineer will assign the issue to you.
- If there are existing proposals, BZ will put the issue on hold. Contributor+ will review the existing proposals. If a contributor’s proposal is accepted then the contributor will be assigned to the issue. If not the issue will be assigned to the agency-employee.
- Once assigned follow the steps here to submit your proposal
During communication with Expensify, you will come across a variety of acronyms used by our team. While acronyms can be useful, they cease to be the moment they are not known to the receiver. As such, we wanted to create a list here of our most commonly used acronyms and what they're referring to. Lastly, please never hesitate to ask in Slack or the GH issue if there are any that are not understood/known!
- ND/NewDot: new.expensify.com
- OD/OldDot: expensify.com
- BZ: Bug Zero (Expensify internal team in charge of managing the GH issues related to our open-source project)
- LHN: Left Hand Navigation (Primary navigation modal in Expensify Chat, docked on the left-hand side)
- OP: Original Post (Most commonly the post in E/App GH issues that reports the bug)
- FAB Floating Action Button (the + Button that is used to launch flows like 'New Chat', 'Request Money')
- GBR: Green Brick Road (UX Design Principle that utilizes green indicators on action items to encourage the user down the optimal path for a given process or task)
- RBR: Red Brick Road (UX Design Principle that utilizes red indicators on action items to encourage the user down the optimal path for handling and discovering errors)
- VBA: Verified Bank Account (Bank account that has been verified as real and belonging to the correct business/individual)
- NAB: Not a Blocker (An issue that doesn't block progress, but would be nice to not have)
- LHN: Left Hand Navigation
- IOU: I owe you (used to describe payment requests between users)
- OTP: One-time password, or magic sign-in
- RHP: Right Hand Panel (on larger screens, pages are often displayed docked to the right side of the screen)
- QA: Quality Assurance
- GH: GitHub
- LGTM:* Looks good to me