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

Fix issue of button not disabled while adding todo without title #249

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ayusht2810
Copy link
Contributor

Summary

  • Fix issue of button not disabled while adding todo without title
  • Added disabled prop in the button

Screenshot

image

Ticket Link

Fixes #216

Checklist

  • Completed dev testing
  • make test Ran test cases and ensured they are passing
  • make check-style Ran style check and ensured both webapp and server pass the checks

@ayusht2810 ayusht2810 self-assigned this Apr 11, 2024
@ayusht2810 ayusht2810 added the 2: Dev Review Requires review by a core committer label Apr 11, 2024
@@ -143,7 +143,7 @@ export default class AddIssue extends React.PureComponent {
<React.Fragment>
<TextareaAutosize
style={style.textareaResizeMessage}
placeholder='Enter a title'
placeholder='Enter a title *'
Copy link
Contributor

Choose a reason for hiding this comment

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

We usally want the asterisk to be red or probably error-text class in this case. Also this should be a hint and not placeholder right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mickmister The TextareaAutosize component doesn't have any hint prop in it. Also, the placeholder only supports string type, that's why we were not able to update the color.
Should we add a label element and add stylings to support this?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's an external library we're using here. If it's not trivial to change the color of the asterisk, then maybe we just don't use an asterisk here. @asaadmahmood What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

@asaadmahmood Gentle reminder for this

Copy link
Contributor

Choose a reason for hiding this comment

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

@asaadmahmood Gentle reminder for this

Copy link
Contributor

Choose a reason for hiding this comment

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

@ayusht2810 We can get rid of the asterik, the button is disabled, its fine that the title needs to be entered.

@asaadmahmood asaadmahmood self-requested a review July 18, 2024 09:07
Copy link
Contributor

@asaadmahmood asaadmahmood left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty ToDo section in RHS closes on saving without any error
4 participants