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

🔨 (grapher) refactor modals and entity selector #3490

Merged
merged 1 commit into from
May 3, 2024

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Apr 15, 2024

Cycle 2024.2: Entity selector | Designs

Background

  • Modals used to come with a sticky header with a title and a close button, making the content area scrollable by default.
  • This was convenient when our modals were relatively simple but started breaking down first for the Sources modal (where we need a sticky header on smaller screens only) and then for the entity selector (where we have some more sticky content on the top and bottom)
  • For the entity selector in particular, making the entity selector work with the current <Modal /> implementation led to a number of bugs that were difficult to get rid of (1px of text surfacing above the search input, the scrollbar hidden behind the footer)

Summary

  • Makes the <Modal />, <SlideInDrawer /> and <SidePanel /> into unopinionated container components that render their children – and nothing else
  • Content that is rendered into a modal/drawer/panel is then responsible for making itself scrollable (if necessary)

SVG tester

The SVG tester fails due to the changes in #3373

@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 182bd44 to 28a40e3 Compare April 15, 2024 09:03
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 9f0beaa to a8b4116 Compare April 15, 2024 09:03
@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 28a40e3 to 0deb912 Compare April 15, 2024 12:20
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch 3 times, most recently from 433b335 to e68c6a0 Compare April 15, 2024 16:10
@sophiamersmann sophiamersmann marked this pull request as ready for review April 15, 2024 16:12
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch 2 times, most recently from 7d24df2 to d269e5d Compare April 16, 2024 12:44
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from d269e5d to 6efe51d Compare April 16, 2024 16:01
@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 0deb912 to ae2c1d3 Compare April 17, 2024 10:35
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 6efe51d to 50a056f Compare April 17, 2024 10:35
@sophiamersmann sophiamersmann mentioned this pull request Apr 17, 2024
11 tasks
Copy link
Member

@marcelgerber marcelgerber left a comment

Choose a reason for hiding this comment

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

Nice! What a bunch of work to fix these annoying issues...

@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from ae2c1d3 to 4c54ffd Compare April 18, 2024 08:09
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 50a056f to 5694f41 Compare April 18, 2024 08:09
@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 4c54ffd to c40d2b4 Compare April 26, 2024 12:23
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 5694f41 to f6b54b6 Compare April 26, 2024 12:23
@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from c40d2b4 to 705194c Compare April 26, 2024 17:03
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from f6b54b6 to 89c7dc6 Compare April 26, 2024 17:03
@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 705194c to 4f2c915 Compare May 1, 2024 13:07
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 89c7dc6 to 7cd848d Compare May 1, 2024 13:07
@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 4f2c915 to 354fcd8 Compare May 2, 2024 14:03
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 7cd848d to 674214b Compare May 2, 2024 14:03
Copy link
Member Author

sophiamersmann commented May 3, 2024

Merge activity

@sophiamersmann sophiamersmann force-pushed the entity-selector-external-sort branch from 354fcd8 to 8004a9d Compare May 3, 2024 08:18
Base automatically changed from entity-selector-external-sort to master May 3, 2024 08:22
@sophiamersmann sophiamersmann force-pushed the refactor-entity-selector branch from 674214b to f54fd14 Compare May 3, 2024 08:23
@sophiamersmann sophiamersmann merged commit a484995 into master May 3, 2024
11 of 17 checks passed
@sophiamersmann sophiamersmann deleted the refactor-entity-selector branch May 3, 2024 08:24
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.

2 participants