forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
…x/45576-fix-not-found-decouple-2
- Loading branch information
Showing
112 changed files
with
1,628 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
android/app/src/main/java/com/expensify/chat/navbar/NavBarManagerModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.expensify.chat.navbar | ||
|
||
import androidx.core.view.WindowInsetsControllerCompat | ||
import com.facebook.react.bridge.ReactApplicationContext | ||
import com.facebook.react.bridge.ReactContextBaseJavaModule | ||
import com.facebook.react.bridge.ReactMethod | ||
import com.facebook.react.bridge.UiThreadUtil; | ||
|
||
class NavBarManagerModule( | ||
private val mReactContext: ReactApplicationContext, | ||
) : ReactContextBaseJavaModule(mReactContext) { | ||
override fun getName(): String = "RNNavBarManager" | ||
|
||
@ReactMethod | ||
fun setButtonStyle(style: String) { | ||
UiThreadUtil.runOnUiThread { | ||
mReactContext.currentActivity?.window?.let { | ||
WindowInsetsControllerCompat(it, it.decorView).let { controller -> | ||
when (style) { | ||
"light" -> controller.isAppearanceLightNavigationBars = false | ||
"dark" -> controller.isAppearanceLightNavigationBars = true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
android/app/src/main/java/com/expensify/chat/navbar/NavBarManagerPackage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.expensify.chat.navbar | ||
|
||
import com.facebook.react.ReactPackage | ||
import com.facebook.react.bridge.NativeModule | ||
import com.facebook.react.bridge.ReactApplicationContext | ||
import com.facebook.react.uimanager.ViewManager | ||
|
||
class NavBarManagerPackage : ReactPackage { | ||
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> { | ||
return emptyList() | ||
} | ||
|
||
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> { | ||
val modules: MutableList<NativeModule> = ArrayList() | ||
modules.add(NavBarManagerModule(reactContext)) | ||
return modules | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,10 @@ You can create as many accounts as needed in order to test your changes directly | |
|
||
**Notes**: | ||
|
||
1. 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. | ||
2. 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. | ||
3. Please **do not post in any Expensify owned public room for testing** (e.g #exfy-roadmap, #new-expensify-feedback). These rooms include real customers and investors. You can create your own public rooms, or [use this test public room](https://staging.new.expensify.com/r/2091104345528462) on either staging or production. Thanks! | ||
1. When creating test accounts, include a `+` (plus sign) in the email address (e.g., [email protected]). This marks the account and their associated workspaces as test accounts in Expensify, ensuring Expensify Guides are not assigned to help with account setup. | ||
2. 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. | ||
3. 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. | ||
4. Please **do not post in any Expensify owned public room for testing** (e.g #exfy-roadmap, #new-expensify-feedback). These rooms include real customers and investors. You can create your own public rooms, or [use this test public room](https://staging.new.expensify.com/r/2091104345528462) on either staging or production. Thanks! | ||
|
||
#### Generating Multiple Test Accounts | ||
You can generate multiple test accounts by using a `+` postfix, for example if your email is [email protected], you can create multiple New Expensify accounts connected to the same email address by using [email protected], [email protected], etc. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ When an expense is submitted to a workspace, your approver will receive an email | |
|
||
# How to Create an Expense | ||
|
||
# SmartScan a receipt | ||
## SmartScan a receipt | ||
|
||
{% include selector.html values="desktop, mobile" %} | ||
|
||
|
@@ -55,7 +55,7 @@ When an expense is submitted to a workspace, your approver will receive an email | |
You can also forward receipts to [email protected] using your primary or secondary email address. SmartScan will automatically extract all the details from the receipt and add them to your expenses. | ||
{% include end-info.html %} | ||
|
||
# Manually add an expense | ||
## Manually add an expense | ||
|
||
{% include selector.html values="desktop, mobile" %} | ||
|
||
|
@@ -83,7 +83,7 @@ You can also forward receipts to [email protected] using your primary or se | |
|
||
{% include end-selector.html %} | ||
|
||
# Create a distance expense | ||
## Create a distance expense | ||
|
||
{% include selector.html values="desktop, mobile" %} | ||
|
||
|
@@ -115,6 +115,28 @@ You can also forward receipts to [email protected] using your primary or se | |
|
||
{% include end-selector.html %} | ||
|
||
# How to Delete an Expense | ||
|
||
{% include selector.html values="desktop, mobile" %} | ||
|
||
{% include option.html value="desktop or WebApp" %} | ||
1. Click **Search > Expenses** and locate your expense. | ||
2. Click the checkbox next to the expense(s) you wish to delete. | ||
3. Click **# selected** in the top right corner. | ||
4. Choose **Delete**. | ||
5. Confirm that you wish to delete it by clicking the red **Delete** button in the popup. | ||
{% include end-option.html %} | ||
|
||
{% include option.html value="mobile" %} | ||
1. Tap **Search**. | ||
2. Tap and hold on the expense you wish to delete. | ||
3. Tap **# selected**. | ||
4. Tap **Delete**. | ||
5. Confirm that you wish to delete it by clicking the red **Delete** button in the popup. | ||
{% include end-option.html %} | ||
|
||
{% include end-selector.html %} | ||
|
||
# Next Steps for expenses sent to an Individual | ||
|
||
- Expenses submitted to an individual are instantly sent. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.