Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from Expensify:main #52

Merged
merged 209 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
197dcc3
fix: 28969
tienifr Oct 6, 2023
d291618
Migrate to TS
MaciejSWM Oct 24, 2023
1aada2b
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Nov 6, 2023
cda8b73
Relative imports; optional params; types
MaciejSWM Nov 6, 2023
383db18
Remove unused import
MaciejSWM Nov 6, 2023
f7ea0fe
Import ordering; Ignore no spreading
MaciejSWM Nov 6, 2023
71fe175
Extract logic to openLink method
MaciejSWM Nov 6, 2023
4c0a808
Missing semicolon
MaciejSWM Nov 6, 2023
659b4cc
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Nov 7, 2023
89f3905
Better ref handling
MaciejSWM Nov 7, 2023
af92086
More preventDefault after early return
MaciejSWM Nov 7, 2023
322e8d6
RBR should appear in LHN on failed split receipt scans
dukenv0307 Nov 8, 2023
d4802db
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Nov 8, 2023
0ded84a
Make href optional
MaciejSWM Nov 8, 2023
5304f4d
More compact else/if syntax
MaciejSWM Nov 8, 2023
df2d98a
Use discriminating union type for link and onPress
MaciejSWM Nov 9, 2023
04ef831
ref: migrate OfflineWithFeedback to TS
kubabutkiewicz Nov 9, 2023
eadc4a2
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Nov 9, 2023
65e05f9
Prettier
MaciejSWM Nov 9, 2023
01e639f
Merge branch 'main' into fix/29733
dukenv0307 Nov 10, 2023
1b89761
Better type for children + export type
MaciejSWM Nov 10, 2023
bc41d43
Extend TextProps; rename props->rest
MaciejSWM Nov 10, 2023
7c184d3
Merge branch 'main' into fix/29733
dukenv0307 Nov 13, 2023
1323fae
fix: migrate MessagesRow to TS
kubabutkiewicz Nov 13, 2023
89a9cb1
update conditions
dukenv0307 Nov 14, 2023
417f38a
merge main
dukenv0307 Nov 16, 2023
3b4ceaf
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Nov 20, 2023
3e26c7b
Fix merge - apply changes from olx .js file
MaciejSWM Nov 20, 2023
1d5c0af
Lint
MaciejSWM Nov 20, 2023
732efed
Extend ChildrenProps
MaciejSWM Nov 20, 2023
95ab86a
Lint
MaciejSWM Nov 20, 2023
13d9b14
Fix createMenuPositionSidebar style
WojtekBoman Nov 22, 2023
e7484d2
merge main
dukenv0307 Nov 24, 2023
e5b91bd
Merge branch 'main' of github.com:kubabutkiewicz/expensify-app into t…
kubabutkiewicz Nov 24, 2023
5f0b880
fix: lint errors
kubabutkiewicz Nov 24, 2023
c0b19a9
fix: resolve comments
kubabutkiewicz Nov 24, 2023
03126d4
fix: resolve comments
kubabutkiewicz Nov 27, 2023
53cd80e
fix: resolve comment
kubabutkiewicz Nov 27, 2023
b4d4cd3
Merge branch 'main' of github.com:kubabutkiewicz/expensify-app into t…
kubabutkiewicz Nov 27, 2023
b88897b
fix: resolve comment
kubabutkiewicz Nov 27, 2023
0e109d4
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Nov 27, 2023
cfc444c
Use TextStyles' textAlign type
MaciejSWM Nov 27, 2023
20ddda9
do not display new line when creating request money
teneeto Nov 29, 2023
6bac4f8
use isReportPreviewAction
teneeto Nov 29, 2023
99defef
Refactor ValidationStep to new form
kowczarz Nov 29, 2023
ec2ebe0
Fix
kowczarz Nov 29, 2023
273df2d
merge main
dukenv0307 Nov 30, 2023
a668cc9
fix prettier
dukenv0307 Nov 30, 2023
0de7ca9
fix jest
dukenv0307 Nov 30, 2023
8d308c5
fix review comment
teneeto Nov 30, 2023
83478a0
Refactor createMenuPositionSidebar
WojtekBoman Nov 30, 2023
0e0898f
Merge branch 'main' into fix/28997
tienifr Nov 30, 2023
d3b47a3
Migrate 'ReportActionItemDraft.js' component to TypeScript
pasyukevich Nov 29, 2023
3164601
Merge branch 'main' of github.com:kubabutkiewicz/expensify-app into t…
kubabutkiewicz Nov 30, 2023
26782f9
fix: resolve comments
kubabutkiewicz Nov 30, 2023
001aae3
fix: Undefined displayed in header offline when opening left thread
tienifr Nov 30, 2023
ca83e0d
fix: fix type and remove parameter for canAccessReport
kubabutkiewicz Nov 30, 2023
5289e0d
Merge branch 'main' of github.com:kubabutkiewicz/expensify-app into f…
kubabutkiewicz Nov 30, 2023
f64ef0f
fix: type error in perf tests
kubabutkiewicz Nov 30, 2023
1b0738a
display skeleton when reloading app before API is complete
dukenv0307 Dec 1, 2023
082d31d
Merge branch 'main' of https://github.com/tienifr/App into fix/28997
tienifr Dec 1, 2023
c189fc5
merge conflict
teneeto Dec 1, 2023
7f23712
fix lint
teneeto Dec 1, 2023
3510952
Merge branch 'main' of https://github.com/tienifr/App into fix/28997
tienifr Dec 1, 2023
15e50b4
Increase the gap between fab and menu
WojtekBoman Dec 1, 2023
f96b552
Fix lint
kowczarz Dec 1, 2023
baf668f
fix avatar for workspace thread
tienifr Dec 1, 2023
3bf9149
Merge branch 'main' of github.com:teneeto/App into fix/29376-do-not-d…
teneeto Dec 1, 2023
01b27d9
fix failing test
teneeto Dec 1, 2023
d8b9f9e
using onyx connect to get all transactions
dukenv0307 Dec 4, 2023
042f0bc
Merge branch 'main' into fix/31366
dukenv0307 Dec 4, 2023
46ccef8
fix test
dukenv0307 Dec 4, 2023
441935a
fix: type
kubabutkiewicz Dec 4, 2023
05c6b1e
Merge branch 'main' into fix/29376-do-not-display-new-line-when-creat…
MonilBhavsar Dec 4, 2023
d82f0c8
Update hook dependency and property type
MonilBhavsar Dec 4, 2023
22ec91c
Get the parent report action using withOnyx for the money request view
tgolen Dec 4, 2023
206dffe
rename all transactions variables
dukenv0307 Dec 5, 2023
69a6c26
Merge branch 'main' of github.com:kubabutkiewicz/expensify-app into f…
kubabutkiewicz Dec 5, 2023
eec906a
implement dynamic StyleUtils
chrispader Dec 5, 2023
b7abf59
add separate StyleUtilsProvider
chrispader Dec 5, 2023
6ddf86a
update
chrispader Dec 5, 2023
b5b1b78
improve
chrispader Dec 5, 2023
88d1e18
Rename dark mode product colors
grgia Dec 5, 2023
28a280a
fix: remaining style utils migration
chrispader Dec 5, 2023
dbcc908
update imports
chrispader Dec 5, 2023
a5edd5a
fix: eslint errros
chrispader Dec 5, 2023
0c5aa4e
fix: ts errors
chrispader Dec 5, 2023
06464ef
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 5, 2023
ddb2b74
add default StyleUtils
chrispader Dec 5, 2023
17a97d6
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 5, 2023
97d83f4
revert doc updates
chrispader Dec 5, 2023
9b3ed5e
update style utils usage
chrispader Dec 5, 2023
72848f2
fix: more
chrispader Dec 5, 2023
06b4e08
Update Light Mode Colors
grgia Dec 5, 2023
63dbd54
fix: more errors
chrispader Dec 5, 2023
3afb415
fix: default style utils
chrispader Dec 5, 2023
2230d21
TEMPORARY COMMIT - add themes to preferences page for adhoc
grgia Dec 5, 2023
17c83d7
Merge branch 'main' into georgia-LightModeThemeQA
grgia Dec 5, 2023
eb9c843
fix search term is lost
DylanDylann Dec 6, 2023
82d1eb7
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Dec 6, 2023
1a8f7ad
Drop js file
MaciejSWM Dec 6, 2023
71626c6
merge main
dukenv0307 Dec 6, 2023
44b59a2
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 6, 2023
a083b0c
Merge branch 'main' into georgia-LightModeThemeQA
grgia Dec 6, 2023
a8430ec
Merge branch 'main' into georgia-LightModeThemeQA
grgia Dec 6, 2023
820fb32
rename .web files to .website files
SzymczakJ Dec 6, 2023
a322c2e
fix camera border color on Profile Page
grgia Dec 6, 2023
cd7ba79
make webpack take .website.tsx files
SzymczakJ Dec 6, 2023
f931e04
fix update based on suggestions
DylanDylann Dec 6, 2023
8dbfef6
Merge branch 'main' into georgia-LightModeThemeQA
grgia Dec 6, 2023
125229f
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 6, 2023
04bd265
Use mention background color for search highlights
grgia Dec 6, 2023
d95966a
Restore environmentURL
MaciejSWM Dec 6, 2023
4a24eb1
fix merge main
DylanDylann Dec 6, 2023
7142a45
fix clear input once rhn closed
DylanDylann Dec 6, 2023
ddf0d4e
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Dec 6, 2023
d180ba9
fix update comment
DylanDylann Dec 6, 2023
5af8847
add themed Example Checks
grgia Dec 6, 2023
11e1afa
Remove old example checks
grgia Dec 6, 2023
a62fc2c
fix mobile gradient / references to old highlightBG
grgia Dec 6, 2023
b9c8610
outdated color
grgia Dec 6, 2023
c8685a3
prettier
grgia Dec 6, 2023
b3cf047
Merge branch 'main' into georgia-LightModeThemeQA
grgia Dec 6, 2023
7439a3d
Update version to 1.4.8-3
OSBotify Dec 6, 2023
2e8cfdb
Merge pull request #32331 from tienifr/fix/28997
nkuoch Dec 6, 2023
395830a
Merge pull request #32542 from DylanDylann/fix/22534-web-search-term-…
rlinoz Dec 6, 2023
e6168ad
Merge pull request #32194 from pasyukevich/feature/migrate-to-ts-Repo…
johnmlee101 Dec 6, 2023
8ca041e
Remove temporary settings
grgia Dec 6, 2023
deda6ae
Update version to 1.4.9-0
OSBotify Dec 6, 2023
ba1ddc4
update LHN hover color to new product300
grgia Dec 6, 2023
5ba380c
fix subscript avatar hover in LHN
grgia Dec 6, 2023
531dfde
fix subscript avatar
grgia Dec 6, 2023
18273a0
lint
grgia Dec 6, 2023
d286a7e
reupload compressed images
grgia Dec 6, 2023
9d31e4b
Revert "translate invite member to room"
yuwenmemon Dec 6, 2023
8f547c0
Merge pull request #32601 from Expensify/revert-30927-fix-39987-trans…
yuwenmemon Dec 6, 2023
3827a9c
Update version to 1.4.9-1
OSBotify Dec 7, 2023
f4a3bcf
Revert "Only allow alphabetic and latin characters for some fields in…
marcaaron Dec 7, 2023
9a8f59b
Fix deep linking
marcaaron Dec 7, 2023
1e8bb05
Pass undefined to onPress
marcaaron Dec 7, 2023
c9df370
Fix prettier
marcaaron Dec 7, 2023
43b1722
Merge pull request #32446 from Expensify/tgolen-remove-sideloading-mo…
marcaaron Dec 7, 2023
2fd1bb8
Merge pull request #32177 from teneeto/fix/29376-do-not-display-new-l…
MonilBhavsar Dec 7, 2023
a2cf591
Merge pull request #32611 from Expensify/marcaaron-fixInAppDeepLinks
robertjchen Dec 7, 2023
e4e5b8f
rename function
dukenv0307 Dec 7, 2023
20ef4d6
Merge pull request #32609 from Expensify/revert-31685-fix/31385
Beamanator Dec 7, 2023
b0268fa
Update version to 1.4.9-2
OSBotify Dec 7, 2023
d95dba5
fix clear search input once invite user
DylanDylann Dec 7, 2023
670e55f
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 7, 2023
83504ed
Merge branch 'main' into ts-migration/TextLink
MaciejSWM Dec 7, 2023
f1385c3
fix issue
DylanDylann Dec 7, 2023
fb40cf1
fix: default exports
chrispader Dec 7, 2023
838bda1
fix: default theme
chrispader Dec 7, 2023
266730f
simplify style utils
chrispader Dec 7, 2023
8970199
re-structure styles
chrispader Dec 7, 2023
b0616b1
restructure themes
chrispader Dec 7, 2023
7609021
fix: restructures
chrispader Dec 7, 2023
a9cdc0b
fix: old style utils
chrispader Dec 7, 2023
524a266
fix: lint and error
chrispader Dec 7, 2023
87f1e76
fix: ts
chrispader Dec 7, 2023
e69b6c8
Merge branch 'main' into georgia-LightModeThemeQA
grgia Dec 7, 2023
22acde9
fix regression of keybord in emoji picker
dukenv0307 Dec 7, 2023
a552f01
Merge branch 'main' into fix/30867
dukenv0307 Dec 7, 2023
c5b469a
Merge branch 'main' into fix/30867
dukenv0307 Dec 7, 2023
10727a7
Merge pull request #32548 from software-mansion-labs/@szymczak/change…
mountiny Dec 7, 2023
e7ccd95
rename .web files to .website files
SzymczakJ Dec 6, 2023
8da43e0
make webpack take .website.tsx files
SzymczakJ Dec 6, 2023
4066dcf
fix: test
chrispader Dec 7, 2023
402b5e5
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 7, 2023
f0228f9
rename themes file
chrispader Dec 7, 2023
d6b17db
rename
chrispader Dec 7, 2023
96f570d
rename
chrispader Dec 7, 2023
9d2947d
rename component casing
chrispader Dec 7, 2023
b7d36c1
Merge pull request #32328 from dukenv0307/fix/31366
tgolen Dec 7, 2023
564f8cb
fix: import
chrispader Dec 7, 2023
bf71512
fix: wrong usage of StyleUtils
chrispader Dec 7, 2023
1b618ae
fix: remaining errors
chrispader Dec 7, 2023
3de8823
reset Expensify.js
chrispader Dec 7, 2023
cdf4f2c
fix
chrispader Dec 7, 2023
fb0b93f
rename folder
chrispader Dec 7, 2023
d3ea6ea
Merge pull request #31043 from dukenv0307/fix/29733
youssef-lr Dec 7, 2023
8fa65ec
Merge pull request #32512 from Expensify/georgia-LightModeThemeQA
Gonals Dec 7, 2023
8dbc536
fix: typo
chrispader Dec 7, 2023
710ebbf
Merge pull request #31124 from kubabutkiewicz/ts-migration/OfflineWit…
cristipaval Dec 7, 2023
6b00e00
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 7, 2023
7693508
update PULL_REQUEST_TEMPLATE
chrispader Dec 7, 2023
adc06df
update REVIEWER_CHECKLIST
chrispader Dec 7, 2023
91e5e74
Merge branch 'main' into @chrispader/use-style-utils-hook
chrispader Dec 7, 2023
2e6fb67
fix navigating to draft workspaces from OldDot
jasperhuangg Dec 7, 2023
48ce451
update condition to be safer
jasperhuangg Dec 7, 2023
a264dcc
update condition
jasperhuangg Dec 7, 2023
0fcca83
fix condition order
jasperhuangg Dec 7, 2023
5c4e29a
add comment
jasperhuangg Dec 7, 2023
60cb6c9
update comment
jasperhuangg Dec 7, 2023
a85cc03
add comment
jasperhuangg Dec 7, 2023
d9146ee
update comments
jasperhuangg Dec 7, 2023
96b7ca6
update comments
jasperhuangg Dec 7, 2023
749e6e3
Merge pull request #32296 from kubabutkiewicz/fix/30842
NikkiWines Dec 7, 2023
291da7b
Merge pull request #30907 from software-mansion-labs/ts-migration/Tex…
jasperhuangg Dec 7, 2023
04f273b
Merge pull request #32498 from margelo/@chrispader/use-style-utils-hook
grgia Dec 7, 2023
fc4a46f
Merge pull request #31679 from software-mansion-labs/fix-overlapping-fab
shawnborton Dec 7, 2023
4fba602
Merge pull request #32205 from software-mansion-labs/form-migration/v…
luacmartins Dec 7, 2023
3f55633
[ImgBot] Optimize images
ImgBotApp Dec 7, 2023
49645f3
Merge pull request #32697 from Expensify/imgbot
github-actions[bot] Dec 7, 2023
12b6a77
Merge pull request #32654 from dukenv0307/fix/30867
rlinoz Dec 7, 2023
e413f74
Update version to 1.4.9-3
OSBotify Dec 7, 2023
ae85769
Merge pull request #32691 from Expensify/jasper-fixCreatingFreeWorksp…
marcochavezf Dec 7, 2023
de744ef
Merge pull request #32638 from DylanDylann/fix/32635-email-of-newly-a…
yuwenmemon Dec 7, 2023
04457f9
Update version to 1.4.9-4
OSBotify Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ $ https://github.com/Expensify/App/issues/<issueID(comment)>

