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
Layout/datasets page #2768
Layout/datasets page #2768
Conversation
Hi @NanaKay007, thanks for the pull request! (and sorry for the delay, I was out on Friday) I'm excited to jump into this. First, I want to clarify which change I should look at. There seem to be some unrelated commits bundled into this PR; I think the I just merged If it's helpful, this was my attempt at fixing merge conflicts between your branch and |
Hi Riley. Thanks for getting back to me. I apologize for the numerous commits. The commits that need review are from 4 days ago. I have updated the pr with the changes from gsoc and resolved conflicts. I hope it fixes things. thank you. EDIT: do you think creating a new PR will fix the issue with Travis-ci checks? |
@NanaKay007, thanks for doing that! I'm still seeing 52 commits in this pull request. You can see them listed here: https://github.com/mozilla/voice-web/pull/2768/commits. I looked into it, and it appears that the
these appear to be squashed versions of the extra commits I'm seeing here. I'm not positive that this will work, but can you please try rebasing your branch onto git branch layout/datasets-page-backup
git remote add upstream git@github.com:mozilla/voice-web.git
git fetch upstream
git rebase upstream/gsoc
# If all goes well…
git push -f |
… and kiosk/datasets.tsx
@rileyjshaw |
@NanaKay007 thanks for sticking with this, I really appreciate it! Another option that you could try is: git checkout --track upstream/gsoc
git pull
git checkout -b layout/datasets-page-r2
# Replace "A" below with the first commit hash you want in the PR
# Replace "B" below with the last commit hash you want in the PR
git cherry-pick A..B
git push -fu origin layout/datasets-page The above basically starts you from scratch, then cherry-picks the commits you want reviewed. The underlying issue here (and one that will be good to know for future PRs) is that when you finally merge a PR into the upstream repository, all the commits in that PR are squashed into a single commit. When that happens, your local fork is now out of date with the In the future, when starting out on a new feature it's usually easiest to start from the upstream version. I know this is a lot, please let me know if I can explain anything better. |
8a274b0
to
7d3f7ab
Compare
@rileyjshaw |
Hey @NanaKay007, it looks like the latest squash actually undid a bunch of the changes you made in previous PRs - if you look at the files changed tab you've got a lot of reverted class names and the router is checking for a hardcoded value again. Let's debug this live during our check-in tomorrow, and then I think it'll probably make more sense to open a new PR since this one has a lot of messy history on it already. |
@rileyjshaw First of all, Thanks for taking your time to review my code :) I've worked on this page for a while, and would love some feedback concerning coding style, etc.
In demo-layout.tsx, I specify a list of routes that render the same component: Kiosk (defined in kiosk.tsx). The Kiosk component is a wrapper that defines styles for PageContent.Card and PageContent.Content components, both defined by a PageContentFactory depending on which route has been visited (the /demo/datasets and /demo/dashboard routes are handled for now).
I created two types.ts: one in pages/datasets and kiosk/. The former defines interfaces that are shared by components in pages/datasets/datasets-info.tsx and kiosk/dataset.tsx files. The latter defines types specific to kiosk components such as those in kiosk/dataset.tsx.
I am not entirely sure what the purpose of the 'Browse Languages' selector (in the Card body for the datasets page on the figma spec) is. Please let me know if there are any details concerning that. I haven't tackled page reponsiveness yet (awaiting feedback from the JZ about that).