Commit 627835a
authored
Show fancier version comparison in update dialog (#1916)
Related tiny-pilot/tinypilot-pro#1620
This PR backports the version comparison UI from Pro's update-dialog
(based on our [discussion
here](#1914 (comment))).
Note that Community version strings look something like this
`0.0.0-0+aaaaaaa` (where `aaaaaaa` is the git commit short hash). We
purposefully strip the commit hash from being displayed because it
doesn't look as nice.
End result:
- <img width="522" height="339" alt="Screenshot 2025-09-23 at 16 41 11"
src="https://github.com/user-attachments/assets/6dfc5e11-424b-46e7-96a1-7fa234e53df8"
/>
- <img width="380" height="301" alt="Screenshot 2025-09-23 at 16 40 53"
src="https://github.com/user-attachments/assets/b7824acf-0ca0-42c3-a81e-69e1e248f68d"
/>
<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1916"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>1 parent 12830e2 commit 627835a
File tree
2 files changed
+72
-2
lines changed- app
- static/css
- templates/custom-elements
2 files changed
+72
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
46 | 70 | | |
47 | 71 | | |
48 | 72 | | |
| |||
73 | 97 | | |
74 | 98 | | |
75 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
76 | 111 | | |
77 | 112 | | |
78 | 113 | | |
| |||
81 | 116 | | |
82 | 117 | | |
83 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
84 | 125 | | |
85 | 126 | | |
86 | 127 | | |
| |||
226 | 267 | | |
227 | 268 | | |
228 | 269 | | |
229 | | - | |
| 270 | + | |
| 271 | + | |
230 | 272 | | |
231 | 273 | | |
232 | 274 | | |
233 | 275 | | |
234 | | - | |
| 276 | + | |
| 277 | + | |
235 | 278 | | |
236 | 279 | | |
237 | 280 | | |
| |||
0 commit comments