Skip to content

fix: ordering hallucinations and per milestone contributors ordering - #362

Merged
michalges merged 7 commits into
mainfrom
fix/ordering-hallucinations
Jul 21, 2026
Merged

fix: ordering hallucinations and per milestone contributors ordering#362
michalges merged 7 commits into
mainfrom
fix/ordering-hallucinations

Conversation

@michalges

@michalges michalges commented Jun 5, 2026

Copy link
Copy Markdown
Member

Ogólnie z jakiegoś powodu dało się sortować orderable resource'y (co trochę nie ma sensu - bo co niby działo się gdy zmieniało się sortowanie i wtedy przeciągało kolejność xD), stąd te niektóre zmiany w tym do testów

Na przyszłość można pomyśleć jak ten pivot ordering jakoś lepiej zintegrować z typami resourców, na razie to jest tak żeby było

Copilot AI review requested due to automatic review settings June 5, 2026 19:40
@michalges michalges self-assigned this Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Looks like you did not link an issue to this PR. If this PR completes a task, consider linking it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses inconsistent (“hallucinated”) ordering in resource lists by ensuring list data is refreshed after reorder mutations and by preventing sorting/filtering UI from interfering with orderable resources. It also updates React Query and adjusts QueryClient initialization for SSR.

Changes:

  • Add onSuccess support to the order mutation hook and invalidate the list query after successful reorders.
  • Disable sort/filter definitions + UI for orderable resources to avoid conflicting ordering behavior.
  • Update @tanstack/react-query to ^5.101.0, adjust QueryClient lifecycle, and clear query cache on logout.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/features/abstract-resource-list/hooks/use-order-mutation.ts Adds onSuccess option forwarding to the mutation wrapper.
src/features/abstract-resource-list/components/infinite-scroller.tsx Introduces a shared queryKey and invalidates it after successful reorder.
src/features/abstract-resource-list/components/abstract-resource-list.tsx Skips sort/filter setup + UI for orderable resources.
src/features/abstract-resource-form/components/arf-relation-input.tsx Prevents orderable handling for many-to-many relations.
src/components/providers/root-providers.tsx Refactors QueryClient creation for SSR/client, but uses a non-public React Query API.
src/components/presentation/logout-button.tsx Clears React Query cache on logout during navigation.
package.json Bumps @tanstack/react-query dependency version.
package-lock.json Updates lockfile for new TanStack Query versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/providers/root-providers.tsx
Comment thread src/components/providers/root-providers.tsx
Copilot AI review requested due to automatic review settings July 13, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Comment thread src/tests/e2e/specs/milestones.spec.ts Outdated
Comment thread src/tests/e2e/specs/guide-articles.spec.ts Outdated
Copilot AI review requested due to automatic review settings July 13, 2026 15:20
@michalges
michalges force-pushed the fix/ordering-hallucinations branch from 82f9535 to dd94b78 Compare July 13, 2026 15:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Comment thread src/tests/e2e/specs/guide-articles.spec.ts
Comment thread src/components/providers/root-providers.tsx
@michalges
michalges requested a review from GTR1701 July 13, 2026 15:32
Copilot AI review requested due to automatic review settings July 19, 2026 11:47
@michalges
michalges force-pushed the fix/ordering-hallucinations branch from dd94b78 to 37b7e5f Compare July 19, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@michalges michalges changed the title fix: ordering hallucinations fix: ordering hallucinations and per milestone contributors ordering Jul 19, 2026
Copilot AI review requested due to automatic review settings July 19, 2026 11:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@GTR1701 GTR1701 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wydaje się być git. Tam w query cliencie tylko jest przerzucone do funkcji a tak to działa tak samo z tego co widzę.

@michalges
michalges merged commit 25f2e9b into main Jul 21, 2026
8 checks passed
@michalges
michalges deleted the fix/ordering-hallucinations branch July 21, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants