Skip to content

Commit a830927

Browse files
Merge pull request #1007 from KCSAbeywickrama/bi-update-issue-url
[BI Data Mapper] Update ErrorBoundary to include correct issue URLs
2 parents cada6a6 + 3463f07 commit a830927

File tree

3 files changed

+5
-3
lines changed
  • workspaces
    • ballerina
    • common-libs/ui-toolkit/src/components/ErrorBoundary/Error

3 files changed

+5
-3
lines changed

workspaces/ballerina/ballerina-visualizer/src/views/DataMapper/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { ErrorBoundary } from "@wso2/ui-toolkit";
2323

2424
import { TopNavigationBar } from "../../components/TopNavigationBar";
2525
import { DataMapperView } from "./DataMapperView";
26+
import { BALLERINA_INTEGRATOR_ISSUES_URL } from "../../utils/bi";
2627

2728
export interface DataMapperProps {
2829
filePath: string;
@@ -38,7 +39,7 @@ export function DataMapper(props: DataMapperProps) {
3839
return (
3940
<>
4041
<TopNavigationBar projectPath={props.projectPath}/>
41-
<ErrorBoundary errorMsg="Error while loading the Data Mapper">
42+
<ErrorBoundary errorMsg="Error while loading the Data Mapper" issueUrl={BALLERINA_INTEGRATOR_ISSUES_URL}>
4243
<DataMapperView {...props} />
4344
</ErrorBoundary>
4445
</>

workspaces/ballerina/data-mapper/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { CompletionItem, ErrorBoundary } from "@wso2/ui-toolkit";
2929

3030
import { DataMapperEditor } from "./components/DataMapper/DataMapperEditor";
3131
import { ExpressionProvider } from "./context/ExpressionContext";
32+
import { ISSUES_URL } from "./components/Diagram/utils/constants";
3233

3334
const queryClient = new QueryClient({
3435
defaultOptions: {
@@ -92,7 +93,7 @@ export interface DataMapperProps extends DataMapperEditorProps {
9293

9394
export function DataMapper({ expressionBar, ...props }: DataMapperProps) {
9495
return (
95-
<ErrorBoundary errorMsg="An error occurred while rendering the Data Mapper">
96+
<ErrorBoundary errorMsg="An error occurred while rendering the Data Mapper" issueUrl={ISSUES_URL}>
9697
<QueryClientProvider client={queryClient}>
9798
<Global styles={globalStyles} />
9899
<ExpressionProvider {...expressionBar}>

workspaces/common-libs/ui-toolkit/src/components/ErrorBoundary/Error/Error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface ErrorProps {
3333
export function ErrorScreen(props: ErrorProps) {
3434
const classes = useStyles();
3535
const { resetBoundary } = useErrorBoundary();
36-
const issueUrl = props.issueUrl || "https://github.com/wso2/ballerina-plugin-vscode/issues";
36+
const issueUrl = props.issueUrl || "https://github.com/wso2/vscode-extensions/issues";
3737

3838
return (
3939
<div className={classes.root}>

0 commit comments

Comments
 (0)