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

Buttons tooltips anchor tags migration to chakraUI #715

Merged
merged 34 commits into from
Feb 7, 2025

Conversation

Dishant1804
Copy link
Collaborator

@Dishant1804 Dishant1804 commented Feb 2, 2025

Resolves #645

Migrated all the tooltips, buttons and anchor tags to equivalent chakraUI components

@Dishant1804
Copy link
Collaborator Author

@arkid15r I've migrated the necessary components mentioned in the issue. Please review it and let me know if any changes are required :)

@Dishant1804 Dishant1804 changed the title Buttons tooltips anchor migration Buttons tooltips anchor tags migration to chakraUI Feb 2, 2025
@github-actions github-actions bot added the schema label Feb 3, 2025
kasya
kasya previously requested changes Feb 3, 2025
Copy link
Collaborator

@kasya kasya left a comment

Choose a reason for hiding this comment

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

Overall great migration! Thank you for updating these!

One issue I noticed:
in the light mode when some buttons in focus state now have this dark border (that is also kind of a pixel off the actual border 🤔 ). Can we get rid of this?

I found two instances of this, but there might be more. Ones that I found are on the User details page and on the issue details modal.
Screenshot 2025-02-02 at 6 49 08 PM
Screenshot 2025-02-02 at 6 49 21 PM

@Dishant1804
Copy link
Collaborator Author

Overall great migration! Thank you for updating these!

One issue I noticed:
in the light mode when some buttons in focus state now have this dark border (that is also kind of a pixel off the actual border 🤔 ). Can we get rid of this?

I found two instances of this, but there might be more. Ones that I found are on the User details page and on the issue details modal.
Screenshot 2025-02-02 at 6 49 08 PM
Screenshot 2025-02-02 at 6 49 21 PM

Yess @kasya thank you for suggesting the changes, I'll go to the root of this issue, but for now it seems like the default chakraUI button recipe is causing this focus ring effect, I'll fix that :)

Copy link
Collaborator

@harsh3dev harsh3dev left a comment

Choose a reason for hiding this comment

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

LGTM
Please take care of conflicts and comments from other reviewers.
Thanks

Dishant1804 and others added 5 commits February 3, 2025 12:21
* base_design

* Add types and apply corrections.

* Improvement

* cleanup

* added issue label

* fixes

* pre-commit

---------

Co-authored-by: Kate Golovanova <[email protected]>
* Addition of Contribute Section in Home of Slack NestBot

* Update contribute.py

* Update of apps/slack/commands/contribute

* Minor changes

* Update of code after the review

* Update backend/apps/slack/commands/contribute.py

Co-authored-by: Nitin Awari <[email protected]>

* Update urls.py

* Update contribute.py

* Update code

---------

Co-authored-by: Nitin Awari <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
@Dishant1804 Dishant1804 requested a review from kasya February 3, 2025 08:14
@Dishant1804
Copy link
Collaborator Author

Overall great migration! Thank you for updating these!

One issue I noticed: in the light mode when some buttons in focus state now have this dark border (that is also kind of a pixel off the actual border 🤔 ). Can we get rid of this?

I found two instances of this, but there might be more. Ones that I found are on the User details page and on the issue details modal. Screenshot 2025-02-02 at 6 49 08 PM Screenshot 2025-02-02 at 6 49 21 PM

@kasya I've made the suggested changes now there is no focus rings on the mentioned buttons, please review it :)

@Dishant1804
Copy link
Collaborator Author

@kasya @Rajgupta36 @arkid15r I've made all the changes suggested by the reviewers, please let me know if we need more changes (if any) :)

@Dishant1804
Copy link
Collaborator Author

Dishant1804 commented Feb 4, 2025

image This error appears in both normal and incognito modes. Can anyone verify it, please?

@Rajgupta36 i went deep into this issue and researched about it, here's what i found out:

  • The deprecation error we are encountering is due to the browser, the browsers now expect the libraries to use :state(bg-currentcolor) instead of --bg-currentcolor syntax.
  • The deprecation will be solved once the chakraUI library migrates their internal implementation
  • Also people using various libraries are facing the same issue we can check out reference here , here and here
  • Devs at chakraUI have already started working on it we can check it here

The deprecation will be automatically resolved in upcoming version changes of chakraUI, correct me if i am wrong. I've just presented what i researched about

@arkid15r
Copy link
Collaborator

arkid15r commented Feb 6, 2025

@Dishant1804 my understanding we can merge this after resolving the conflicts?

arkid15r and others added 17 commits February 7, 2025 10:12
* Addition of website attribute to project schema

* Update vite.config.ts

* Update website-empty.yaml

* Update website-none.yaml

* Update website-none.yaml

* Update website-empty.yaml

* Update website-none.yaml

* Update website-empty.yaml

* Update website-empty.yaml

* Update project_test.py

* Update project.json

* Delete schema/tests/data/project/negative/website-empty.yaml

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
* added blog attribute to project schema

* added blog attribute

* Update project_test.py

* Update code

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
* Changes5

* Refactor index synonyms

* Update code

---------

Co-authored-by: Raghav Gupta 2 <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
* write repository schema and tests

* fixed repository schema tests

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
* gsoc command data fetch from algolia

* pre-commit and format checks

* moved get_gsoc_projects to search project file

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
Bumps [@chakra-ui/react](https://github.com/chakra-ui/chakra-ui/tree/HEAD/packages/react) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/chakra-ui/chakra-ui/releases)
- [Changelog](https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/CHANGELOG.md)
- [Commits](https://github.com/chakra-ui/chakra-ui/commits/@chakra-ui/[email protected]/packages/react)

---
updated-dependencies:
- dependency-name: "@chakra-ui/react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Added a method to convert block to text

* Added testcase for utils

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
* "Cleanup: removing unused dependencies n dev dependencies "

* resolved conflicts

* Fix staging image build

* "Cleanup: removing unused dependencies n dev dependencies "

* fix run npm install install prettier plugin tailwindcss

* fix run run npm lint check

* fix check for uncommited changes

* resolved conflicts  n npm format check

* "Cleanup: removing unused dependencies n dev dependencies "

* resolved conflicts

* Fix staging image build

* "Cleanup: removing unused dependencies n dev dependencies "

* fix run npm install install prettier plugin tailwindcss

* fix run run npm lint check

* fix check for uncommited changes

* resolved conflicts  n npm format check

* updated one

* updated fix

* removed unwanted files from updated fix

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
@Dishant1804
Copy link
Collaborator Author

@arkid15r i've resolved the conflicts please merge it :)

Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@arkid15r arkid15r enabled auto-merge February 7, 2025 05:52
@arkid15r arkid15r added this pull request to the merge queue Feb 7, 2025
Merged via the queue into OWASP:main with commit 0c297be Feb 7, 2025
13 checks passed
@kayashth1 kayashth1 mentioned this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrating Buttons and Tooltips to chakraUI