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

Admin Generator (Future): Forward selectionProps to support implementing AssignGrid #2449

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

Conversation

Ben-Ho
Copy link
Contributor

@Ben-Ho Ben-Ho commented Aug 20, 2024

Requirement

Set selectionProps from outside to use the generated grid as select-grid (see #2428).

Solution

Simply add selection-specific props and merge with already existing dataGridProps const.

Open issues

  • AssignGrid is not used. This requires to create product-categories-page in demo-future folder

e.g. it's possible to use the generated grid as select-grid or style something
@Ben-Ho Ben-Ho requested review from nsams and johnnyomair August 20, 2024 15:31
@Ben-Ho Ben-Ho self-assigned this Aug 20, 2024
@Ben-Ho Ben-Ho force-pushed the admin-gen-configurable_forward-data-grid-props branch from 2612c3f to fa86c98 Compare August 22, 2024 07:22
@Ben-Ho Ben-Ho changed the title Admin Generator (Future): Forward dataGridProps for various reasons Admin Generator (Future): Forward selectionProps to support implementing AssignGrid Aug 22, 2024
@@ -41,7 +41,7 @@ function findQueryTypeOrThrow(queryName: string, schema: IntrospectionQuery) {
return ret;
}

export type Prop = { type: string; optional: boolean; name: string };
export type Prop = { type: string; optional: boolean; name: string; destructionAlias?: string };
Copy link
Member

Choose a reason for hiding this comment

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

destructionAlias is not used, what are the plans with it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not using it anymore. I'm removing it.

@Ben-Ho
Copy link
Contributor Author

Ben-Ho commented Oct 30, 2024

@johnnyomair I hope merge-main solves the lint-issue

@johnnyomair johnnyomair self-requested a review October 31, 2024 10:47
@Ben-Ho Ben-Ho requested a review from johnnyomair November 12, 2024 04:43
Copy link
Collaborator

@johnnyomair johnnyomair left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts.

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.

3 participants