-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
[React] Post a resource #55
Comments
@lpatmo have you seen this? |
@peoray We're using https://github.com/typicode/json-server right now, which is similar, except our DB lives in I've got most of the steps working in the branch |
Cool, will definitely take a look. Is it possible for two people to work on the same branch? |
@peoray Sorry for the late reply. Yes, it is possible for two people to work on the same branch. Since @lpatmo pushed her branch up to GitHub here https://github.com/codebuddies/react-concept/tree/issue-55, you should be able to |
I'm trying to do this but it doesn't work
Btw, my repo is up to date with the main repo |
Sorry about that. Will take a look when I get back to my computer tonight!
…On Sat, Nov 30, 2019, 9:15 AM Emmanuel Raymond ***@***.***> wrote:
I'm trying to do this but it doesn't work
***@***.***:~/Documents/code/oss/react-concept$ git checkout issue-55
error: pathspec 'issue-55' did not match any file(s) known to git
Btw, my repo is up to date with the main repo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#55>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCNXOYS2AF7ISTTTI767HTQWJYRVANCNFSM4JJP4J3Q>
.
|
@peoray Does typing |
I already have it as an upstream and I'm using |
@peoray Sorry I missed your comment! Can you share what you see when you type |
|
@peoray I think if you |
@peoray Thanks for sharing those screenshots! Can you try |
Still doesn't work. Still not sure if the issue is from my side or not. I'd love for someone else to try and see if it will work on their end |
@peoray Looking at your screenshots, you didn't quite follow exactly what @lpatmo had written. She wrote I just tested this out in my own fork. Here are the exact steps to follow to update your fork with all the branches in the upstream repo:
References: |
@peoray btw, since you asked this question:
There is actually a difference between
References: |
Thank you @wuworkshop. That was the problem. It's working now :) |
@lpatmo What do you have in mind as regards how to handle the validation? |
@peoray I'm thinking of using A relevant thread: mui/material-ui#18269 I'm actually curious if anyone else has recommendations for validation with Material-UI too! |
Okay. If this is fine with everyone, I'd like to start working on this issue |
@peoray hey do you need help to get started? We could pair on this if you'd like :) |
@sebbel that would be awesome. Just sent you a message on slack :) |
@bkbuilt and I paired on this on Twitch earlier today: https://www.twitch.tv/videos/691444610 We jotted down a couple of TODOs we'll tackle in a future pairing session, including: // TODO : // when type, store values on change // decide what happens on successful submit (redirect to created resource, alert like "congrats you submitted resource..") // validation (follow auth implementation) (as type, post-submit) // display failed submissions to the user (if not already) // test for posting to mock up successful response // ensure these are all desired fields for forms |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump because I think this is an open ongoing issue |
What: submitResource.js: - fix console errors: name missing in url component. Fixed with name in `ref` on line 172 - add defaultValues: initialState - refactor initialState - add button type submit - cleaned up db.json ResourceCard: - fix Card class -> className - update `created` PropTypes Note: this will fail if an invalid date is submitted to db.json (validation is yet to be done) Why: - No more console errors - Now generates errors on fields that are required or have validation - Submits form to populate db.json - [x] User fills out the fields and clicks on "submit", - [ ] user sees a success message - [x] User is redirected to /resources - [x] User sees the new resource they added Note: The user doesn't see a success message, because they are redirected too quickly Still to complete: - [ ] Validation - [ ] unit tests - [ ] e2e tests #55
I got on top of the bugs for this Linda @lpatmo. It still needs more work, including validation and tests to be written. |
Thanks so much for taking a look! Will take a look at the |
@tgrrr So sorry again about the confusion with the branches! I probably should have deleted |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
Mock posting a resource from https://cb-react-concept.netlify.com/submit-resource
See: https://egghead.io/lessons/javascript-creating-demo-apis-with-json-server
Describe the solution you'd like
Essentially, we need to explore making a fake POST request to the /resources API endpoint.
The text was updated successfully, but these errors were encountered: