Commit 2d7f692
chore: update to Tailwind CSS 4.0 (#125)
This pull request focuses on modernizing the UI codebase and updating
dependencies for improved stability and consistency. The most
significant changes include upgrading various dependencies in
`package.json`, standardizing the usage of utility class syntax (notably
the placement of `!` for Tailwind overrides), and refactoring
shimmer/loading indicator styles to use a shared CSS class. These
updates collectively enhance maintainability, visual consistency, and
compatibility with newer tooling.
**Dependency upgrades and tooling modernization:**
* Updated dependencies in `package.json` to newer versions, including
major upgrades for `react`, `react-dom`, `axios`, `immer`, `streamdown`,
`uuid`, and several dev tools. Added `@tailwindcss/postcss`,
`@tailwindcss/vite`, `tailwindcss`, and `tw-shimmer` for improved
styling and loading effects.
* Changed `postcss.config.js` to use `@tailwindcss/postcss` instead of
the generic `tailwindcss` and `autoprefixer` plugins, aligning with the
new dependency setup.
**UI styling and class syntax standardization:**
* Refactored Tailwind utility class syntax throughout component files,
moving the `!` modifier to the end of each class for consistency and to
match modern conventions. This affects components like `cell-wrapper`,
`message-card`, `message-entry-container`, `attachment-popover`,
`add-comments-button`, and `comment-item`.
[[1]](diffhunk://#diff-157c9a8283c879c70716c7590796e53e556ae6b0e0cbc8038a6afb4f3bd79fb3L13-R13)
[[2]](diffhunk://#diff-8975f0fa9a3603405f4f946517a5664a3d9daa76a45686a2731b36ad656af3d6L13-R30)
[[3]](diffhunk://#diff-bdc99d7f83bf940e6c4720d6c71d1a152a0f30c450437de80721a4c69ec27056L99-R103)
[[4]](diffhunk://#diff-bdc99d7f83bf940e6c4720d6c71d1a152a0f30c450437de80721a4c69ec27056L121-R121)
[[5]](diffhunk://#diff-a7ead10fda306e9f40d19c07cb451419827ecfcd58f6af88a9d7e7c1b942a4feL6-R13)
[[6]](diffhunk://#diff-169cd97f4ec14d427d7b8708f74adb2c6e75bcf92be343205efc6bb49a9fa1a1L94-R105)
[[7]](diffhunk://#diff-169cd97f4ec14d427d7b8708f74adb2c6e75bcf92be343205efc6bb49a9fa1a1L119-R123)
[[8]](diffhunk://#diff-4914530d0e63e87a1adc148040ac012bc6b3fdffa22387da0b645a5fb49bce03L24-R69)
**Shimmer/loading indicator improvements:**
* Removed inline shimmer animation styles and replaced them with a
shared `shimmer` CSS class for loading indicators and tool cards,
simplifying code and ensuring consistent loading effects. This change
impacts `loading-indicator.tsx`, `toolcall-prepare.tsx`, and
`tools/general.tsx`.
[[1]](diffhunk://#diff-055ce0c61219eb693f487cd58a5c6e449e39db3b40e2a9dde983558c4c23ec40L19-L35)
[[2]](diffhunk://#diff-055ce0c61219eb693f487cd58a5c6e449e39db3b40e2a9dde983558c4c23ec40L173-R156)
[[3]](diffhunk://#diff-96812e399ce5ec2119eb57438e29fb08489fe8956d59029efdc7ce0510638ee2L18-R18)
[[4]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL18-L30)
[[5]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL77-R64)
[[6]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL124-R111)
**Minor UI and accessibility tweaks:**
* Updated component class names for improved readability and
accessibility, including changes to button states, error messages, and
code block rendering.
[[1]](diffhunk://#diff-cb1d9a39dd3f77b8f285a7ec7f3a576f1a119742662488d405dc3ce866b95d79L18-R18)
[[2]](diffhunk://#diff-f98697c89f34ff3081b7ac6a66e7e9bb2ed6fe82d274042b1d602a897154a89fL18-R18)
[[3]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL114-R101)
[[4]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL139-R123)
[[5]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL114-R101)
[[6]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL139-R123)
[[7]](diffhunk://#diff-169cd97f4ec14d427d7b8708f74adb2c6e75bcf92be343205efc6bb49a9fa1a1L94-R105)
[[8]](diffhunk://#diff-169cd97f4ec14d427d7b8708f74adb2c6e75bcf92be343205efc6bb49a9fa1a1L119-R123)
[[9]](diffhunk://#diff-4914530d0e63e87a1adc148040ac012bc6b3fdffa22387da0b645a5fb49bce03L24-R69)
**Removal of unused code:**
* Deleted unused inline style constants for shimmer/loading effects,
further cleaning up the codebase.
[[1]](diffhunk://#diff-055ce0c61219eb693f487cd58a5c6e449e39db3b40e2a9dde983558c4c23ec40L19-L35)
[[2]](diffhunk://#diff-6bbab187f6b867777c579b60e164e230164a16b8b54121d874020105b1105fbcL18-L30)
These changes collectively improve the project's maintainability, visual
consistency, and readiness for future updates.
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 24438ec commit 2d7f692
122 files changed
Lines changed: 2604 additions & 2805 deletions
File tree
- webapp/_webapp
- src
- components
- message-entry-container
- tools
- paper-score-comment
- xtramcp
- devtool
- hooks
- libs
- query
- stores
- conversation
- handlers
- streaming
- __tests__
- utils
- __tests__
- views
- chat
- actions
- body
- header
- devtools
- extension-popup
- extension-settings
- components/HostPermissionWidget
- login
- office
- prompts
- hooks
- settings
- sections
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
55 | 53 | | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
65 | 59 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
69 | 65 | | |
70 | | - | |
| 66 | + | |
71 | 67 | | |
72 | 68 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
77 | 73 | | |
78 | | - | |
| 74 | + | |
79 | 75 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
87 | 82 | | |
88 | 83 | | |
89 | | - | |
90 | | - | |
| 84 | + | |
| 85 | + | |
91 | 86 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
97 | 91 | | |
98 | 92 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | | - | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
37 | 40 | | |
38 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 19 | | |
37 | 20 | | |
38 | 21 | | |
| |||
170 | 153 | | |
171 | 154 | | |
172 | 155 | | |
173 | | - | |
174 | | - | |
| 156 | + | |
175 | 157 | | |
176 | 158 | | |
177 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
0 commit comments