Commit 3ec5546
committed
Enhances embed functionality for channels/playlists
Extends the embed component to support homepage, channels, playlists, and markdown content.
For channel embeds, it now displays a grid of the latest uploads.
Playlist embeds showcase the cover and a playable list.
Adds support for rendering markdown content within embeds, fetching the content and displaying it.
Also configures the homepage embed to point Mini App action to the homepage embed.
Simplify unsaved settings warning logic
remove comment
Removed embed menu item to maintain focus on current changes.
Improves embed and channel page handling
Addresses issues related to embed path detection and homepage update loops.
- Ensures correct embed path detection by checking for a valid pathname.
- Prevents repeated 'isHome' updates on the homepage by using a bounded set, avoiding potential loops.
- Extracts and memoizes the channel page wrapper component to prevent unnecessary re-renders.
- Improves playlist ID detection for collection handling in embed wrappers.
Improves embed and upload page handling
Addresses several issues and improves the user experience.
- Ensures the active uploads warning only appears when not on the upload page by checking the pathname more reliably.
- Corrects collection redirection logic by adding a code block.
- Removes duplicate URI building logic in embed wrappers.
- Enhances Farcaster embed functionality by including the SDK and ready script only on embed pages to avoid unnecessary overhead on other pages.
Improves Farcaster embed handling and OG image.
Enhances Farcaster integration by adding an iframe check to the embed script, ensuring it only runs when not in a top-level browsing context.
Updates the Open Graph image URL used for Farcaster frames to use the thumbnail card CDN URL if available, falling back to other defined URLs, which delivers a richer visual experience.
Allows iframing for homepage
Permits iframing of the homepage to support embedding in
Farcaster miniapps, in addition to existing embed pages and API.
This change enhances integration possibilities with external platforms.
Adds debug logging for action URLs
Adds console logs to output the generated fcActionUrl
to aid in debugging mini app integrations on the homepage.
This helps to verify the correct URL is being used,
especially during development with different origins.
Adds debug logging to build OG metadata
Adds a console log statement to output the override options
passed into the buildBasicOgMetadata function. This will aid
in debugging issues related to Open Graph metadata generation
during development.
Improves embed player UI and URI handling
Adds a dedicated CSS class for the reactions overlay in the embedded video player, improving styling and maintainability.
Refactors URI handling in the embed wrapper to prioritize incoming URI for live/latest content, ensuring correct content resolution.
Uses resolved URL in embed mode with live path
In embed mode when viewing a live/latest stream, uses the resolved URL
from lbry.tv instead of the channel URL. This ensures the correct stream
is displayed when the user navigates from a live stream to its archived
version.
Enables playlist support in embed mode
Adds support for playlist URLs in embed mode by redirecting to the first item in the playlist with a collection ID parameter.
This allows users to view playlists in an embedded player, providing a better user experience.
It also handles the initial loading state for playlist URLs.
Additionally, the middleware is updated to allow iframing for playlist pages.
Fixes channel page navigation in embed mode
Ensures correct URL construction for channel pages when viewed in embed mode.
It checks if the current path is within the embed context and prepends `/$/embed` to the base URL.
This adjustment ensures proper navigation and link generation within the embedded player.1 parent 3d6f53c commit 3ec5546
File tree
37 files changed
+1000
-343
lines changed- ui
- component
- app
- claimTilesDiscover
- embedTextArea
- fileActions
- header
- page
- router
- subscribeButton
- viewers/videoViewer
- internal
- hocs
- withResolvedClaimRender
- withStreamClaimRender
- page
- claim
- internal/claimPageComponent
- internal/channelPage
- collection
- embedWrapper
- internal/embedClaimComponent
- scss/component
- util
- web
- middleware
- src
- tools
37 files changed
+1000
-343
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
228 | 246 | | |
229 | 247 | | |
230 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
247 | | - | |
| 250 | + | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
| |||
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
265 | | - | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
359 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
360 | 363 | | |
361 | 364 | | |
362 | 365 | | |
| |||
478 | 481 | | |
479 | 482 | | |
480 | 483 | | |
| 484 | + | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
| |||
0 commit comments