-
Notifications
You must be signed in to change notification settings - Fork 173
Upgrade AG Grid to v34 and rewrite leaderboard routing #3319
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
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e5052ca
Upgrade ag-grid to latest
RichDom2185 a46dd98
Fix removed deprecated option
RichDom2185 7856af5
Create AG Grid bootstrapper
RichDom2185 efcfe84
Move Sentry bootstrap to separate file
RichDom2185 088164c
Register various modules needed for AG Grid
RichDom2185 93f6057
Migrate tables to new theming API
RichDom2185 3f640a0
Remove hardcoded global AG Grid styling
RichDom2185 a70eceb
Restore leaderboard styles with scoped CSS
RichDom2185 3793ce9
Fix leaderboard not loading
RichDom2185 bc8be3f
Fix deprecation
RichDom2185 6873ca2
Simplify leaderboard routing logic
RichDom2185 71c1c0c
Commit utils file
RichDom2185 1493d92
Remove useless items
RichDom2185 cc4d4ce
Simplify leaderboard dropdown code
RichDom2185 7121769
Remove unused styles
RichDom2185 77281e4
Fix overflow and memoization bugs
RichDom2185 d486584
Move constant out of component
RichDom2185 da9efc3
Use camelCase for variable
RichDom2185 a9eb7cd
Remove useless comment
RichDom2185 2366ee3
Fix table bugs
RichDom2185 6c9c5f7
Fix redirect not working
RichDom2185 d506fe5
Migrate changes
RichDom2185 12dee15
Fix bugs
RichDom2185 f98fbe9
Fix more bugs
RichDom2185 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { | ||
CellStyleModule, | ||
ClientSideRowModelModule, | ||
ColumnApiModule, | ||
ColumnAutoSizeModule, | ||
CsvExportModule, | ||
DateFilterModule, | ||
InfiniteRowModelModule, | ||
type Module, | ||
ModuleRegistry, | ||
PaginationModule, | ||
RowDragModule, | ||
TextEditorModule, | ||
TextFilterModule, | ||
ValidationModule | ||
} from 'ag-grid-community'; | ||
|
||
const productionModules: readonly Module[] = [ | ||
CellStyleModule, | ||
ClientSideRowModelModule, | ||
ColumnApiModule, | ||
ColumnAutoSizeModule, | ||
CsvExportModule, | ||
DateFilterModule, | ||
InfiniteRowModelModule, | ||
PaginationModule, | ||
RowDragModule, | ||
TextEditorModule, | ||
TextFilterModule, | ||
ValidationModule | ||
]; | ||
|
||
export const initializeAgGridModules = () => { | ||
const modulesToLoad = [...productionModules]; | ||
|
||
// Load helpful warnings in development mode | ||
if (process.env.NODE_ENV === 'development') { | ||
modulesToLoad.push(ValidationModule); | ||
} | ||
ModuleRegistry.registerModules(modulesToLoad); | ||
}; |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import * as Sentry from '@sentry/react'; | ||
import { useEffect } from 'react'; | ||
import { | ||
createRoutesFromChildren, | ||
matchRoutes, | ||
useLocation, | ||
useNavigationType | ||
} from 'react-router'; | ||
import Constants from 'src/commons/utils/Constants'; | ||
import { store } from 'src/pages/createStore'; | ||
|
||
export const initializeSentryLogging = () => { | ||
if (!Constants.sentryDsn) { | ||
return; | ||
} | ||
Sentry.init({ | ||
dsn: Constants.sentryDsn, | ||
environment: Constants.sourceAcademyEnvironment, | ||
release: `cadet-frontend@${Constants.sourceAcademyVersion}`, | ||
integrations: [ | ||
Sentry.reactRouterV7BrowserTracingIntegration({ | ||
useEffect, | ||
useLocation, | ||
useNavigationType, | ||
createRoutesFromChildren, | ||
matchRoutes | ||
}), | ||
Sentry.replayIntegration() | ||
] | ||
}); | ||
const userId = store.getState().session.userId; | ||
Sentry.setUser(typeof userId !== 'undefined' ? { id: userId.toString() } : null); | ||
}; | ||
RichDom2185 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.