-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The Modal class has been replaced with more specialized components using Pydantic models for better state management (AlertDialogRef, ConfirmDialogRef) - Functions like use_alert_dialog, use_confirm_dialog, alert_dialog, and confirm_dialog manage modal states and rendering. Component Enhancements: - Added button_with_confirm_dialog to handle button interactions related to confirm dialogs. - The modal_scaffold function creates a standardized structure for modals, supporting large modals with appropriate bootstrap CSS classes. - Add Modal Animations Renderer Context Management: - Introduced current_root_ctx for handling the context of the current rendering tree. Utilizes thread-local storage for managing the root context, ensuring consistent state across renders. Error Handling: - Handle undefined loaderHeaders - Ignore network errors in sentry - Reduce UI layout change on lazy load Version Bump: - Updated the version from 0.1.1 to 0.2.0, indicating significant changes.
- Loading branch information
Showing
14 changed files
with
254 additions
and
129 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,38 @@ | ||
import { useLocation, useMatches, RemixBrowser } from "@remix-run/react"; | ||
import { hydrate } from "react-dom"; | ||
import { RemixBrowser, useLocation, useMatches } from "@remix-run/react"; | ||
import * as Sentry from "@sentry/remix"; | ||
import { useEffect } from "react"; | ||
import { HttpClient, Offline } from "@sentry/integrations"; | ||
import { hydrate } from "react-dom"; | ||
|
||
Sentry.init({ | ||
dsn: window.ENV.SENTRY_DSN, | ||
release: window.ENV.SENTRY_RELEASE, | ||
environment: "client", | ||
integrations: [ | ||
new Sentry.BrowserTracing({ | ||
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled | ||
// tracePropagationTargets: ["localhost", /^https:\/\/gooey\.ai\/.*/], | ||
routingInstrumentation: Sentry.remixRouterInstrumentation( | ||
useEffect, | ||
useLocation, | ||
useMatches | ||
), | ||
Sentry.browserTracingIntegration({ | ||
useEffect, | ||
useLocation, | ||
useMatches, | ||
}), | ||
new Sentry.Replay(), | ||
new HttpClient(), | ||
Sentry.replayIntegration(), | ||
Sentry.httpClientIntegration(), | ||
], | ||
release: window.ENV.SENTRY_RELEASE, | ||
// Performance Monitoring | ||
tracesSampleRate: 0.005, // Capture X% of the transactions, reduce in production! | ||
// Session Replay | ||
replaysSessionSampleRate: 0, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. | ||
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. | ||
// This option is required for capturing headers and cookies. | ||
sendDefaultPii: true, | ||
// To enable offline events caching, use makeBrowserOfflineTransport to wrap existing transports and queue events using the browsers' IndexedDB storage. | ||
// Once your application comes back online, all events will be sent together. | ||
transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport), | ||
// You can use the ignoreErrors option to filter out errors that match a certain pattern. | ||
ignoreErrors: [ | ||
/TypeError: Failed to fetch/i, | ||
/TypeError: Load failed/i, | ||
/(network)(\s+)(error)/i, | ||
/AbortError/i, | ||
], | ||
}); | ||
|
||
hydrate(<RemixBrowser />, document); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
from .common import * | ||
from .modal import Modal | ||
from .modal import ( | ||
AlertDialogRef, | ||
ConfirmDialogRef, | ||
use_alert_dialog, | ||
modal_scaffold, | ||
alert_dialog, | ||
use_confirm_dialog, | ||
confirm_dialog, | ||
button_with_confirm_dialog, | ||
) | ||
from .pills import pill | ||
from .url_button import url_button |
Oops, something went wrong.