Commit c523a07
committed
feat: use real homebrew untracked diff in filesystem view (#403)
## 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.


<!-- 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 needed1 parent 013ba51 commit c523a07
27 files changed
Lines changed: 709 additions & 269 deletions
File tree
- apps/native
- src-tauri
- examples
- src
- commands
- managed_edits
- src
- components/widget
- __snapshots__
- filesystem
- __snapshots__
- steps
- ipc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
| 491 | + | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| |||
Lines changed: 93 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
227 | | - | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| 240 | + | |
| 241 | + | |
236 | 242 | | |
237 | 243 | | |
238 | 244 | | |
| |||
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
| 258 | + | |
| 259 | + | |
252 | 260 | | |
253 | 261 | | |
254 | 262 | | |
| |||
451 | 459 | | |
452 | 460 | | |
453 | 461 | | |
454 | | - | |
| 462 | + | |
455 | 463 | | |
456 | | - | |
| 464 | + | |
457 | 465 | | |
458 | | - | |
459 | | - | |
| 466 | + | |
| 467 | + | |
460 | 468 | | |
461 | 469 | | |
462 | | - | |
| 470 | + | |
463 | 471 | | |
464 | | - | |
| 472 | + | |
465 | 473 | | |
466 | 474 | | |
467 | 475 | | |
468 | | - | |
| 476 | + | |
469 | 477 | | |
470 | | - | |
| 478 | + | |
471 | 479 | | |
472 | 480 | | |
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
476 | 484 | | |
477 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
478 | 519 | | |
479 | 520 | | |
480 | 521 | | |
| |||
483 | 524 | | |
484 | 525 | | |
485 | 526 | | |
486 | | - | |
| 527 | + | |
487 | 528 | | |
488 | 529 | | |
489 | | - | |
| 530 | + | |
490 | 531 | | |
491 | | - | |
| 532 | + | |
492 | 533 | | |
493 | | - | |
| 534 | + | |
494 | 535 | | |
495 | | - | |
| 536 | + | |
496 | 537 | | |
497 | | - | |
498 | | - | |
| 538 | + | |
| 539 | + | |
499 | 540 | | |
500 | 541 | | |
501 | 542 | | |
502 | | - | |
| 543 | + | |
503 | 544 | | |
504 | 545 | | |
505 | 546 | | |
506 | 547 | | |
507 | 548 | | |
508 | 549 | | |
509 | | - | |
510 | | - | |
| 550 | + | |
| 551 | + | |
511 | 552 | | |
512 | 553 | | |
513 | 554 | | |
| |||
516 | 557 | | |
517 | 558 | | |
518 | 559 | | |
519 | | - | |
| 560 | + | |
520 | 561 | | |
521 | 562 | | |
522 | 563 | | |
| |||
665 | 706 | | |
666 | 707 | | |
667 | 708 | | |
| 709 | + | |
| 710 | + | |
668 | 711 | | |
669 | 712 | | |
670 | 713 | | |
| |||
981 | 1024 | | |
982 | 1025 | | |
983 | 1026 | | |
984 | | - | |
| 1027 | + | |
985 | 1028 | | |
986 | 1029 | | |
987 | 1030 | | |
| |||
1007 | 1050 | | |
1008 | 1051 | | |
1009 | 1052 | | |
1010 | | - | |
| 1053 | + | |
| 1054 | + | |
1011 | 1055 | | |
1012 | 1056 | | |
1013 | | - | |
| 1057 | + | |
1014 | 1058 | | |
1015 | 1059 | | |
| 1060 | + | |
1016 | 1061 | | |
1017 | | - | |
| 1062 | + | |
1018 | 1063 | | |
1019 | 1064 | | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1020 | 1076 | | |
1021 | 1077 | | |
1022 | 1078 | | |
| |||
1029 | 1085 | | |
1030 | 1086 | | |
1031 | 1087 | | |
1032 | | - | |
1033 | | - | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1034 | 1093 | | |
1035 | 1094 | | |
1036 | 1095 | | |
1037 | 1096 | | |
1038 | 1097 | | |
1039 | 1098 | | |
1040 | | - | |
| 1099 | + | |
1041 | 1100 | | |
1042 | 1101 | | |
1043 | | - | |
| 1102 | + | |
1044 | 1103 | | |
1045 | | - | |
| 1104 | + | |
1046 | 1105 | | |
1047 | 1106 | | |
| 1107 | + | |
1048 | 1108 | | |
1049 | 1109 | | |
1050 | 1110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
| 17 | + | |
9 | 18 | | |
Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 19 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
0 commit comments