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: Implement the webview sandbox using a microfront end for rn to implement the full html renderer #2691

Merged
merged 17 commits into from
Feb 7, 2025

Conversation

Innei
Copy link
Member

@Innei Innei commented Feb 5, 2025

ScreenRecording_02-07-2025.11-03-14_1.MP4

Innei added 2 commits February 5, 2025 18:40
Signed-off-by: Innei <[email protected]>
Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
follow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 3:12pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
follow-external-ssr ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2025 3:12pm

@follow-reviewer-bot
Copy link

Suggested PR Title:

feat(html-renderer): introduce new HTML rendering capabilities

Change Summary:
This PR introduces a new HTML renderer for the mobile web application, including new React components, TypeScript definitions, and necessary configurations. It enhances the rendering capabilities for HTML content, allowing seamless integration of custom HTML elements, links, and mathematical expressions. Additionally, new styles and utilities are added to support these components, improving the overall performance and aesthetic of the web app.

Code Review:
No change requests necessary.

- Refactor SharedWebView module with improved JavaScript injection and link handling
- Add ModalWebViewController for opening links in a modal view
- Implement dynamic content height measurement
- Update HTML renderer with Jotai state management
- Improve WebView configuration and debug mode

Signed-off-by: Innei <[email protected]>
@Innei Innei marked this pull request as ready for review February 6, 2025 14:49
Signed-off-by: Innei <[email protected]>
Copy link

github-actions bot commented Feb 6, 2025

Linting and formatting issues were automatically fixed. Please review the changes.

- Remove debug-only conditional for WebView inspector
- Add text label class to GroupedInsetListActionCell for consistent styling

Signed-off-by: Innei <[email protected]>
Signed-off-by: Innei <[email protected]>
- Create custom WKWebView subclass to override safe area insets
- Enables full-screen WebView rendering without default padding

Signed-off-by: Innei <[email protected]>
- Delete unused custom WKWebView subclass for iOS
- Cleanup unnecessary file after previous implementation

Signed-off-by: Innei <[email protected]>
- Add HelperModule for iOS to open links in a modal WebView
- Implement cross-platform link opening mechanism
- Enhance entry detail screen with dynamic title and scroll behavior
- Add loading indicator for entry content
- Refactor navigation and scroll view components

Signed-off-by: Innei <[email protected]>
Innei and others added 2 commits February 7, 2025 23:06
- Dispatch JavaScript evaluation and URL loading on the main thread
- Ensure thread-safe WebView interactions for iOS
- Prevent potential race conditions in SharedWebViewModule

Signed-off-by: Innei <[email protected]>
…hanism

- Replace custom useOpenLink hook with native openLink function
- Update WebView navigation and recommendation list item to use new link opening method
- Remove unnecessary hook and simplify link handling

Signed-off-by: Innei <[email protected]>
@Innei Innei merged commit 64db32e into dev Feb 7, 2025
10 checks passed
@Innei Innei deleted the feat/rn-mirco-app branch February 7, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant