refactor(entry): consolidate application bootstrap entry point into main.tsx (Closes #737) - #817
Open
stayzappy wants to merge 1 commit into
Conversation
|
@stayzappy is attempting to deploy a commit to the nanle-code's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@stayzappy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Collaborator
|
@stayzappy Please fix all the CI checks failure! |
Collaborator
|
@stayzappy Please fix CI checks failure!!! |
1 similar comment
Collaborator
|
@stayzappy Please fix CI checks failure!!! |
stayzappy
force-pushed
the
feature/issue-737-entry-point-consolidation
branch
3 times, most recently
from
August 31, 2026 09:31
df94da7 to
36414a0
Compare
stayzappy
force-pushed
the
feature/issue-737-entry-point-consolidation
branch
from
August 31, 2026 17:41
36414a0 to
e7ef122
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Objective & Overview
Closes #737
This Pull Request consolidates the application bootstrap path in
stellar-dev-dashboardinto a single canonical, strictly-typed entry point (src/main.tsx).Key Changes Made
Canonical Bootstrap Entry Point (
src/main.tsx):src/main.jsx->src/main.tsxwith strict TypeScript types (ReactDOM.Root,HTMLElement,BootstrapResult).validateEnvironment) to verify modern browser APIs (fetch,localStorage,Promise) and prevent silent execution failures in legacy environments.bootstrapApp): gracefully falls back to an emergency container (createFallbackContainer) if#rootis missing from the DOM.initMonitoring) runs prior to React mounting.Entry Script Update (
index.html):<script type=module src="/src/main.jsx"></script>-><script type=module src="/src/main.tsx"></script>.Automated Unit Tests (
src/__tests__/main.test.tsx):#rootelement.#rootis missing.validateEnvironmentthrows descriptive error when mandatory browser APIs are absent.Architecture Documentation (
docs/architecture/entry-points.md):Verification
npm run test:unit -- src/__tests__/main.test.tsx-> 4 / 4 Unit Tests Passed (100% Success).