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

Hoc loading error states #1589

Merged
merged 62 commits into from
May 14, 2019
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
4003180
Render page header and styles for Loading and Error states
sareh Mar 28, 2019
a29d3d2
Merge remote-tracking branch 'origin' into loading-state-mvp
sareh Mar 28, 2019
a521a30
Add snapshot unit tests for loading and error states
sareh Mar 28, 2019
2eee026
Change order of contexts & styles to enable reusability of the Contai…
sareh Mar 29, 2019
384dffa
Ensure Error and Loading states have the consent banner - so require …
sareh Mar 29, 2019
e1e6ead
Merge branch 'latest' into loading-state-mvp
sareh Mar 29, 2019
e885f23
Merge branch 'latest' into loading-state-mvp
sareh Mar 29, 2019
94a23e2
Merge branch 'latest' into loading-state-mvp
sareh Apr 1, 2019
1dabe93
Move check for articleData
sareh Apr 1, 2019
181436f
ensure bbcOrigin prop is optional
sareh Apr 1, 2019
1dd8747
Update snapshot
sareh Apr 1, 2019
593d1cd
Merge branch 'latest' into loading-state-mvp
sareh Apr 1, 2019
eeaa1d8
Move deconstruction to start
sareh Apr 1, 2019
a280405
Merge branch 'latest' into loading-state-mvp
sareh Apr 2, 2019
364d785
Merge branch 'latest' into loading-state-mvp
Apr 3, 2019
cbcc48e
Merge branch 'latest' into loading-state-mvp
sareh Apr 9, 2019
e0c0b67
Merge branch 'latest' into loading-state-mvp
thekp Apr 11, 2019
d279e8a
add default props for article wrapper and try/catch for data validator
Apr 11, 2019
78dde63
update snapshots
Apr 11, 2019
9570f1e
Merge branch 'latest' of github.com:bbc/simorgh into loading-state-mvp
Apr 11, 2019
3aedf7a
Merge branch 'loading-state-mvp' of github.com:bbc/simorgh into loadi…
Apr 11, 2019
ec150ac
testing the idea of using HOC for sahred Loading and error states
Apr 12, 2019
73884aa
Move page wrapper to /Layouts, add withData HOC
Apr 12, 2019
ca05e68
Remove imported hooks
Apr 12, 2019
f08c70f
Remove ES5 function syntax
Apr 14, 2019
0fa47e0
Return default error component with 500 status
Apr 14, 2019
b460c3d
Updsting withData HOC
Apr 15, 2019
7e63db8
Merge remote-tracking branch 'origin/latest' into hoc-loading-error-s…
Apr 15, 2019
3d7b577
Updating withData HOC
Apr 15, 2019
8c2945b
Add snapshot tests for new HOC components
Apr 16, 2019
081344f
Merge branch 'latest' of github.com:bbc/simorgh into hoc-loading-erro…
Apr 16, 2019
4e73424
Add compose to helpers dir and refference the author
Apr 16, 2019
ffef5dd
use full render instead of shallow render
Apr 16, 2019
8f9c3c5
Remove recompose dependancy
Apr 16, 2019
f2b39dc
use correct case for naming imports
Apr 17, 2019
06ebe4d
Fixing missing isAmp prop and updating snapshots
Apr 23, 2019
f9ec31f
Merge branch 'latest' of github.com:bbc/simorgh into hoc-loading-erro…
Apr 23, 2019
7a1773a
Update snapshots and use deepget to get status or define a default
Apr 23, 2019
6cb338f
Merge branch 'latest' into hoc-loading-error-states
Apr 23, 2019
b84f0f6
reduce error checking complexity around the data object
Apr 23, 2019
19297a9
Merge branch 'hoc-loading-error-states' of github.com:bbc/simorgh int…
Apr 23, 2019
901eb4d
Merge branch 'latest' of github.com:bbc/simorgh into hoc-loading-erro…
Apr 23, 2019
d8367b7
Add method to return true if assetData and 200 status is returned
Apr 23, 2019
04702ff
Updating snapshots
Apr 23, 2019
56c99f5
Move proptypes outside of the component they check
Apr 24, 2019
bcd80fd
Removing unused import
Apr 24, 2019
752ff16
Merge branch 'latest' into hoc-loading-error-states
Apr 24, 2019
7247ef4
Remove default prop for BBCOrigin and set as required
Apr 24, 2019
dd679ce
Update src/app/containers/PageHandlers/withPageWrapper.jsx
Apr 24, 2019
db7805c
Update src/app/containers/PageHandlers/withPageWrapper.jsx
Apr 24, 2019
6859597
Updating snapshots
Apr 24, 2019
6748371
Merge branch 'hoc-loading-error-states' of github.com:bbc/simorgh int…
Apr 24, 2019
3726919
Update src/app/containers/PageHandlers/withData.jsx
Apr 25, 2019
deedd19
Update ArticleContainer tests with mocks of HOC
Apr 29, 2019
33c3bf2
merged in latest and fixed conflicts
Apr 29, 2019
e22b30d
Merge branch 'hoc-loading-error-states' of github.com:bbc/simorgh int…
Apr 29, 2019
86d7f77
remove unneeded if statement
Apr 29, 2019
3604057
Remove isRequired for bbcOrigin prop
Apr 29, 2019
41e9a35
Merge branch 'latest' into hoc-loading-error-states
Apr 29, 2019
5f64100
Merge in latest and refactor to use pageData, isAmp and service values
May 11, 2019
0a15398
Merge branch 'latest' into hoc-loading-error-states
jamesbrumpton May 13, 2019
824571d
Merge branch 'latest' into hoc-loading-error-states
May 14, 2019
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
35 changes: 23 additions & 12 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"react-helmet": "^5.2.0",
"react-router-config": "^4.4.0-beta.6",
"react-router-dom": "^4.3.1",
"recompose": "^0.30.0",
chris-hinds marked this conversation as resolved.
Show resolved Hide resolved
"speculate": "^1.7.4",
"styled-components": "^4.1.3",
"styled-normalize": "^8.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/app/containers/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class App extends Component {
loading: false,
error: null,
loadInitialDataPromise: null,
};
};
}

async componentDidUpdate({ location: prevLocation }) {
Expand Down
Loading