Skip to content

Conversation

@ankitsinghkuntal09
Copy link

@ankitsinghkuntal09 ankitsinghkuntal09 commented Oct 24, 2025

@W-19978121

What does this PR do?

1)Adds a reusable error viewer LWC to the test project:
c/errorDisplay: renders error title/message, meta (Error ID, Component, Timestamp), a labeled “Stack Trace” section (uses sanitizedStack when present, falls back to stack), props table, and “Copy Details” (copies raw JSON).

2)Adds a runtime environment utility:
c/runtimeEnv: isVSCodeExtension(), isBrowser(), getOriginSafe().

3)Updates hmrTest in the test project to import the utility and show on‑screen env status (Browser/VS Code, Origin).

What issues does this PR fix or reference?

W‑19978121 (Runtime Detection Utility and Reusable Error Display Component)
Parent: W‑19881670 (Implement Error Handling System)

@salesforce-cla
Copy link

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Ankit Singh <s***@s***.i***.s***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated.

@ankitsinghkuntal09 ankitsinghkuntal09 changed the title W-19978121:add runtimeEnvdetection util and reusable ErrorDisplay LWC @W-19978121:add runtimeEnvdetection util and reusable ErrorDisplay LWC Oct 24, 2025
@ankitsinghkuntal09
Copy link
Author

Closing this PR to de-duplicate scope with the consolidated work in progress (runtime error capture + integration). The env detection and reusable error viewer are being delivered as part of that flow, so we’ll avoid parallel changes here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant