Skip to content

Mock data integration to web#37

Merged
WilliamHarvey97 merged 31 commits intomasterfrom
mock-data-integration-to-web
Oct 19, 2020
Merged

Mock data integration to web#37
WilliamHarvey97 merged 31 commits intomasterfrom
mock-data-integration-to-web

Conversation

@WilliamHarvey97
Copy link
Copy Markdown
Contributor

@WilliamHarvey97 WilliamHarvey97 commented Oct 18, 2020

A lot of files were modified because they were moved or their parent folder has been renamed.

Main changes performed:

  • Customize upload file button
  • Form validation when uploading a file
  • Data is coming from the server
  • Error handling

Code is hard to understand because we lack of state management. However, it should be the entire bit of logic our app will hold...

Comment thread web/package.json
Comment thread web/src/views/analyze_sleep/index.js Outdated
Comment thread web/src/views/analyze_sleep/index.js
@WilliamHarvey97 WilliamHarvey97 mentioned this pull request Oct 18, 2020
@conorato
Copy link
Copy Markdown
Contributor

Créer mock API back-end

Copy link
Copy Markdown
Contributor

@abelfodil abelfodil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le nouveau design est sick :O

Good job overall!

Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/constants.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/constants.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
William Harvey and others added 3 commits October 18, 2020 13:30
<Button
className="mt-4"
color="secondary"
href={`data:text/json;charset=utf-8,${encodeURIComponent(JSON.stringify(data.epochs))}`}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est ici pour download le fichier

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe put it in a variable to self-document it?

Copy link
Copy Markdown
Contributor

@abelfodil abelfodil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vraiment mineur, à part ça lgtm

Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
Comment thread web/src/views/analyze_sleep/upload_form/index.js Outdated
<Button
className="mt-4"
color="secondary"
href={`data:text/json;charset=utf-8,${encodeURIComponent(JSON.stringify(data.epochs))}`}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe put it in a variable to self-document it?

@WilliamHarvey97 WilliamHarvey97 merged commit ff57693 into master Oct 19, 2020
@WilliamHarvey97 WilliamHarvey97 deleted the mock-data-integration-to-web branch October 19, 2020 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants