Skip to content

fix csv download #3767

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

Merged
merged 2 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ REACT_APP_DATADOG_APPLICATION_ID=
REACT_APP_DATADOG_CLIENT_TOKEN=
REACT_APP_DATADOG_SERVICE=
REACT_APP_DATADOG_SITE=
REACT_APP_SENTRY_AUTH_TOKEN=
REACT_APP_SENTRY_DSN=
REACT_APP_TAG_MANAGER=
REACT_APP_INTERCOM_APP_ID=
REACT_APP_POSTHOG_TOKEN=
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions packages/grant-explorer/craco.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const webpack = require("webpack");
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
const CracoEsbuildPlugin = require("craco-esbuild");
const path = require("path");
const { VerifyEnvPlugin } = require("verify-env");
Expand All @@ -16,25 +15,6 @@ const plugins = [
new VerifyEnvPlugin(),
];

if (process.env.REACT_APP_ENV === "production") {
plugins.push(
new SentryWebpackPlugin({
org: "gitcoin-protocol",
project: "grants-round-ge",

// Specify the directory containing build artifacts
include: "./build",

// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// and needs the `project:releases` and `org:read` scopes
authToken: process.env.REACT_APP_SENTRY_AUTH_TOKEN,

// Optionally uncomment the line below to override automatic release name detection
// release: process.env.RELEASE,
})
);
}

module.exports = {
webpack: {
configure: {
Expand Down
5 changes: 0 additions & 5 deletions packages/grant-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
"@rsbuild/plugin-react": "^0.3.11",
"@rsbuild/plugin-svgr": "^0.3.11",
"@rsdoctor/rspack-plugin": "^0.1.1",
"@sentry/browser": "^7.112.2",
"@sentry/integrations": "^7.28.0",
"@sentry/react": "^7.27.0",
"@sentry/tracing": "^7.26.0",
"@sentry/webpack-plugin": "^1.20.0",
"@synthetixio/synpress": "3.7.2-beta.10",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/line-clamp": "^0.4.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/grant-explorer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { RoundProvider } from "./context/RoundContext";
import { initDatadog } from "./datadog";
import { initPosthog } from "./posthog";
import reportWebVitals from "./reportWebVitals";
import { initSentry } from "./sentry";
import { initTagmanager } from "./tagmanager";

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

initSentry();
initDatadog();
initTagmanager();
const posthog = initPosthog();
Expand Down
29 changes: 0 additions & 29 deletions packages/grant-explorer/src/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,29 +0,0 @@
import * as Sentry from "@sentry/react";
import { BrowserTracing } from "@sentry/tracing";
import {
ReportingObserver as ReportingObserverIntegration,
CaptureConsole as CaptureConsoleIntegration,
ExtraErrorData,
} from "@sentry/integrations";

export const initSentry = () => {
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN || "",
integrations: [
new BrowserTracing(),
new ReportingObserverIntegration(),
new CaptureConsoleIntegration({
levels: ["error", "warn"],
}),
new Sentry.Replay(),
new ExtraErrorData({ depth: 10 }),
],
normalizeDepth: 11,
// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
replaysSessionSampleRate: 0.1,
// If the entire session is not sampled, use the below sample rate to sample
// sessions when an error occurs.
replaysOnErrorSampleRate: 1.0,
});
};
20 changes: 0 additions & 20 deletions packages/round-manager/craco.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const webpack = require("webpack");
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
const CracoEsbuildPlugin = require("craco-esbuild");
const path = require("path");
const { VerifyEnvPlugin } = require("verify-env");
Expand All @@ -16,25 +15,6 @@ const plugins = [
new VerifyEnvPlugin(),
];

if (process.env.REACT_APP_ENV === "production") {
plugins.push(
new SentryWebpackPlugin({
org: "gitcoin-protocol",
project: "grants-round-ge",

// Specify the directory containing build artifacts
include: "./build",

// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// and needs the `project:releases` and `org:read` scopes
authToken: process.env.REACT_APP_SENTRY_AUTH_TOKEN,

// Optionally uncomment the line below to override automatic release name detection
// release: process.env.RELEASE,
})
);
}

module.exports = {
webpack: {
configure: {
Expand Down
4 changes: 0 additions & 4 deletions packages/round-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
"@reduxjs/toolkit": "^1.8.1",
"@safe-global/safe-apps-provider": "^0.18.5",
"@safe-global/safe-apps-react-sdk": "^4.7.2",
"@sentry/integrations": "^7.28.0",
"@sentry/react": "^7.27.0",
"@sentry/tracing": "^7.26.0",
"@sentry/webpack-plugin": "^1.20.0",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.9",
"@tanstack/query-core": "5.40.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default function ApplicationsToReview() {
$variant="outline"
className="text-xs px-3 py-1 inline-block"
disabled={isCsvExportLoading}
onClick={() => handleExportCsvClick(utils.getAddress(id), chainId)}
onClick={() => handleExportCsvClick(id, chainId)}
>
{isCsvExportLoading ? (
<>
Expand Down
4 changes: 0 additions & 4 deletions packages/round-manager/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import ViewProgram from "./features/program/ViewProgramPage";
import CreateRound from "./features/round/CreateRoundPage";
import ViewApplication from "./features/round/ViewApplicationPage";
import ViewRoundPage from "./features/round/ViewRoundPage";
import { initSentry } from "./sentry";
import { PostHogProvider } from "posthog-js/react";
import { UpdateRoundProvider } from "./context/round/UpdateRoundContext";
import { UpdateRolesProvider } from "./context/round/UpdateRolesContext";
Expand All @@ -40,9 +39,6 @@ import { DataLayer, DataLayerProvider } from "data-layer";
import { getConfig } from "common/src/config";
import { initPosthog } from "./posthog";

// Initialize sentry
initSentry();

// Initialize datadog
initDatadog();

Expand Down
26 changes: 0 additions & 26 deletions packages/round-manager/src/sentry.ts

This file was deleted.

Loading
Loading