Do NOT only link the issue number like this: $ #<issueID>
--->
$
PROPOSAL:
$
PROPOSAL:


### Tests
Expand Down Expand Up @@ -98,7 +98,7 @@ This is a checklist for PR authors. Please make sure to complete all tasks and c
- [ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
- [ ] If a new CSS style is added I verified that:
- [ ] A similar style doesn't already exist
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/StyleUtils.js) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)`)
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/utils/index.ts) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)`)
- [ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
- [ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like `Avatar` is modified, I verified that `Avatar` is working as expected in all cases)
- [ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
Expand Down
4 changes: 2 additions & 2 deletions .imgbotconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ignoredFiles": [
"assets/images/empty-state_background-fade-dark.png", // Caused an issue with colour gradients, https://github.com/Expensify/App/issues/30499
"assets/images/empty-state_background-fade-light.png"
"assets/images/themeDependent/empty-state_background-fade-dark.png", // Caused an issue with colour gradients, https://github.com/Expensify/App/issues/30499
"assets/images/themeDependent/empty-state_background-fade-light.png"
],
"aggressiveCompression": "false"
}
2 changes: 1 addition & 1 deletion .storybook/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ a.sidebar-item[data-selected="true"], a.sidebar-item[data-selected="true"]:focus
}

.sidebar-container {
background: #07271f;
background: #072419;
}
18 changes: 9 additions & 9 deletions .storybook/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ export default create({
fontBase: 'ExpensifyNeue-Regular',
fontCode: 'monospace',
base: 'dark',
appBg: colors.darkHighlightBackground,
colorPrimary: colors.darkDefaultButton,
appBg: colors.productDark200,
colorPrimary: colors.productDark400,
colorSecondary: colors.green,
appContentBg: colors.darkAppBackground,
textColor: colors.darkPrimaryText,
barTextColor: colors.darkPrimaryText,
appContentBg: colors.productDark100,
textColor: colors.productDark900,
barTextColor: colors.productDark900,
barSelectedColor: colors.green,
barBg: colors.darkAppBackground,
appBorderColor: colors.darkBorders,
inputBg: colors.darkHighlightBackground,
inputBorder: colors.darkBorders,
barBg: colors.productDark100,
appBorderColor: colors.productDark400,
inputBg: colors.productDark200,
inputBorder: colors.productDark400,
appBorderRadius: 8,
inputBorderRadius: 8,
});
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001040802
versionName "1.4.8-2"
versionCode 1001040904
versionName "1.4.9-4"
}

