Skip to content

fix(drift): glitchy loader, item grouping bug, show hidden error - #630

Open
cooper (czxtm) wants to merge 1 commit into
push-tkywkxswnmkqfrom
push-lloqlnpzsrwq
Open

fix(drift): glitchy loader, item grouping bug, show hidden error#630
cooper (czxtm) wants to merge 1 commit into
push-tkywkxswnmkqfrom
push-lloqlnpzsrwq

Conversation

@czxtm

@czxtm cooper (czxtm) commented Aug 1, 2026

Copy link
Copy Markdown
Member
  • Fixes the "Build & Test" button on the drift review page that looks broken due to a missing loader, and not considering the nix flake check that also runs

  • If nix flake check failed, there was no way to know, now there's an error

  • Sometimes there should be multiple semantic groups but they showed up as one due to a bug, now we key DriftFileRow by file.hash instead of oldFilename + filename — robust against renames showing as separate entries.

  • refactored that big monolithic component

Drift review actions:
  - Surface a status message row (Checking…/Building…/Applying…/Check
    failed) with a CircleAlert icon for the failed state and a teal
    Loader2 spinner when busy.
  - Add a shimmer sheen on the Build & Test button while busy so the
    disabled state still reads as in-progress.
  - Swap the buildButtonLabel computation for a single source of truth.

on diff items, key DriftFileRow by file.hash instead of oldFilename
+ filename — robust against renames showing as separate entries.


chore(review): split up monolith file
@darkmatter

darkmatter Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🎨 Storybook preview

Open Storybook preview

Updated for 6d8ab4f


🧭 Story changes

Compared to push-tkywkxswnmkq (snapshot diff at story level):

🆕 New stories (1)

✏️ Changed stories (6)

💡 Update snapshots ↗ to regenerate baselines and open a PR.


⚠️ Detected UI changes (5)

These stories' HTML snapshots changed. I've added screenshots + links to the changed stories below. Review them carefully then accept the changes to regenerate baselines and include them in this PR:

Flows/Evolve › 3. Review (changes generated)

Flows/Evolve › 3. Review (changes generated)

Flows/Evolve › Review With Unsummarized Changes

Flows/Evolve › Review With Unsummarized Changes

Flows/Evolve › Review With External Build Detected

Flows/Evolve › Review With External Build Detected

Flows/Evolve › Review Diff Tab

Flows/Evolve › Review Diff Tab

Flows/Evolve › Review Discard Confirmation

Flows/Evolve › Review Discard Confirmation


Accept UI changes

  • Click here to accept these changes

Alternatively, you can run bun run test:update-snapshots locally to re-generate the baselines and then push the changes to this PR.

What does this do?

The screenshots above show UI changes detected by the Storybook
snapshot tests run on this PR. Each image is the rendered output of
a Storybook story from the code in this PR branch; the snapshot
test compared it against the committed baseline in
__snapshots__/ and flagged the difference.

Checking the box tells the darkmatter[bot] to regenerate the
baselines from this PR's current code and commit them directly to
this branch. The new baselines become the source of truth for
future runs — only accept after confirming the visual changes are
intentional.

Comparison baseline: the committed __snapshots__/ files on this
PR branch (carried forward from develop). Accept updates them in
place on this branch.

@czxtm
cooper (czxtm) marked this pull request as ready for review August 1, 2026 15:22
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
Warnings
⚠️

PR description is missing a ## Test Plan (or ## Testing Instructions) section. Add one describing how a reviewer can verify your change, or check No test plan needed if no testing is needed.

⚠️

No Linear issue ID found in this PR's title, description, or branch name (expected something like ENG-123). Add one so this work is traceable in Linear, or add #no-linear to the PR description to acknowledge it's intentionally untracked.

⚠️

New UI components were added without a Storybook story. Consider adding a sibling *.stories.tsx file:

  • apps/native/src/components/widget/drift/drift-discard-confirmation.tsx
  • apps/native/src/components/widget/drift/drift-review-actions.tsx
  • apps/native/src/components/widget/drift/drift-review-build-card.tsx
  • apps/native/src/components/widget/drift/drift-review-content.tsx
  • apps/native/src/components/widget/drift/drift-review-header.tsx
⚠️

New TypeScript source files were added without any new tests:

  • apps/native/src/components/widget/drift/drift-review-types.ts

📋 PR Overview

Lines changed 750 (+483 / -267)
Files 6 added, 7 modified, 0 deleted
Draft / WIP no
Has Test Plan no
Linear issue no
No Test Plan Needed no
New UI components yes (5)
New Storybook stories no
New Rust modules no
New TS source files yes (6)
New tests no
package.json touched no
Cargo.toml touched no
Infra / CI touched no

🔬 Coverage

Report Lines Statements Functions Branches
apps/native/coverage/coverage-summary.json 36.2% 35.9% 31.6% 30.5%

Generated by 🚫 dangerJS against 6d8ab4f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant