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

[Play] - News Feed Application #679

Merged
merged 22 commits into from
Oct 20, 2022
Merged

[Play] - News Feed Application #679

merged 22 commits into from
Oct 20, 2022

Conversation

NagarjunShroff
Copy link
Collaborator

@NagarjunShroff NagarjunShroff commented Oct 11, 2022

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)
#670

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@vercel
Copy link

vercel bot commented Oct 11, 2022

@NagarjunShroff is attempting to deploy a commit to a Personal Account owned by @reactplay on Vercel.

@reactplay first needs to authorize it.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your contribution 😊.
Please reference the issue number in the description if you are fixing a bug.
If you are implementing a feature request, please check with the maintainers that the feature will be accepted first.

@vercel
Copy link

vercel bot commented Oct 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-play ✅ Ready (Inspect) Visit Preview Oct 20, 2022 at 11:41AM (UTC)

@murtuzaalisurti
Copy link
Member

@atapas @koustov here email is shown instead of name, is it because of github or user entry?

chrome_AXkCHDBcEY

Copy link
Member

@murtuzaalisurti murtuzaalisurti left a comment

Choose a reason for hiding this comment

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

@NagarjunShroff I am getting a 426 error from the API.

chrome_wU49i7MYru

@NagarjunShroff
Copy link
Collaborator Author

@NagarjunShroff I am getting a 426 error from the API.

chrome_wU49i7MYru

@murtuzaalisurti Checking...

@atapas
Copy link
Member

atapas commented Oct 11, 2022

@atapas @koustov here email is shown instead of name, is it because of github or user entry?

chrome_AXkCHDBcEY

@NagarjunShroff Did you provide your github id while creating the play?

@NagarjunShroff
Copy link
Collaborator Author

@atapas @koustov here email is shown instead of name, is it because of github or user entry?
chrome_AXkCHDBcEY

@NagarjunShroff Did you provide your github id while creating the play?

@atapas, yes i did

@atapas
Copy link
Member

atapas commented Oct 14, 2022

Let's wrap up the review and fixes for merge.

@atapas
Copy link
Member

atapas commented Oct 18, 2022

@NagarjunShroff Have we added the API key in vercel?

@NagarjunShroff
Copy link
Collaborator Author

@NagarjunShroff Have we added the API key in vercel?

No we haven't added it - Could you please add it?

@murtuzaalisurti
Copy link
Member

@atapas api key needs to be added I guess

Copy link
Member

@murtuzaalisurti murtuzaalisurti left a comment

Choose a reason for hiding this comment

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

error on load, probably because of api key

chrome_OHapEfhFmR

@atapas
Copy link
Member

atapas commented Oct 18, 2022

Visit Preview

I remember adding it. I shall check again. Irrespective of it, we need to handle the error messages correctly!

Due to some reasons, the newsData is undefined and breaks! The reason can be anything, including there are no API keys. Let's handle the error message correctly @NagarjunShroff

 <div className="card-container">
              {newsData.length > 0 ? (
                newsData.map((news, i) => <NewsCard news={news} key={i} />)
              ) : (
                <CircularProgress />
              )}
 </div>

@koustov
Copy link
Member

koustov commented Oct 19, 2022

{"status":"error","code":"corsNotAllowed","message":"Requests from the browser are not allowed on the Developer plan, except from localhost."}

The free key cannot be used on a production server. So @NagarjunShroff what needs to be done for this play?

@NagarjunShroff
Copy link
Collaborator Author

{"status":"error","code":"corsNotAllowed","message":"Requests from the browser are not allowed on the Developer plan, except from localhost."}

The free key cannot be used on a production server. So @NagarjunShroff what needs to be done for this play?

@koustov, if APIs don't work- We can ignore it play.

@atapas
Copy link
Member

atapas commented Oct 20, 2022

@NagarjunShroff

Why shelve the hard work?

Can you repurpose it using the free API?

Here is an example: https://saurav.tech/NewsAPI/

@NagarjunShroff
Copy link
Collaborator Author

NagarjunShroff commented Oct 20, 2022

@NagarjunShroff

Why shelve the hard work?

Can you repurpose it using the free API?

Here is an example: https://saurav.tech/NewsAPI/

Thanks!!! @atapas, Sure will do it.

@NagarjunShroff
Copy link
Collaborator Author

Ready for review.

@NagarjunShroff
Copy link
Collaborator Author

@atapas Please review.

Copy link
Member

@atapas atapas left a comment

Choose a reason for hiding this comment

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

Looks good

@atapas atapas added the hacktoberfest-accepted hacktoberfest-accepted label Oct 20, 2022
@atapas atapas linked an issue Oct 20, 2022 that may be closed by this pull request
Copy link
Member

@koustov koustov left a comment

Choose a reason for hiding this comment

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

lgtm

@koustov koustov merged commit fc2b478 into reactplay:main Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Add a Play]: News feed application
6 participants