Skip to content

Commit 0a1861f

Browse files
authored
fix csv download (#3767)
* fix csv download * remove sentry
1 parent 6b3ac96 commit 0a1861f

File tree

12 files changed

+4
-326
lines changed

12 files changed

+4
-326
lines changed

.env.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ REACT_APP_DATADOG_APPLICATION_ID=
4040
REACT_APP_DATADOG_CLIENT_TOKEN=
4141
REACT_APP_DATADOG_SERVICE=
4242
REACT_APP_DATADOG_SITE=
43-
REACT_APP_SENTRY_AUTH_TOKEN=
44-
REACT_APP_SENTRY_DSN=
4543
REACT_APP_TAG_MANAGER=
4644
REACT_APP_INTERCOM_APP_ID=
4745
REACT_APP_POSTHOG_TOKEN=

packages/builder/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/grant-explorer/craco.config.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const webpack = require("webpack");
2-
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
32
const CracoEsbuildPlugin = require("craco-esbuild");
43
const path = require("path");
54
const { VerifyEnvPlugin } = require("verify-env");
@@ -16,25 +15,6 @@ const plugins = [
1615
new VerifyEnvPlugin(),
1716
];
1817

19-
if (process.env.REACT_APP_ENV === "production") {
20-
plugins.push(
21-
new SentryWebpackPlugin({
22-
org: "gitcoin-protocol",
23-
project: "grants-round-ge",
24-
25-
// Specify the directory containing build artifacts
26-
include: "./build",
27-
28-
// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
29-
// and needs the `project:releases` and `org:read` scopes
30-
authToken: process.env.REACT_APP_SENTRY_AUTH_TOKEN,
31-
32-
// Optionally uncomment the line below to override automatic release name detection
33-
// release: process.env.RELEASE,
34-
})
35-
);
36-
}
37-
3818
module.exports = {
3919
webpack: {
4020
configure: {

packages/grant-explorer/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@
5151
"@rsbuild/plugin-react": "^0.3.11",
5252
"@rsbuild/plugin-svgr": "^0.3.11",
5353
"@rsdoctor/rspack-plugin": "^0.1.1",
54-
"@sentry/browser": "^7.112.2",
55-
"@sentry/integrations": "^7.28.0",
56-
"@sentry/react": "^7.27.0",
57-
"@sentry/tracing": "^7.26.0",
58-
"@sentry/webpack-plugin": "^1.20.0",
5954
"@synthetixio/synpress": "3.7.2-beta.10",
6055
"@tailwindcss/forms": "^0.5.3",
6156
"@tailwindcss/line-clamp": "^0.4.2",

packages/grant-explorer/src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { RoundProvider } from "./context/RoundContext";
1414
import { initDatadog } from "./datadog";
1515
import { initPosthog } from "./posthog";
1616
import reportWebVitals from "./reportWebVitals";
17-
import { initSentry } from "./sentry";
1817
import { initTagmanager } from "./tagmanager";
1918

2019
import "./index.css";
@@ -37,7 +36,6 @@ import ViewProject from "./features/projects/ViewProject";
3736
import { ExploreProjectsPage } from "./features/discovery/ExploreProjectsPage";
3837
import { DirectAllocationProvider } from "./features/projects/hooks/useDirectAllocation";
3938

40-
initSentry();
4139
initDatadog();
4240
initTagmanager();
4341
const posthog = initPosthog();

packages/grant-explorer/src/sentry.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +0,0 @@
1-
import * as Sentry from "@sentry/react";
2-
import { BrowserTracing } from "@sentry/tracing";
3-
import {
4-
ReportingObserver as ReportingObserverIntegration,
5-
CaptureConsole as CaptureConsoleIntegration,
6-
ExtraErrorData,
7-
} from "@sentry/integrations";
8-
9-
export const initSentry = () => {
10-
Sentry.init({
11-
dsn: process.env.REACT_APP_SENTRY_DSN || "",
12-
integrations: [
13-
new BrowserTracing(),
14-
new ReportingObserverIntegration(),
15-
new CaptureConsoleIntegration({
16-
levels: ["error", "warn"],
17-
}),
18-
new Sentry.Replay(),
19-
new ExtraErrorData({ depth: 10 }),
20-
],
21-
normalizeDepth: 11,
22-
// This sets the sample rate to be 10%. You may want this to be 100% while
23-
// in development and sample at a lower rate in production
24-
replaysSessionSampleRate: 0.1,
25-
// If the entire session is not sampled, use the below sample rate to sample
26-
// sessions when an error occurs.
27-
replaysOnErrorSampleRate: 1.0,
28-
});
29-
};

packages/round-manager/craco.config.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const webpack = require("webpack");
2-
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
32
const CracoEsbuildPlugin = require("craco-esbuild");
43
const path = require("path");
54
const { VerifyEnvPlugin } = require("verify-env");
@@ -16,25 +15,6 @@ const plugins = [
1615
new VerifyEnvPlugin(),
1716
];
1817

19-
if (process.env.REACT_APP_ENV === "production") {
20-
plugins.push(
21-
new SentryWebpackPlugin({
22-
org: "gitcoin-protocol",
23-
project: "grants-round-ge",
24-
25-
// Specify the directory containing build artifacts
26-
include: "./build",
27-
28-
// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
29-
// and needs the `project:releases` and `org:read` scopes
30-
authToken: process.env.REACT_APP_SENTRY_AUTH_TOKEN,
31-
32-
// Optionally uncomment the line below to override automatic release name detection
33-
// release: process.env.RELEASE,
34-
})
35-
);
36-
}
37-
3818
module.exports = {
3919
webpack: {
4020
configure: {

packages/round-manager/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
"@reduxjs/toolkit": "^1.8.1",
4141
"@safe-global/safe-apps-provider": "^0.18.5",
4242
"@safe-global/safe-apps-react-sdk": "^4.7.2",
43-
"@sentry/integrations": "^7.28.0",
44-
"@sentry/react": "^7.27.0",
45-
"@sentry/tracing": "^7.26.0",
46-
"@sentry/webpack-plugin": "^1.20.0",
4743
"@tailwindcss/forms": "^0.5.2",
4844
"@tailwindcss/typography": "^0.5.9",
4945
"@tanstack/query-core": "5.40.0",

packages/round-manager/src/features/round/ApplicationsToReview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default function ApplicationsToReview() {
224224
$variant="outline"
225225
className="text-xs px-3 py-1 inline-block"
226226
disabled={isCsvExportLoading}
227-
onClick={() => handleExportCsvClick(utils.getAddress(id), chainId)}
227+
onClick={() => handleExportCsvClick(id, chainId)}
228228
>
229229
{isCsvExportLoading ? (
230230
<>

packages/round-manager/src/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import ViewProgram from "./features/program/ViewProgramPage";
2929
import CreateRound from "./features/round/CreateRoundPage";
3030
import ViewApplication from "./features/round/ViewApplicationPage";
3131
import ViewRoundPage from "./features/round/ViewRoundPage";
32-
import { initSentry } from "./sentry";
3332
import { PostHogProvider } from "posthog-js/react";
3433
import { UpdateRoundProvider } from "./context/round/UpdateRoundContext";
3534
import { UpdateRolesProvider } from "./context/round/UpdateRolesContext";
@@ -40,9 +39,6 @@ import { DataLayer, DataLayerProvider } from "data-layer";
4039
import { getConfig } from "common/src/config";
4140
import { initPosthog } from "./posthog";
4241

43-
// Initialize sentry
44-
initSentry();
45-
4642
// Initialize datadog
4743
initDatadog();
4844

0 commit comments

Comments
 (0)