Skip to content

"Fix button logic for nullable/not nullable toggle — Update button behavior for better clarity" #407

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

Merged
merged 3 commits into from
Apr 14, 2025

Conversation

R-Pavan-2503
Copy link
Contributor

@R-Pavan-2503 R-Pavan-2503 commented Apr 13, 2025

Before:
-Before the fix, the "?" button in the column settings had a confusing behavior. When it was activated (blue), it actually meant the field was "not nullable," and when deactivated (grey), it meant the field was "nullable." This reversed logic caused some confusion for users, as the button's appearance didn't match the actual field state.

Screenshot 2025-04-13 190634
Screenshot 2025-04-13 190608
Screenshot 2025-04-13 190621

After:
After the fix, the button now behaves as expected: when activated (blue), it indicates the field is "nullable," and when deactivated (grey), it indicates the field is "not nullable." This update makes the UI more intuitive, providing users with a clearer understanding of the field's state at a glance.

Screenshot 2025-04-13 190414
Screenshot 2025-04-13 190142
Screenshot 2025-04-13 190234

Copy link

vercel bot commented Apr 13, 2025

@R-Pavan-2503 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawdb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:10pm

theme={data.notNull ? "solid" : "light"}

type={data.notNull ? "tertiary" : "primary"}
title={t("Nullable")}
Copy link
Member

Choose a reason for hiding this comment

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

can you just add the 'nullable' key to en.js, and use it here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay Sure !

@R-Pavan-2503
Copy link
Contributor Author

@1ilit I have done the commented changes !

@1ilit 1ilit merged commit 4de49cb into drawdb-io:main Apr 14, 2025
4 checks passed
ewqazxc pushed a commit to ewqazxc/drawdb that referenced this pull request Apr 15, 2025
* Fix button behavior: Reverse logic for nullable/not nullable toggle

* fix: updated translation key to 'nullable' and refactored button title
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