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

Typing grid UI store #15249

Merged
merged 16 commits into from
Dec 31, 2024
Merged

Typing grid UI store #15249

merged 16 commits into from
Dec 31, 2024

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Dec 27, 2024

Description

Typing grid UI store

Copy link

qa-wolf bot commented Dec 27, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/m labels Dec 27, 2024
@adrinr adrinr changed the base branch from master to typing/stores-grid-menu December 27, 2024 08:35
@adrinr adrinr requested a review from aptkingston December 30, 2024 10:51
@@ -2,6 +2,7 @@ import { UITable, UIView } from "@budibase/types"

export type UIDatasource = (UITable | UIView) & {
type: string
rowHeight?: number
Copy link
Member

Choose a reason for hiding this comment

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

This is a nice find by typescript! This is supposed to be saved in the real view definition but right now it is being dropped when the grid tries to save it. So this is not intended to be a UI-only field - it's intended to be in the real ViewV2 type (but not tables as we don't allow customising row height in tables any more).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's true. Added the field to the doc, so it can get persisted. I don't really like that being a plain field in the view, but it works for now

Copy link
Member

Choose a reason for hiding this comment

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

Yea agreed. Something that would probably be better suited to be inside some uiMetadata object etc, but for backwards compat we'll probably have to live with this one.

Base automatically changed from typing/stores-grid-menu to master December 30, 2024 13:57
@adrinr adrinr requested a review from a team as a code owner December 30, 2024 20:50
@adrinr adrinr requested review from mike12345567 and removed request for a team December 30, 2024 20:50
@adrinr adrinr requested a review from aptkingston December 30, 2024 21:17
@adrinr adrinr enabled auto-merge December 31, 2024 10:23
@adrinr adrinr disabled auto-merge December 31, 2024 10:24
@adrinr adrinr merged commit 76cab74 into master Dec 31, 2024
20 checks passed
@adrinr adrinr deleted the typing/stores-grid-ui branch December 31, 2024 10:24
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants