Skip to content

dbeaver/pro#5394 feat: null and boolean formatter for base grid#3359

Merged
Wroud merged 9 commits intodevelfrom
feat/dbeaver/pro#5394/null-boolean-formatters
Apr 9, 2025
Merged

dbeaver/pro#5394 feat: null and boolean formatter for base grid#3359
Wroud merged 9 commits intodevelfrom
feat/dbeaver/pro#5394/null-boolean-formatters

Conversation

@Wroud
Copy link
Copy Markdown
Member

@Wroud Wroud commented Apr 2, 2025

closes dbeaver/pro#5394

@Wroud Wroud requested a review from SychevAndrey April 2, 2025 15:46
@Wroud Wroud self-assigned this Apr 2, 2025
SychevAndrey
SychevAndrey previously approved these changes Apr 2, 2025
Comment thread common-react/@dbeaver/react-data-grid/src/DataGrid.css

export function NullFormatter({ className, onClick }: Props) {
return (
<span className={clsx(styles['nullValue'], className)} onClick={onClick}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

don't we want to use tailwind for that kind of styling (simple)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good idea

return <NullFormatter className={className} onClick={onClick} />;
}
return (
<div style={{ textAlign: 'right' }} className={className} onClick={onClick}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not css module, but inline styles. It's better to use tailwind here as well

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good idea

Comment on lines +9 to +10
"./*.css": "./src/*.css",
"./*": "./lib/*.js"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why should we expose inner js files? Everything needed exported from index.js. And *.css basically the index.css, we can define it here strictly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

agree

@SychevAndrey SychevAndrey self-requested a review April 8, 2025 10:16
@Wroud Wroud merged commit 9c3cc17 into devel Apr 9, 2025
4 of 5 checks passed
@Wroud Wroud deleted the feat/dbeaver/pro#5394/null-boolean-formatters branch April 9, 2025 07:06
kkapper pushed a commit to PlaidCloud/cloudbeaver that referenced this pull request Apr 18, 2025
…ver#3359)

* dbeaver/pro#5394 feat: null and boolean formatter for base grid

* feat: reuse base grid formatters

* chore: try to adjust workflow concurrency

* chore: trigger workflow

* chore: trigger workflow cancel

* chore: fix label styles

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
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