Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s lint/format configuration and applies the resulting import-sorting changes across the codebase, with a couple of small related refactors to satisfy/benefit from the new lint rules.
Changes:
- Configure oxfmt to sort imports (and apply the new import order broadly across tests/app code).
- Adjust oxlint plugin/rule configuration (notably removing
react-perfand updating rules). - Minor component refactors aligned with lint/perf guidance (e.g., memoized context value; alert context shape).
Reviewed changes
Copilot reviewed 56 out of 57 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/fixtures.ts | Import sorting results applied to test fixtures. |
| package-lock.json | Lockfile update (adds hasInstallScript). |
| oxlint.config.ts | Updates oxlint plugins/rules configuration. |
| drizzle/index.ts | Import order adjusted. |
| app/routes/setup.start.ts | Import order adjusted. |
| app/routes/setup.callback.tsx | Import order adjusted. |
| app/routes/cron.session.ts | Import order adjusted. |
| app/routes/auth.signout.ts | Import order adjusted. |
| app/routes/auth.signin.ts | Import order adjusted. |
| app/routes/auth.refresh.ts | Import order adjusted; (see comment re: args type). |
| app/routes/auth.callback.ts | Import order adjusted. |
| app/routes/_index.tsx | Import order adjusted. |
| app/routes/$guildId.tsx | Import order adjusted. |
| app/routes/$guildId.items.ts | Import order adjusted. |
| app/routes/$guildId.items.$itemId.ts | Import order adjusted. |
| app/routes/$guildId._index/route.tsx | Import order adjusted. |
| app/routes/$guildId._index/loader.ts | Import order adjusted. |
| app/routes/$guildId._index/action.ts | Import order adjusted. |
| app/routes/$guildId._index/MutateItemDialog.tsx | Import order adjusted. |
| app/routes/$guildId._index/CreateEventDialog.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.register._index/route.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.register._index/clientAction.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.register._index/action.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.register._index/RegisterDisplayPanel.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/route.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/loader.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/clientLoader.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/clientAction.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/action.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/Table.client.tsx | Import order adjusted; memoizes context value passed to context provider. |
| app/routes/$guildId.$eventId.receipts._index/Summary.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.receipts._index/Chart.client.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId.displays.$itemId.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.discounts.ts | Import order adjusted. |
| app/routes/$guildId.$eventId.discounts.$discountId.ts | Import order adjusted. |
| app/routes/$guildId.$eventId._index/route.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId._index/loader.ts | Import order adjusted. |
| app/routes/$guildId.$eventId._index/UpsertDisplayDialog.tsx | Import order adjusted. |
| app/routes/$guildId.$eventId._index/MutateEventDialog.tsx | Import order adjusted. |
| app/root.tsx | Import order adjusted. |
| app/lib/sync/user.server.ts | Import order adjusted. |
| app/lib/sync/member.server.ts | Import order adjusted. |
| app/lib/session.server.ts | Import order adjusted. |
| app/lib/schema.ts | Import order adjusted. |
| app/lib/db.server.ts | Import order adjusted. |
| app/lib/context.server.ts | Import order adjusted. |
| app/entry.server.tsx | Import order adjusted. |
| app/components/Navigation.tsx | Import order adjusted. |
| app/components/ItemCard.tsx | Import order adjusted. |
| app/components/GuildCard.tsx | Import order adjusted. |
| app/components/EventCard.tsx | Import order adjusted. |
| app/components/DisplayPanel.tsx | Import order adjusted. |
| app/components/CardItemPicture.tsx | Import order adjusted. |
| app/components/Alert.tsx | Refactors context value shape (dispatch function directly) and updates consumer accordingly. |
| .oxfmtrc.json | Enables experimental import sorting configuration. |
| .git-blame-ignore-revs | Adds revision entry for the import-sorting formatting commit. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.