-
-
Notifications
You must be signed in to change notification settings - Fork 30
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: Made the "Tools:" conditional according to the current page #197
Conversation
submitting for review
Co-authored-by: Brian Douglas <[email protected]>
Co-authored-by: Brian Douglas <[email protected]>
Co-authored-by: Brian Douglas <[email protected]>
Co-authored-by: Brian Douglas <[email protected]>
Co-authored-by: Brian Douglas <[email protected]>
Co-authored-by: Brian Douglas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Compliance Checks
Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.
Protected Branch
In order to be considered for merging, the pull request changes must not be implemented on the "beta" branch. This is described in our Contributing Guide. We would suggest that you close this PR and implement your changes as described in our Contributing Guide and open a new pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @punyamsingh. This works. I've suggested a change for you to consider and to hear your thoughts about it.
@Anush008 i have made the requested changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thanks @punyamsingh for working on this.
## [1.9.0-beta.3](v1.9.0-beta.2...v1.9.0-beta.3) (2023-06-29) ### π Bug Fixes * Made the "Tools:" conditional according to the current page ([#197](#197)) ([b08ad07](b08ad07)), closes [issue#112](https://github.com/open-sauced/issue/issues/112) [issue#112](https://github.com/open-sauced/issue/issues/112)
π This PR is included in version 1.9.0-beta.3 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.9.0](v1.8.0...v1.9.0) (2023-06-29) ### β Tests * Tests for colorPreference and getUserPRVelocity ([#190](#190)) ([6b9a5c3](6b9a5c3)) ### π Features * post to linkedin projects ([#177](#177)) ([a20bff4](a20bff4)) ### π Bug Fixes * Made the "Tools:" conditional according to the current page ([#197](#197)) ([b08ad07](b08ad07)), closes [issue#112](https://github.com/open-sauced/issue/issues/112) [issue#112](https://github.com/open-sauced/issue/issues/112) * separate vite and vitest configs ([#193](#193)) ([7a980c8](7a980c8))
π This PR is included in version 1.9.0 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.9.0-beta.3](open-sauced/ai@v1.9.0-beta.2...v1.9.0-beta.3) (2023-06-29) ### π Bug Fixes * Made the "Tools:" conditional according to the current page ([#197](open-sauced/ai#197)) ([b08ad07](open-sauced/ai@b08ad07)), closes [issue#112](https://github.com/open-sauced/issue/issues/112) [issue#112](https://github.com/open-sauced/issue/issues/112)
## [1.9.0](open-sauced/ai@v1.8.0...v1.9.0) (2023-06-29) ### β Tests * Tests for colorPreference and getUserPRVelocity ([#190](open-sauced/ai#190)) ([6b9a5c3](open-sauced/ai@6b9a5c3)) ### π Features * post to linkedin projects ([#177](open-sauced/ai#177)) ([a20bff4](open-sauced/ai@a20bff4)) ### π Bug Fixes * Made the "Tools:" conditional according to the current page ([#197](open-sauced/ai#197)) ([b08ad07](open-sauced/ai@b08ad07)), closes [issue#112](https://github.com/open-sauced/issue/issues/112) [issue#112](https://github.com/open-sauced/issue/issues/112) * separate vite and vitest configs ([#193](open-sauced/ai#193)) ([7a980c8](open-sauced/ai@7a980c8))
What type of PR is this? (check all applicable)
Description
the "Tools:" option is no longer visible when the current page is not a PR/Repo/User.
as mentioned in issue #196
Added a const variable renderToolsConditions that checks if the conditions are right to show the "Tools:"
if even one condition is present, it is displayed, or else it doesn't.
we can add more conditions in this variable if necessary in the future.
I have only made changes to home.tsx file. rest are unchanged.
Related Tickets & Documents
Fixes #196
Mobile & Desktop Screenshots/Recordings
visible on PR page
visible on github profile page
visible on repo page
not visible on unknown pages (eg:- StackOverflow)
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?