Skip to content

Commit 3993c47

Browse files
committed
Merge branch 'develop' into production
2 parents fd88944 + ea42a10 commit 3993c47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+8551
-7493
lines changed

COPYRIGHT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
All Grouptabs code is Copyright 2011 - 2018 by the original authors.
1+
All Grouptabs code is Copyright 2011 - 2020 by the original authors.
22

33
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
44

package-lock.json

Lines changed: 7510 additions & 6753 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,60 @@
1111
},
1212
"homepage": "https://grouptabs.net/",
1313
"dependencies": {
14-
"@types/jest": "^24.9.1",
15-
"@types/node": "^12.12.53",
14+
"@types/jest": "^26.0.19",
15+
"@types/node": "^14.14.13",
1616
"@types/pouchdb": "^6.4.0",
17-
"@types/react": "^16.9.43",
18-
"@types/react-dom": "^16.9.8",
19-
"@types/react-redux": "^7.1.9",
20-
"@types/react-test-renderer": "^16.9.2",
17+
"@types/react": "^17.0.0",
18+
"@types/react-dom": "^17.0.0",
19+
"@types/react-redux": "^7.1.12",
20+
"@types/react-test-renderer": "^17.0.0",
2121
"@types/redux-first-router": "^2.1.5",
22-
"@types/uuid": "^8.0.0",
23-
"debug": "^4.1.1",
24-
"husky": "^4.2.5",
25-
"jest-localstorage-mock": "^2.4.3",
26-
"lint-staged": "^10.2.11",
22+
"@types/uuid": "^8.3.0",
23+
"debug": "^4.3.1",
24+
"husky": "^4.3.6",
25+
"lint-staged": "^10.5.3",
2726
"lodash.orderby": "^4.6.0",
28-
"pouchdb": "^7.2.1",
29-
"pouchdb-adapter-memory": "^7.2.1",
27+
"pouchdb": "^7.2.2",
28+
"pouchdb-adapter-memory": "^7.2.2",
3029
"pouchdb-all-dbs": "github:xMartin/pouchdb-all-dbs#grouptabs",
31-
"prettier": "^2.0.5",
32-
"react": "^16.13.1",
33-
"react-dom": "^16.13.1",
30+
"prettier": "^2.2.1",
31+
"react": "^17.0.1",
32+
"react-dom": "^17.0.1",
3433
"react-redux": "^7.2.1",
35-
"react-scripts": "3.4.1",
36-
"react-test-renderer": "^16.13.1",
34+
"react-scripts": "4.0.0",
35+
"react-test-renderer": "^17.0.1",
3736
"redux": "^4.0.5",
3837
"redux-first-router": "^2.1.5",
3938
"redux-thunk": "^2.3.0",
4039
"reselect": "^4.0.0",
4140
"smooth-scroll": "^16.1.3",
42-
"typescript": "^3.9.7",
43-
"uuid": "^8.2.0"
41+
"typescript": "~4.0.3",
42+
"uuid": "^8.3.2",
43+
"workbox-background-sync": "^5.1.4",
44+
"workbox-broadcast-update": "^5.1.4",
45+
"workbox-cacheable-response": "^5.1.4",
46+
"workbox-core": "^5.1.4",
47+
"workbox-expiration": "^5.1.4",
48+
"workbox-google-analytics": "^5.1.4",
49+
"workbox-navigation-preload": "^5.1.4",
50+
"workbox-precaching": "^5.1.4",
51+
"workbox-range-requests": "^5.1.4",
52+
"workbox-routing": "^5.1.4",
53+
"workbox-strategies": "^5.1.4",
54+
"workbox-streams": "^5.1.4"
4455
},
4556
"scripts": {
4657
"start": "REACT_APP_GT_VERSION=`git describe HEAD` react-scripts start",
4758
"build": "REACT_APP_GT_VERSION=`git describe HEAD` react-scripts build",
4859
"pretest": "tsc",
49-
"test": "react-scripts test",
60+
"test": "LC_ALL=en_US react-scripts test",
5061
"eject": "react-scripts eject"
5162
},
5263
"eslintConfig": {
53-
"extends": "react-app"
64+
"extends": [
65+
"react-app",
66+
"react-app/jest"
67+
]
5468
},
5569
"browserslist": {
5670
"production": [

release-notes.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ description: >
33
Track expenses in a group of people!
44
55
releases:
6+
- version: 1.4.0
7+
date: 2020-12-14
8+
description: Clean URLs and smaller bugfixes and improvements
9+
improved:
10+
- Clean URLs without "#" based on HTML 5 history
11+
- Improve auto-focusing of amount inputs and new participant inputs for direct transactions
12+
fixed:
13+
- Fix not displaying direct transaction form for legacy direct transaction
14+
changed:
15+
- Update libraries, in particular Create React App to version 4 which comes with a new service worker implementation for offline support
616
- version: 1.3.1
717
date: 2020-07-26
8-
description: No changes - testing release process
18+
description: No changes - testing release process
919
- version: 1.3.0
1020
date: 2020-07-26
1121
added:
@@ -25,7 +35,7 @@ releases:
2535
date: 2020-04-07
2636
description: Bugfixes and improvements
2737
fixed:
28-
- Persist last opened tab on Android PWA (#171)
38+
- Persist last opened tab on Android PWA (#171)
2939
- Handle case of importing an already imported tab (#172)
3040
changed:
3141
- Manage state of the transaction form globally together with the rest of the app's state using Redux

src/app.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { connect, ConnectedProps } from "react-redux";
2-
import selectors from "./redux/selectors";
2+
import {
3+
getTabInfo,
4+
getTotal,
5+
getTabs,
6+
getTransactions,
7+
getAccounts,
8+
} from "./redux/selectors";
39
import {
410
navigateToTabs,
511
selectTab,
@@ -29,25 +35,25 @@ function mapStateToProps(state: AllState) {
2935
return {
3036
location: state.location,
3137
initialLoadingDone: state.app.initialLoadingDone,
32-
tabInfo: selectors.getTabInfo(state),
38+
tabInfo: getTabInfo(state),
3339
transaction: state.app.docsById[
3440
state.location.payload.transactionId
3541
] as Transaction,
36-
total: selectors.getTotal(state),
42+
total: getTotal(state),
3743
checkingRemoteTab: state.app.checkingRemoteTab,
3844
remoteTabError: state.app.remoteTabError,
3945
importingTab: state.app.importingTab,
4046
createTabInputValue: state.app.createTabInput,
4147
importTabInputValue: state.app.importTabInput,
42-
tabs: selectors.getTabs(state),
43-
transactions: selectors.getTransactions(state),
44-
accounts: selectors.getAccounts(state),
48+
tabs: getTabs(state),
49+
transactions: getTransactions(state),
50+
accounts: getAccounts(state),
4551
transactionFormState: state.app.transactionForm,
4652
error: state.app.error,
4753
};
4854
}
4955

50-
var mapDispatchToProps = {
56+
const mapDispatchToProps = {
5157
onNavigateToTabs: navigateToTabs,
5258
onCreateTabInputChange: setCreateTabInputValue,
5359
onCreateTab: createTab,

src/components/__snapshots__/directtransactioninput.test.tsx.snap

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,6 @@ exports[`renders empty 1`] = `
2929
</select>
3030
</div>
3131
</div>
32-
<div
33-
className="form-row"
34-
style={
35-
Object {
36-
"display": "none",
37-
}
38-
}
39-
>
40-
<div
41-
className="form-row-input"
42-
>
43-
<input
44-
onChange={[Function]}
45-
placeholder="Name …"
46-
type="text"
47-
value=""
48-
/>
49-
</div>
50-
</div>
5132
<div
5233
className="direct-transaction-amount"
5334
>
@@ -92,25 +73,6 @@ exports[`renders empty 1`] = `
9273
</select>
9374
</div>
9475
</div>
95-
<div
96-
className="form-row"
97-
style={
98-
Object {
99-
"display": "none",
100-
}
101-
}
102-
>
103-
<div
104-
className="form-row-input"
105-
>
106-
<input
107-
onChange={[Function]}
108-
placeholder="Name …"
109-
type="text"
110-
value=""
111-
/>
112-
</div>
113-
</div>
11476
</div>
11577
`;
11678

@@ -143,25 +105,6 @@ exports[`renders prefilled 1`] = `
143105
</select>
144106
</div>
145107
</div>
146-
<div
147-
className="form-row"
148-
style={
149-
Object {
150-
"display": "none",
151-
}
152-
}
153-
>
154-
<div
155-
className="form-row-input"
156-
>
157-
<input
158-
onChange={[Function]}
159-
placeholder="Name …"
160-
type="text"
161-
value=""
162-
/>
163-
</div>
164-
</div>
165108
<div
166109
className="direct-transaction-amount"
167110
>
@@ -206,24 +149,5 @@ exports[`renders prefilled 1`] = `
206149
</select>
207150
</div>
208151
</div>
209-
<div
210-
className="form-row"
211-
style={
212-
Object {
213-
"display": "none",
214-
}
215-
}
216-
>
217-
<div
218-
className="form-row-input"
219-
>
220-
<input
221-
onChange={[Function]}
222-
placeholder="Name …"
223-
type="text"
224-
value=""
225-
/>
226-
</div>
227-
</div>
228152
</div>
229153
`;

0 commit comments

Comments
 (0)