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: Made the "Tools:" conditional according to the current page #197

Merged
merged 19 commits into from
Jun 29, 2023

Conversation

punyamsingh
Copy link
Contributor

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

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

image
visible on PR page

image
visible on github profile page

image
visible on repo page

image
not visible on unknown pages (eg:- StackOverflow)

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

image

Copy link

@github-actions github-actions bot left a 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.

@punyamsingh punyamsingh changed the title Made the "Tools:" conditional according to the current page fix: Made the "Tools:" conditional according to the current page Jun 25, 2023
Copy link
Member

@Anush008 Anush008 left a 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.

src/popup/pages/home.tsx Outdated Show resolved Hide resolved
@punyamsingh
Copy link
Contributor Author

@Anush008 i have made the requested changes

Copy link
Member

@Anush008 Anush008 left a 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.

@Anush008 Anush008 merged commit b08ad07 into open-sauced:beta Jun 29, 2023
github-actions bot pushed a commit that referenced this pull request Jun 29, 2023
## [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)
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.9.0-beta.3 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Jun 29, 2023
## [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))
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.9.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

zer0and1 pushed a commit to zer0and1/open-sauced.ai that referenced this pull request Jul 26, 2023
## [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)
zer0and1 pushed a commit to zer0and1/open-sauced.ai that referenced this pull request Jul 26, 2023
## [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))
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.

Hide "Tools:" when the current page is not a PR/Repo/User
4 participants