Skip to content

[Graphite MQ] Draft PR GROUP:spec_762ef7 (PRs 393, 403)#407

Closed
graphite-app[bot] wants to merge 2 commits into
developfrom
gtmq_spec_762ef7_1781308446094-9f780a4d-e320-4874-87e8-bafbc7d6bb8c
Closed

[Graphite MQ] Draft PR GROUP:spec_762ef7 (PRs 393, 403)#407
graphite-app[bot] wants to merge 2 commits into
developfrom
gtmq_spec_762ef7_1781308446094-9f780a4d-e320-4874-87e8-bafbc7d6bb8c

Conversation

@graphite-app

@graphite-app graphite-app Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This draft PR was created by the Graphite merge queue.
Trunk will be fast forwarded to the HEAD of this PR when CI passes, and the original PRs will be closed.

The following PRs are included in this draft PR:

…t tracking in the filesystem UI (#393)

## Summary

When you choose to "track" untracked Homebrew items either individually or as a section, use direct managed edits instead of the agent, which is 1000x faster and more reliable. I should note that it _also_ routes you through the `.nixmac` directory path which the agent generally won't do. This seems like a possible area for a broader discussion @fkb032 @czxtm

To enable this, I did some fairly minor refactoring of the existing Homebrew code. So extending this high-level approach to "defaults" and "startup items" will be more work as we'll need to add analogous helper code for it (where it already existed for brew).

<!-- What does this PR do? Why? -->

## Test Plan

Couple of new unit tests, plus manual testing.

- [ ] No test plan needed

## Docs

- [ ] Docs updated (companion PR in darkmatter/nixmac-web: #\___)
- [x] No docs update needed
## Summary

Start swapping out the fake data on the "Untracked" tab of file system view by integrating the same Homebrew diff that the pre-existing chip uses. This involves several changes and refactorings:

- Add separate sections for brews/casks/taps simiar to how the chip popup menu works.
- Add expanders since in practice some of these sections can get really long (see screenshot).
- Fix pre-existing unrelated bug with the brew list command and add logging so it's not totally silent in the future.
- Make the "untracked" banner on the begin step delay-loaded and dynamic with the correct count.
- Remove the "Track all" button since it never worked right and would work even less right with potentially hundreds of items. We can look into bringing it back once the untracked support is "done". Also see screenshot.

The data for "defaults" and "startup items" is still the fake data. I will work on defaults next. Note that there is a lot of demo/AI cruft remaining particularly in data.ts that will continue to disappear the closer we get to the goal.

Another potential follow-up item is some caching or limitations on how often we automatically scan, although empirically right now it's not unreasonably slow imo.

![Screenshot 2026-06-12 at 11.25.48 AM.png](https://app.graphite.com/user-attachments/assets/635f022e-e918-4f81-9177-c300c7e34489.png)

![Screenshot 2026-06-12 at 10.45.38 AM.png](https://app.graphite.com/user-attachments/assets/dc8b351c-6bd1-4833-a402-3a3b442eb84f.png)

<!-- What does this PR do? Why? -->

## Test Plan

Some minor updates to unit tests, plus lots of manual testing. Also needed to update a bunch of snaps, hopefully this doesn't run into merge issues etc.

- [ ] No test plan needed

## Docs

- [ ] Docs updated (companion PR in darkmatter/nixmac-web: #\___)
- [x] No docs update needed
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

🎨 Storybook preview

Open Storybook preview

Updated for c523a07


🧭 Story changes

Compared to develop (snapshot diff at story level):

🆕 New stories (3)

✏️ Changed stories (40)

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


❌ Failed snapshots (2)

These stories' HTML snapshots changed. Update snapshots ↗ to regenerate baselines and open a PR:

Widget/Filesystem/FileList › Untracked Section

Widget/Filesystem/FileList › Untracked Section

Widget/Filesystem/UntrackedCard › Homebrew Brews

Widget/Filesystem/UntrackedCard › Homebrew Brews

@github-actions

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.

⚠️ PR is marked WIP / draft — do not merge until ready for review.
⚠️

New Rust modules were added without tests. Consider adding a #[cfg(test)] mod tests { ... } block or a file under apps/native/src-tauri/tests/:

  • apps/native/src-tauri/src/shared_types/managed_edits.rs

📋 PR Overview

Lines changed 1195 (+955 / -240)
Files 3 added, 26 modified, 0 deleted
Draft / WIP yes
Has Test Plan no
No Test Plan Needed no
New UI components no
New Storybook stories no
New Rust modules yes (1)
New TS source files no
New tests yes (1)
package.json touched no
Cargo.toml touched no
Infra / CI touched no

🔬 Coverage

Report Lines Statements Functions Branches
apps/native/coverage/coverage-summary.json 25.6% 25.8% 24.7% 18.4%

Generated by 🚫 dangerJS against c523a07

@graphite-app graphite-app Bot closed this Jun 12, 2026
@graphite-app graphite-app Bot deleted the gtmq_spec_762ef7_1781308446094-9f780a4d-e320-4874-87e8-bafbc7d6bb8c branch June 12, 2026 23:59
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