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: Convert to Side Panel View #2498

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

passabilities
Copy link

@passabilities passabilities commented Aug 29, 2024

Using Chrome extension feature to display as a side panel instead of the default popup.

There were quite a few places that had hard-coded height and width values. I tried my best to fix all the styles to make the view more dynamic but might have missed a few.

Selection_020

Closes #2159

@github-actions github-actions bot added the stale label Oct 3, 2024
@passabilities passabilities changed the title Convert to Side Panel View feat: Convert to Side Panel View Oct 10, 2024
@github-actions github-actions bot removed the stale label Oct 10, 2024
@passabilities
Copy link
Author

@vvvvvv1vvvvvv is this something that could potentially get merged in? what are your thoughts?

@0x398
Copy link

0x398 commented Dec 3, 2024

@vvvvvv1vvvvvv @heisenberg-2077 could you please have a look at this PR? It is a really nice feature

Copy link

@CreeTar CreeTar left a comment

Choose a reason for hiding this comment

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

just my 2 cents, though i am not a react-guru, but i really want that sidebar ;)

@@ -3,7 +3,7 @@
.current-connection-block {
// position: absolute;
bottom: 24px;
width: 360px;
//width: 360px;
Copy link

Choose a reason for hiding this comment

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

if leaving commented code, doesn't this required a TODO or explanation as to why?


// Clean up the listener on component unmount
return () => {
chrome.runtime.onMessage.removeListener(handleTabUpdate);
Copy link

Choose a reason for hiding this comment

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

isn't useEffect() called multiple times, and this means you are starting an interval call to getCurrentSite() every 5 seconds multiple times, because there is not clearInterval() in the returned method

@github-actions github-actions bot added the stale label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidebar extension feature request
3 participants