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

refactor database structure search modal #2508

Merged
merged 4 commits into from
Oct 23, 2023
Merged

Conversation

wadjih-bencheikh18
Copy link
Member

refs : #1537

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: cb01fd8
Status: ✅  Deploy successful!
Preview URL: https://eb2314a3.nmrium.pages.dev
Branch Preview URL: https://database-structure-modal.nmrium.pages.dev

View logs

Copy link
Member

@targos targos left a comment

Choose a reason for hiding this comment

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

Please compare with the current version on https://dev.nmrium.org

  • Modal title isn't nice (there's a grey background only around the text)
  • Molecule editor is cropped

CleanShot 2023-07-11 at 15 38 29

@targos
Copy link
Member

targos commented Jul 11, 2023

Also, this shouldn't be implemented as a modal, because the results are displayed live in the Database panel while you edit the molecule.

I will discuss this with @lpatiny to suggest a replacement.

@targos targos marked this pull request as draft July 13, 2023 12:47
@targos targos added the blocked label Jul 13, 2023
@targos
Copy link
Member

targos commented Jul 13, 2023

We will keep this on hold for now. @wadjih-bencheikh18 feel free to migrate other uses of Modal.

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (00ac175) 53.46% compared to head (cb01fd8) 53.46%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2508   +/-   ##
=======================================
  Coverage   53.46%   53.46%           
=======================================
  Files          50       50           
  Lines        2450     2450           
  Branches       88       88           
=======================================
  Hits         1310     1310           
  Misses       1139     1139           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@targos targos force-pushed the database-structure-modal branch from 2872ecb to 643cf27 Compare August 8, 2023 09:47
@lpatiny lpatiny added blocked and removed blocked labels Aug 11, 2023
@lpatiny
Copy link
Member

lpatiny commented Aug 11, 2023

@targos So the current idea is that we have a large Modal that also display the selected molecule 'live'. Is this correct ?

But what will happen when we draw the molecule. Will the panel be filtered live as well ? (and we can see it being filtered in the greyed panel ?

image

@targos
Copy link
Member

targos commented Aug 11, 2023

I don't understand what you mean by " display the selected molecule 'live'."

@lpatiny lpatiny removed the blocked label Aug 17, 2023
@lpatiny
Copy link
Member

lpatiny commented Aug 17, 2023

For now we will loose the interaction and we should merge this PR.

Please rebase the project to have a final check ?

@wadjih-bencheikh18
Copy link
Member Author

Please compare with the current version on https://dev.nmrium.org

Design fixed
image

@wadjih-bencheikh18 wadjih-bencheikh18 marked this pull request as ready for review August 18, 2023 09:13
Copy link
Member

@lpatiny lpatiny left a comment

Choose a reason for hiding this comment

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

Functionality is ok for me.

@lpatiny lpatiny requested a review from stropitek August 18, 2023 12:04
@targos
Copy link
Member

targos commented Oct 19, 2023

There's a conflict.

@wadjih-bencheikh18
Copy link
Member Author

There's a conflict.

Conflict solved

@targos targos merged commit 41c1657 into main Oct 23, 2023
13 checks passed
@targos targos deleted the database-structure-modal branch October 23, 2023 08:05
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.

4 participants