-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove share providers and fix various share bugs #18
Conversation
- The abstraction was making this code more complicated - Also fix a few url encoding issues
|
59db1d3
to
cc5b621
Compare
cc5b621
to
6d47a91
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #18 +/- ##
==========================================
- Coverage 94.53% 94.51% -0.02%
==========================================
Files 15 9 -6
Lines 1664 1513 -151
Branches 61 52 -9
==========================================
- Hits 1573 1430 -143
+ Misses 88 81 -7
+ Partials 3 2 -1 ☔ View full report in Codecov by Sentry. |
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.
looks good, just had a question if we can keep toggle test.
'Free Download, Borrow, and Streaming', | ||
'Internet Archive', | ||
] | ||
.filter(Boolean) |
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.
q: why do we need to filter? should we have defaults for the desc, creator?
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.
Sometimes things didn't have a creator was the main case.
it('toggles visibility of embed options', async () => { | ||
const el = (await fixture(container())) as IauxSharingOptions; | ||
|
||
el.toggleEmbedOptions(new Event('click')); |
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.
we can probably do...
el.toggleEmbedOptions(new Event('click')); | |
el.shadowRoot.querySelector('embed dropdown').click(); |
I started by trying to find a way to specify a direct share url from bookreader, but couldn't quite find a way to make that happen in a reasonable fashion. But did find some nice cleanups to do while investigating the code!
URLSearchParams
everywhere; fixed various url encoding issues