Skip to content

dismiss editcard pressing Escape #2464

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

Merged
merged 6 commits into from
Apr 28, 2025
Merged

Conversation

jomcarvajal
Copy link
Contributor

@jomcarvajal jomcarvajal commented Apr 15, 2025

CORE-806

  • Escape hides focused EditCard
  • Enter shows foucesed EditCard
  • Tab shows all hidden cards (reset state)
  • OnBlur shows all hidden cards (reset state)

@jomcarvajal jomcarvajal requested a review from a team as a code owner April 15, 2025 20:14
@jomcarvajal jomcarvajal requested a review from Dantemss April 15, 2025 20:14
@TomWoodward TomWoodward temporarily deployed to rex-web-core-806-conten-qrpgzp April 15, 2025 20:14 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-core-806-conten-qrpgzp April 15, 2025 20:15 Inactive
@jomcarvajal
Copy link
Contributor Author

@Dantemss any idea why ci:test:ci:build is failling? As far as I kno, I haven't touched anything related with the timeout is showing

@Dantemss
Copy link
Member

@Dantemss any idea why ci:test:ci:build is failling? As far as I kno, I haven't touched anything related with the timeout is showing

@jomcarvajal it could be something is throwing an error on the page or something like that. See if you can get the test to open in a browser in debug mode, or take a screenshot and see what is being rendered.

@jomcarvajal
Copy link
Contributor Author

jomcarvajal commented Apr 21, 2025

@Dantemss any idea why ci:test:ci:build is failling? As far as I kno, I haven't touched anything related with the timeout is showing

@jomcarvajal it could be something is throwing an error on the page or something like that. See if you can get the test to open in a browser in debug mode, or take a screenshot and see what is being rendered.

@Dantemss seems like prevent default behavior of Enter inside CardWrapper was causing problems with SearchResultsSidebar. Should be working now! In any case, could be great to review comments from card to have a better idea of this change.

Copy link
Member

@Dantemss Dantemss left a comment

Choose a reason for hiding this comment

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

I apparently had a comment here that was pending

export const editCardVisibilityHandler = (state: Map<string, boolean>, action: { type: string; id?: string }) => {
switch (action.type) {
case 'SHOW': {
if (!action.id) return state;
Copy link
Member

Choose a reason for hiding this comment

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

This does nothing without an action.id right? Maybe it should throw?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The thing is editCardVisibilityHandler will be part of CardWrapper so they are other interactive elements without action.id that can enter inot this code so throwing it would cause more troubles. That's why I just returned the state

@Dantemss Dantemss temporarily deployed to rex-web-core-806-conten-cm6ts4 April 28, 2025 20:34 Inactive
@jomcarvajal jomcarvajal requested a review from Dantemss April 28, 2025 20:42
@jomcarvajal jomcarvajal merged commit 24b2ef6 into main Apr 28, 2025
8 checks passed
@jomcarvajal jomcarvajal deleted the CORE-806-content-dissmisable branch April 28, 2025 21:17
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