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

[WC-2773]: Focus lost on change #1421

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

iobuhov
Copy link
Collaborator

@iobuhov iobuhov commented Feb 3, 2025

Pull request type

Dependency changes (any modification to dependencies in package.json)

Refactoring (e.g. file rename, variable rename, etc.)

Bug fix (non-breaking change which fixes an issue)

Breaking change (fix or feature that would cause existing functionality to change)


Description

This PR finally extract grid header from body. This change how scroll is implemented. Also this PR fixes issue with loosing focus in DG filters.

What should be covered while testing?

  • Personalization (just attribute)
  • Export
  • Loading indicators
  • Focus in filters

@iobuhov iobuhov requested a review from a team as a code owner February 3, 2025 08:56
@iobuhov iobuhov force-pushed the feat/wc-2718/migrate-dropdown-to-downshift branch from 09d8da6 to d715198 Compare February 4, 2025 08:28
@iobuhov iobuhov force-pushed the fix/WC-2773/focus-lost-on-change branch from d7bf96e to a217f74 Compare February 4, 2025 08:34
@iobuhov iobuhov force-pushed the feat/wc-2718/migrate-dropdown-to-downshift branch from d715198 to 7416042 Compare February 4, 2025 09:14
@iobuhov iobuhov force-pushed the fix/WC-2773/focus-lost-on-change branch 3 times, most recently from c5c2966 to 6142d4e Compare February 6, 2025 14:49
@iobuhov iobuhov changed the title [WIP] wc 2773/focus lost on change [WIP][WC-2773]: Focus lost on change Feb 10, 2025
@iobuhov iobuhov force-pushed the feat/wc-2718/migrate-dropdown-to-downshift branch 2 times, most recently from ed2f582 to 130575f Compare February 12, 2025 10:36
Base automatically changed from feat/wc-2718/migrate-dropdown-to-downshift to main February 12, 2025 10:51
@iobuhov iobuhov force-pushed the fix/WC-2773/focus-lost-on-change branch from 0365d58 to 9f2af4c Compare February 13, 2025 08:37
@iobuhov iobuhov changed the title [WIP][WC-2773]: Focus lost on change [WC-2773]: Focus lost on change Feb 13, 2025
isInfinite,
setPage
});
const baseClass = "widget-datagrid-grid-body table-content";
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see only one usage of this const, I guess we can inline it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

return this.refreshing;
}

get isLoadingMore(): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can possibly replace Loading word in the name of this field. I am thinking we can use Fetching instead: isFetching, isFetchingNextPage, isFetchingNextBatch or something.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like isFetching, short and not very specific

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@rahmanunver
Copy link
Contributor

Are mobx changes here because of rebase?

@iobuhov
Copy link
Collaborator Author

iobuhov commented Feb 14, 2025

Are mobx changes here because of rebase?

No, the mobx-kit is introduced in this PR

@iobuhov iobuhov force-pushed the fix/WC-2773/focus-lost-on-change branch from 1562408 to 9d3cab3 Compare February 14, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants