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

feat: enabled manual height adjustment for bounty description box #1299

Conversation

jordan-ae
Copy link
Contributor

Describe your changes

enabled manual height adjustment for bounty description box

Issue ticket number and link: #1148

Preview

https://www.loom.com/share/9a26a03ecaf94ad0bdc2d1d222933f4f?sid=803ca758-716e-4ca4-a4e4-fc498fae871d

Type of change

Feature

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested on Chrome and Firefox
  • I have provided a screenshot or recording of changes in my PR if there were updates to the frontend

@ecurrencyhodler
Copy link
Contributor

Great work. Screenshot looks good. All checks passed. Let's do a code review.

@@ -444,8 +444,9 @@ function Form(props: FormProps) {
.map((item: FormField) => (
<Input
{...item}
type={item.name === 'description' ? 'textarea' : item.type}
Copy link
Contributor

@kevkevinpal kevkevinpal Jan 10, 2024

Choose a reason for hiding this comment

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

instead of cheking item.name === 'description' twice lets define it as a boolean above and use it in the 3 places

@@ -97,7 +97,7 @@ export default function TextAreaInput({
}}
className={active ? 'euiFormRow_active' : (value ?? '') === '' ? '' : 'euiFormRow_filed'}
border={borderType}
label={labeltext}
label={labeltext === 'Description' ? `${labeltext} *` : labeltext}
Copy link
Contributor

Choose a reason for hiding this comment

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

we should try to keep logic that is not related to the common component out of here

@jordan-ae
Copy link
Contributor Author

@kevkevinpal alright!

@ecurrencyhodler
Copy link
Contributor

All checks pass. Great job. @elraphty let's get a code review.

@elraphty
Copy link
Contributor

@okhot I can't seem to increase the description height on my chrome browser on Mac Loom Video

@jordan-ae
Copy link
Contributor Author

@elraphty Thanks for the Mac testing. Could you please double-check if you are testing the correct branch? Unfortunately, I don't have access to a Mac for detailed investigation. Any specific logs you provide will be helpful. Thanks

@elraphty
Copy link
Contributor

@okhot it works on firefox, but doesn't work on chrome Loom Video, make it work on chrome.

@jordan-ae
Copy link
Contributor Author

@elraphty
Copy link
Contributor

@elraphty Here's a demo on Chrome https://www.loom.com/share/832a381e81c1408d9c80c99b046761af?sid=6140fa11-93aa-44c5-9d6e-bff20092d486

It doesn't work on Mac's chrome, I think you have to make some research regarding this

@jordan-ae
Copy link
Contributor Author

@elraphty
Copy link
Contributor

@elraphty Here's a demo on Mac https://www.loom.com/share/17cde2490a9441ac85c90bdd4c488f33?sid=92bfe385-bb17-4018-b34e-41125778f133

Nice Job @okhot, I tested it on my Chrome Mac and it works now. I'm merging right away.

@elraphty elraphty merged commit 1732605 into stakwork:master Jan 19, 2024
5 checks passed
@ecurrencyhodler
Copy link
Contributor

tested and it works. GJ! Paid!

elraphty added a commit that referenced this pull request Jan 26, 2024
…or-bounty-description-box

feat: enabled manual height adjustment for bounty description box
elraphty added a commit that referenced this pull request Jan 26, 2024
…or-bounty-description-box

feat: enabled manual height adjustment for bounty description box
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.

None yet

4 participants