Commit 0bcfc6a
authored
🤖 refactor: remove generic links, keep only PR badge (#1658)
## Summary
Removes the generic link detection/dropdown feature, keeping only the PR
status badge in the workspace header.
## Changes
**Removed:**
- `LinksDropdown` component (showed chat-extracted URLs)
- Generic link detection from `StreamingMessageAggregator`
- `useWorkspaceLinks` hook from `WorkspaceStore`
- `GenericLink` type, `extractUrls`, `categorizeUrl`, `deduplicateLinks`
utilities
- Link detection test files
**Simplified:**
- `WorkspaceLinks` now only renders `PRLinkBadge`
- `links.ts` now only contains PR-related types (`GitHubPRLink`,
`GitHubPRStatus`)
## PR badge behavior (unchanged)
The PR badge is detected from the workspace's current branch via `gh pr
view` - not from chat content.
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking:
`high` • Cost: `$49.60`_1 parent 5b59d56 commit 0bcfc6a
File tree
8 files changed
+20
-784
lines changed- src
- browser
- components
- stores
- stories
- utils/messages
- common/types
8 files changed
+20
-784
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | | - | |
9 | 6 | | |
10 | | - | |
11 | 7 | | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 14 | | |
24 | 15 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 16 | + | |
30 | 17 | | |
31 | 18 | | |
32 | 19 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 20 | + | |
42 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
| |||
871 | 868 | | |
872 | 869 | | |
873 | 870 | | |
874 | | - | |
875 | 871 | | |
876 | 872 | | |
877 | 873 | | |
| |||
1873 | 1869 | | |
1874 | 1870 | | |
1875 | 1871 | | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
1885 | | - | |
1886 | | - | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
1890 | | - | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | 1872 | | |
1917 | 1873 | | |
1918 | 1874 | | |
| |||
| 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 | | |
| |||
0 commit comments