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: Bad UI Issues in Profile Section #1025

Merged
merged 16 commits into from
Dec 5, 2023
Merged

🐛 Fix: Bad UI Issues in Profile Section #1025

merged 16 commits into from
Dec 5, 2023

Conversation

VividhPandey003
Copy link
Contributor

@VividhPandey003 VividhPandey003 commented Nov 29, 2023

Describe your changes

Before Changes:

before.changes.mov

After Changes:

after.changes.mov

Issue ticket number and link

Closes #957

Type of change

UI Changes in frontend

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

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

@VividhPandey003 VividhPandey003 changed the title 🐞Fix: Bad UI Issues in Profile Section Bug Fix: Bad UI Issues in Profile Section Nov 29, 2023
@ecurrencyhodler
Copy link
Contributor

This is great work. Thanks for posting a video. I'll assign a bounty for 300,000 sats for this.

Let's do a code review. Raph or Kev will be able to help you with the test that's failing.

@VividhPandey003
Copy link
Contributor Author

This is great work. Thanks for posting a video. I'll assign a bounty for 300,000 sats for this.

Let's do a code review. Raph or Kev will be able to help you with the test that's failing.

Sure, Thank You

Comment on lines 437 to 446
// {
// name: 'repos',
// label: 'Github Repository Links',
// widget: true,
// type: 'creatablemultiselect',
// options: [],
// note: 'Enter in this format: ownerName/repoName, (e.g. stakwork/sphinx-tribes).',
// validator: repoArrayStrValidator, // look for 1 slash
// page: 1
// },
Copy link
Contributor

Choose a reason for hiding this comment

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

@ecurrencyhodler did we want to remove this Github repo links from the profile, if so I think we should delete this instead of commenting it out

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd feel comfortable merging these changes if this was reverted back to normal

Copy link
Contributor Author

@VividhPandey003 VividhPandey003 Nov 30, 2023

Choose a reason for hiding this comment

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

okay sure, I will do the needful. Also regarding the repository links- instead of creatablemultiselect it should be text as creatablemultiselect contains the list of languages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kevkevinpal I am somewhat confused with what type the githubRepositoryLinks fields should be. Could you please help me with it

Copy link
Contributor

Choose a reason for hiding this comment

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

Hey sorry somehow I missed this. Yes let's remove github repo links because we have the github profile.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well right now I have included the github repo links section with the type as text and validator-commented out.
@ecurrencyhodler @kevkevinpal What is the final version of the about page you guys would want, with the github links section or without it.

Copy link
Contributor

Choose a reason for hiding this comment

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

There are two categories:
Github profile
Github links for a repo

Keep the github profile section but remove the github links for a repo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, so completely removing it right. And not commenting it

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah remove it. Thanks.

Copy link
Contributor Author

@VividhPandey003 VividhPandey003 Dec 1, 2023

Choose a reason for hiding this comment

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

Okay, on it. Thanks. I would remove the other dependencies of it as well right which are in aboutview.tsx. Just want to confirm if we are on the same page

also changed the type to text
@VividhPandey003
Copy link
Contributor Author

VividhPandey003 commented Nov 30, 2023

@kevkevinpal the latest commit (ec283f5)would not completely fix the problem as the validator would recognize text as not being in the correct format.
Here's what I noticed after implementing current final version
image

The approach in my head is to remove the validator and keep it as a simple text.

@kevkevinpal
Copy link
Contributor

@kevkevinpal the latest commit (ec283f5)would not completely fix the problem as the validator would recognize text as not being in the correct format. Here's what I noticed after implementing current final version image

The approach in my head is to remove the validator and keep it as a simple text.

hmm yea I think just commenting or removing the validator part would be good, that is strange

@VividhPandey003
Copy link
Contributor Author

Closing this PR/ making a new PR instead with less commits/cleaner version.

@VividhPandey003
Copy link
Contributor Author

VividhPandey003 commented Dec 1, 2023

@kevkevinpal @ecurrencyhodler @elraphty , I am facing some eslint issues while trying to commit my code. I had made a new branch and was trying to make a commit but I am not able to do it from my local. Looks like we have some unused vars.

image

Could you please help me with this.

@VividhPandey003 VividhPandey003 changed the title Bug Fix: Bad UI Issues in Profile Section 🐛 Fix: Bad UI Issues in Profile Section Dec 4, 2023
@VividhPandey003
Copy link
Contributor Author

@kevkevinpal I have made the required prettier changes. Could you please review the code once.
Thanks

@ecurrencyhodler
Copy link
Contributor

@VividhPandey003 can you post one more screenshot of what the final UI looks like? Thanks.

@VividhPandey003
Copy link
Contributor Author

Here @ecurrencyhodler

after.changes.4dec.mov

@ecurrencyhodler
Copy link
Contributor

@VividhPandey003 I see a small text/alignment issue with github. Rather than the url, let's just simply display the word "Github".
Screenshot 2023-12-04 at 10 27 49 AM

@VividhPandey003
Copy link
Contributor Author

@VividhPandey003 I see a small text/alignment issue with github. Rather than the url, let's just simply display the word "Github". Screenshot 2023-12-04 at 10 27 49 AM

sure so a follow up doubt on this.

the pretext github dot com should not be displayed when the input is not active. i.e when I click to enter my github id then only it should display github dot com / userid

@ecurrencyhodler
Copy link
Contributor

Yes that's correct. It doesn't show the url when it is not active. But when I click on the box, the url should appear.

@VividhPandey003
Copy link
Contributor Author

@ecurrencyhodler . Done with the required changes. My latest commit fixes the github link issue as well

fixed.github.prepend.text.mov

Signed-off-by: Vividh Pandey <[email protected]>
@ecurrencyhodler
Copy link
Contributor

Great job. LGTM. Let's get a code review.

@kevkevinpal kevkevinpal merged commit 12bd3e4 into stakwork:master Dec 5, 2023
5 checks passed
@ecurrencyhodler
Copy link
Contributor

Tested and it looks great! Paying you out now.

@VividhPandey003 VividhPandey003 deleted the fix-bad-ui branch December 20, 2023 12:48
@VividhPandey003 VividhPandey003 restored the fix-bad-ui branch December 20, 2023 12:49
@VividhPandey003 VividhPandey003 deleted the fix-bad-ui branch December 20, 2023 12:51
elraphty pushed a commit that referenced this pull request Jan 26, 2024
* Removed Github Repository Links Section

Signed-off-by: Vividh Pandey <[email protected]>

* Fixed overlay of tribes section

Signed-off-by: Vividh Pandey <[email protected]>

* Fixed: pretext and input text to be on same y-axis

Signed-off-by: Vividh Pandey <[email protected]>

* Fixed default width of form components

Signed-off-by: Vividh Pandey <[email protected]>

* Fixed Github Repository Links Area

also changed the type to text

* Commented Validator temporarily

* Update interfaces.ts

* Update schema.ts

* Update AboutFocusView.tsx

* Update AboutView.tsx

* Update schema.ts

* Prettier ReRun

Signed-off-by: Vividh Pandey <[email protected]>

* Fixed Prepend Text for text inputs

Signed-off-by: Vividh Pandey <[email protected]>

* Fixed Prettier Checks

Signed-off-by: Vividh Pandey <[email protected]>

---------

Signed-off-by: Vividh Pandey <[email protected]>
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.

Fix bad UI in profile section
3 participants