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

[ENH] Implemented UI improvements #16

Merged
merged 29 commits into from
Feb 14, 2024
Merged

[ENH] Implemented UI improvements #16

merged 29 commits into from
Feb 14, 2024

Conversation

rmanaem
Copy link
Contributor

@rmanaem rmanaem commented Feb 5, 2024

Checklist

  • PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see https://neurobagel.org/contributing/pull_requests for more info)
  • PR links to GitHub issue with mention Closes #XXXX
  • Tests pass
  • Checks pass

For new features:

  • Tests have been added

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

@rmanaem rmanaem added the pr-minor-breaking Feature or enhancement that breaks compatibility, will increment minor version (0.+1.0) label Feb 5, 2024
@rmanaem rmanaem self-assigned this Feb 5, 2024
Copy link

netlify bot commented Feb 5, 2024

Deploy Preview for neurobagel-query ready!

Name Link
🔨 Latest commit 62ad1f8
🔍 Latest deploy log https://app.netlify.com/sites/neurobagel-query/deploys/65cce831e012ab0008a6d347
😎 Deploy Preview https://deploy-preview-16--neurobagel-query.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@surchs surchs self-requested a review February 6, 2024 17:25
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

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

Really impressive amount of work @rmanaem! Thanks a lot for that 🎉 - and sorry for the long wait for the review. Everything looks very nice, and does what it is supposed to - we'll get to the bottom of the performance issues in a future PR.

That said, I have two main things I would address:

  • stateful error handling in the QueryForm component. I think we should not keep state there and instead just compute errors based on props directly (you're doing that for some, but not all errors). See comments
  • Snackbar: I think this is a beautiful piece of code and quite a complex achievement. But as I commented inline in the App, there is an existing solution for it and by not using that we now have to maintain a complex piece of code. So I'd say: let's adopt the third party solution instead.

Let me know if you'd like me to push these changes direct to the branch. I understand that we'll have to likely fix #19 then - happy to help with that too.

Some minor comments throughout the PR, take a look

src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Show resolved Hide resolved
src/App.tsx Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
src/components/ResultContainer.tsx Outdated Show resolved Hide resolved
src/components/ResultContainer.tsx Outdated Show resolved Hide resolved
src/components/SnackStack.tsx Outdated Show resolved Hide resolved
src/components/SnackStack.tsx Outdated Show resolved Hide resolved
src/App.tsx Outdated Show resolved Hide resolved
@rmanaem rmanaem mentioned this pull request Feb 12, 2024
@rmanaem rmanaem requested a review from surchs February 13, 2024 21:04
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

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

very nice 🎉 ! Thanks @rmanaem.

One refactor suggestion, then 🧑‍🍳

src/App.tsx Outdated Show resolved Hide resolved
src/components/Navbar.tsx Show resolved Hide resolved
@rmanaem rmanaem merged commit 91905f1 into main Feb 14, 2024
4 checks passed
@rmanaem rmanaem deleted the feat-14 branch February 14, 2024 16:25
@surchs
Copy link
Contributor

surchs commented Mar 7, 2024

🚀 PR was released in v0.1.0 🚀

@surchs surchs added the released This issue/pull request has been released. label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-minor-breaking Feature or enhancement that breaks compatibility, will increment minor version (0.+1.0) released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI improvements
2 participants