Repository navigation
fix(shadcn): UI improvements and favicon service refactoring #3908
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
370e290
fix(shadcn): UI improvements and favicon service refactoring
amitsingh-007 aedcdba
fix(shadcn): improve auth cleanup and favicon prop plumbing
amitsingh-007 2813db5
refactor(web): simplify AuthProvider with static import
amitsingh-007 425d8d9
refactor(web): optimize auth effect dependency
amitsingh-007 82559fe
test(shared): consolidate e2e utilities in shared package
amitsingh-007 6ac1479
test: replace fixed waits with state-based assertions + stabilize hig…
amitsingh-007 c5681a1
test(e2e): add explicit timeouts to auth setup assertions
amitsingh-007 7b05ece
test(e2e): improve test assertions and utilities
amitsingh-007 db12493
Merge pull request #3909 from amitsingh-007/f-simplify-e2e-tests
amitsingh-007 539cb56
test(e2e): refactor fixtures for parallel execution and test isolation
amitsingh-007 0743264
test(e2e): add explicit timeouts and improve test stability
amitsingh-007 5d348f9
chore(extension): bump version to 24.1.0
amitsingh-007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
34 changes: 23 additions & 11 deletions
34
apps/extension/src/entrypoints/popup/panels/BookmarksPanel/components/BookmarkRow.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,30 @@ | ||
| import { Bookmark, type BookmarkProps } from '@bypass/shared'; | ||
| import { | ||
| Bookmark, | ||
| getGoogleFaviconUrl, | ||
| type BookmarkProps, | ||
| } from '@bypass/shared'; | ||
| import useHistoryStore from '@store/history'; | ||
| import { memo } from 'react'; | ||
|
|
||
| const BookmarkRow = memo<Omit<BookmarkProps, 'onOpenLink'>>((props) => { | ||
| const startHistoryMonitor = useHistoryStore( | ||
| (state) => state.startHistoryMonitor | ||
| ); | ||
| const BookmarkRow = memo<Omit<BookmarkProps, 'onOpenLink' | 'getFaviconUrl'>>( | ||
| (props) => { | ||
| const startHistoryMonitor = useHistoryStore( | ||
| (state) => state.startHistoryMonitor | ||
| ); | ||
|
|
||
| const onOpenLink = (url: string) => { | ||
| startHistoryMonitor(); | ||
| browser.tabs.create({ url, active: false }); | ||
| }; | ||
| const onOpenLink = (url: string) => { | ||
| startHistoryMonitor(); | ||
| browser.tabs.create({ url, active: false }); | ||
| }; | ||
|
|
||
| return <Bookmark {...props} onOpenLink={onOpenLink} />; | ||
| }); | ||
| return ( | ||
| <Bookmark | ||
| {...props} | ||
| getFaviconUrl={getGoogleFaviconUrl} | ||
| onOpenLink={onOpenLink} | ||
| /> | ||
| ); | ||
| } | ||
| ); | ||
|
|
||
| export default BookmarkRow; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.