flavorDimensions "default"
Expand Down
Binary file removed assets/images/empty-state_background-fade-dark.png
Binary file not shown.
Binary file removed assets/images/empty-state_background-fade-light.png
Binary file not shown.
Binary file removed assets/images/example-check-image-en.png
Binary file not shown.
Binary file removed assets/images/example-check-image-es.png
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/images/home-background--android.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/home-background--mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/home-fade-gradient--mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/home-fade-gradient.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,21 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
// This is also why we have to use .website.js for our own web-specific files...
// Because desktop also relies on "web-specific" module implementations
// This also skips packing web only dependencies to desktop and vice versa
extensions: ['.web.js', platform === 'web' ? '.website.js' : '.desktop.js', '.js', '.jsx', '.web.ts', platform === 'web' ? '.website.ts' : '.desktop.ts', '.ts', '.web.tsx', '.tsx'],
extensions: [
'.web.js',
...(platform === 'desktop' ? ['.desktop.js'] : []),
'.website.js',
'.js',
'.jsx',
'.web.ts',
...(platform === 'desktop' ? ['.desktop.ts'] : []),
'.website.ts',
...(platform === 'desktop' ? ['.desktop.tsx'] : []),
'.website.tsx',
'.ts',
'.web.tsx',
'.tsx',
],
fallback: {
'process/browser': require.resolve('process/browser'),
},
Expand Down
2 changes: 1 addition & 1 deletion contributingGuides/REVIEWER_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
- [ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
- [ ] If a new CSS style is added I verified that:
- [ ] A similar style doesn't already exist
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/StyleUtils.js) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG`)
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/utils/index.ts) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG`)
- [ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
- [ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like `Avatar` is modified, I verified that `Avatar` is working as expected in all cases)
- [ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
Expand Down
4 changes: 2 additions & 2 deletions docs/_sass/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ $color-green400: #03D47C;
$color-green-icons: #8B9C8F;
$color-green-borders: #1A3D32;
$color-button-background: #1A3D32;
$color-button-hovered: #2C6755;
$color-green-highlightBG: #07271F;
$color-button-hovered: #2A604F;
$color-green-highlightBG: #072419;
$color-green-highlightBG-hover: #06231c;
$color-green-appBG: #061B09;
$color-green-hover: #00a862;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/images/settings-old-dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.8</string>
<string>1.4.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -40,7 +40,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.4.8.2</string>
<string>1.4.9.4</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.8</string>
<string>1.4.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.4.8.2</string>
<string>1.4.9.4</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.4.8-2",
"version": "1.4.9-4",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
7 changes: 3 additions & 4 deletions src/components/AddressSearch/CurrentLocationButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
import useLocalize from '@hooks/useLocalize';
import getButtonState from '@libs/getButtonState';
import colors from '@styles/colors';
import * as StyleUtils from '@styles/StyleUtils';
import useTheme from '@styles/themes/useTheme';
import useStyleUtils from '@styles/useStyleUtils';
import useThemeStyles from '@styles/useThemeStyles';

const propTypes = {
Expand All @@ -25,14 +24,14 @@ const defaultProps = {
};

function CurrentLocationButton({onPress, isDisabled}) {
const theme = useTheme();
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const {translate} = useLocalize();

return (
<PressableWithFeedback
style={[styles.flexRow, styles.pv4, styles.ph3, isDisabled && styles.buttonOpacityDisabled]}
hoverStyle={StyleUtils.getButtonBackgroundColorStyle(theme, getButtonState(true), true)}
hoverStyle={StyleUtils.getButtonBackgroundColorStyle(getButtonState(true), true)}
onPress={onPress}
accessibilityLabel={translate('location.useCurrent')}
disabled={isDisabled}
Expand Down
13 changes: 4 additions & 9 deletions src/components/AddressSearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import * as ApiUtils from '@libs/ApiUtils';
import compose from '@libs/compose';
import getCurrentPosition from '@libs/getCurrentPosition';
import * as GooglePlacesUtils from '@libs/GooglePlacesUtils';
import * as StyleUtils from '@styles/StyleUtils';
import useTheme from '@styles/themes/useTheme';
import useStyleUtils from '@styles/useStyleUtils';
import useThemeStyles from '@styles/useThemeStyles';
import variables from '@styles/variables';
import CONST from '@src/CONST';
Expand Down Expand Up @@ -165,6 +165,7 @@ function AddressSearch({
}) {
const theme = useTheme();
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const [displayListViewBorder, setDisplayListViewBorder] = useState(false);
const [isTyping, setIsTyping] = useState(false);
const [isFocused, setIsFocused] = useState(false);
Expand Down Expand Up @@ -509,13 +510,7 @@ function AddressSearch({
}}
styles={{
textInputContainer: [styles.flexColumn],
listView: [
StyleUtils.getGoogleListViewStyle(styles, displayListViewBorder),
styles.overflowAuto,
styles.borderLeft,
styles.borderRight,
!isFocused && {height: 0},
],
listView: [StyleUtils.getGoogleListViewStyle(displayListViewBorder), styles.overflowAuto, styles.borderLeft, styles.borderRight, !isFocused && {height: 0}],
row: [styles.pv4, styles.ph3, styles.overflowAuto],
description: [styles.googleSearchText],
separator: [styles.googleSearchSeparator],
Expand All @@ -532,7 +527,7 @@ function AddressSearch({
inbetweenCompo={
// We want to show the current location button even if there are no recent destinations
predefinedPlaces.length === 0 && shouldShowCurrentLocationButton ? (
<View style={[StyleUtils.getGoogleListViewStyle(styles, true), styles.overflowAuto, styles.borderLeft, styles.borderRight]}>
<View style={[StyleUtils.getGoogleListViewStyle(true), styles.overflowAuto, styles.borderLeft, styles.borderRight]}>
<CurrentLocationButton
onPress={getCurrentLocation}
isDisabled={network.isOffline}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import useWindowDimensions from '@hooks/useWindowDimensions';
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import * as ContextMenuActions from '@pages/home/report/ContextMenu/ContextMenuActions';
import * as ReportActionContextMenu from '@pages/home/report/ContextMenu/ReportActionContextMenu';
import * as StyleUtils from '@styles/StyleUtils';
import useStyleUtils from '@styles/useStyleUtils';
import useThemeStyles from '@styles/useThemeStyles';
import CONST from '@src/CONST';
import {propTypes as anchorForCommentsOnlyPropTypes} from './anchorForCommentsOnlyPropTypes';
Expand All @@ -33,6 +33,7 @@ const propTypes = {
*/
function BaseAnchorForCommentsOnly({onPressIn, onPressOut, href = '', rel = '', target = '', children = null, style = {}, onPress, ...rest}) {
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
useEffect(
() => () => {
ReportActionContextMenu.hideContextMenu();
Expand Down
3 changes: 2 additions & 1 deletion src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import * as ReportUtils from '@libs/ReportUtils';
import * as TransactionUtils from '@libs/TransactionUtils';
import useNativeDriver from '@libs/useNativeDriver';
import reportPropTypes from '@pages/reportPropTypes';
import * as StyleUtils from '@styles/StyleUtils';
import useTheme from '@styles/themes/useTheme';
import useStyleUtils from '@styles/useStyleUtils';
import useThemeStyles from '@styles/useThemeStyles';
import * as IOU from '@userActions/IOU';
import CONST from '@src/CONST';
Expand Down Expand Up @@ -112,6 +112,7 @@ const defaultProps = {
function AttachmentModal(props) {
const theme = useTheme();
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const onModalHideCallbackRef = useRef(null);
const [isModalOpen, setIsModalOpen] = useState(props.defaultOpen);
const [shouldLoadAttachment, setShouldLoadAttachment] = useState(false);
Expand Down
3 changes: 2 additions & 1 deletion src/components/Attachments/AttachmentView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import useNetwork from '@hooks/useNetwork';
import addEncryptedAuthTokenToURL from '@libs/addEncryptedAuthTokenToURL';
import compose from '@libs/compose';
import * as TransactionUtils from '@libs/TransactionUtils';
import * as StyleUtils from '@styles/StyleUtils';
import useTheme from '@styles/themes/useTheme';
import useStyleUtils from '@styles/useStyleUtils';
import useThemeStyles from '@styles/useThemeStyles';
import cursor from '@styles/utilities/cursor';
import variables from '@styles/variables';
Expand Down Expand Up @@ -80,6 +80,7 @@ function AttachmentView({
}) {
const theme = useTheme();
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const [loadComplete, setLoadComplete] = useState(false);
const [imageError, setImageError] = useState(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import {View} from 'react-native';
import {ScrollView} from 'react-native-gesture-handler';
import Animated, {Easing, FadeOutDown, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
import * as StyleUtils from '@styles/StyleUtils';
import useTheme from '@styles/themes/useTheme';
import useStyleUtils from '@styles/useStyleUtils';
import useThemeStyles from '@styles/useThemeStyles';
import CONST from '@src/CONST';
import viewForwardedRef from '@src/types/utils/viewForwardedRef';
Expand Down Expand Up @@ -39,8 +38,8 @@ function BaseAutoCompleteSuggestions<TSuggestion>(
}: AutoCompleteSuggestionsProps<TSuggestion>,
ref: ForwardedRef<View | HTMLDivElement>,
) {
const theme = useTheme();
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const rowHeight = useSharedValue(0);
const scrollRef = useRef<FlashList<TSuggestion>>(null);
/**
Expand All @@ -49,7 +48,7 @@ function BaseAutoCompleteSuggestions<TSuggestion>(
const renderItem = useCallback(
({item, index}: RenderSuggestionMenuItemProps<TSuggestion>): ReactElement => (
<PressableWithFeedback
style={({hovered}) => StyleUtils.getAutoCompleteSuggestionItemStyle(theme, highlightedSuggestionIndex, CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTION_ROW_HEIGHT, hovered, index)}
style={({hovered}) => StyleUtils.getAutoCompleteSuggestionItemStyle(highlightedSuggestionIndex, CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTION_ROW_HEIGHT, hovered, index)}
hoverDimmingValue={1}
onMouseDown={(e) => e.preventDefault()}
onPress={() => onSelect(index)}
Expand All @@ -59,7 +58,7 @@ function BaseAutoCompleteSuggestions<TSuggestion>(
{renderSuggestionMenuItem(item, index)}
</PressableWithFeedback>
),
[highlightedSuggestionIndex, renderSuggestionMenuItem, onSelect, accessibilityLabelExtractor, theme],
[accessibilityLabelExtractor, renderSuggestionMenuItem, StyleUtils, highlightedSuggestionIndex, onSelect],
);

const innerHeight = CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTION_ROW_HEIGHT * suggestions.length;
Expand Down
3 changes: 2 additions & 1 deletion src/components/AutoCompleteSuggestions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom';
import {View} from 'react-native';
import useWindowDimensions from '@hooks/useWindowDimensions';
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import * as StyleUtils from '@styles/StyleUtils';
import useStyleUtils from '@styles/useStyleUtils';
import BaseAutoCompleteSuggestions from './BaseAutoCompleteSuggestions';
import type {AutoCompleteSuggestionsProps} from './types';

Expand All @@ -15,6 +15,7 @@ import type {AutoCompleteSuggestionsProps} from './types';
*/

function AutoCompleteSuggestions<TSuggestion>({measureParentContainer = () => {}, ...props}: AutoCompleteSuggestionsProps<TSuggestion>) {
const StyleUtils = useStyleUtils();
const containerRef = React.useRef<HTMLDivElement>(null);
const {windowHeight, windowWidth} = useWindowDimensions();
const [{width, left, bottom}, setContainerState] = React.useState({
Expand Down
Loading
Loading