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

Add ZoneGrid component #3512

Merged
merged 23 commits into from
Nov 2, 2023
Merged

Add ZoneGrid component #3512

merged 23 commits into from
Nov 2, 2023

Conversation

TomTirapani
Copy link
Member

@TomTirapani TomTirapani commented Oct 26, 2023

See Toolbox PR: xh/toolbox#679

Hoist P/R Checklist

Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

  • Caught up with develop branch as of last change.
  • Added CHANGELOG entry, or determined not required.
  • Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
  • Updated doc comments / prop-types, or determined not required.
  • Reviewed and tested on Mobile, or determined not required.
  • Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

this.persistenceModel?.clear();

if (this.restoreDefaultsFn) {
await this.restoreDefaultsFn();
Copy link
Member

Choose a reason for hiding this comment

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

use conditional eval on 183 to match line 180?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried that, but IJ complained about it with the await

});

// 2) Ensure mapping respects configured limits
const limit = this.limits?.[zone];
Copy link
Member

Choose a reason for hiding this comment

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

I wonder about 'constraints' vs. 'limits'

/** Max number of fields that should be mapped to the zone */
max?: number;
/** Array of allowed fields for the zone */
only?: string[];
Copy link
Member

Choose a reason for hiding this comment

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

allowedFields ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Think its a better name, and happy to change, but wanted to point out that this name (and 'limits') were taken from the Sencha API.

cmp/zonedGrid/Types.ts Outdated Show resolved Hide resolved
cmp/zonedGrid/Types.ts Outdated Show resolved Hide resolved
utils/js/LangUtils.ts Outdated Show resolved Hide resolved
@TomTirapani TomTirapani changed the title Add MultiZoneGrid component Add ZoneGrid component Nov 2, 2023
@TomTirapani TomTirapani marked this pull request as ready for review November 2, 2023 14:00
onInteraction: (willOpen, e?) => {
if (isOpen && !willOpen) {
// Prevent clicks with Select controls from closing popover
const selectPortal = document.getElementById(MENU_PORTAL_ID),
Copy link
Member

Choose a reason for hiding this comment

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

yikes -- this could hit any application. Is there a way we can change select to not leak these?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, we have similar patterns in some client apps that would be great to unwind in favour of built-in protection. I'll file a ticket 👍

@lbwexler lbwexler merged commit af45ab8 into develop Nov 2, 2023
@lbwexler lbwexler deleted the multizoneGrid branch November 2, 2023 20:37
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