Commit a8b22f4
authored
chore: extract an interface named ConnectionRepository and adapt the current connection loader to use it. (#5476)
* chore: adapting ConnectionInfo to the new requirements
* chore: spike refactor
* chore: clean up and refactor connection store
* chore: some clean up
* chore: refactor ConnectionInfo so it's simpler
* chore: refactor so it works with the current format of ConnectionInfo
* chore: fix linting issues
* chore: extract references to the ConnectionStorage and ConnectionProvider as react context
* chore: remove deprecation warning
* chore: fix test name
* chore: fix linting issues:
* chore: fixing linting issues
* chore: fix tests
* chore: fix formatting
* chore: fix linting issues
* chore: fix latest linting issues, likely
* chore: rename methods to be clear
* chore: use localeCompare, it just does the same
* chore: refactor to use ConnectionRepository, better naming
* chore: linter complains
* chore: linting
* chore: fix autoconnect tests
* chore: add todo
* chore: fix clipboard tests
* chore: change name to non favourite connections
* chore: remove dns resolution code
* chore: extract providers to their own file
* chore: fix test references
* chore: rename to keep convention
* chore: fix dependency to connection storage
* chore: linting
* chore: fix oidc tests
* chore: fix linting issues
* chore: make the migrate function pure
* chore: fix typing errors
* chore: fix typings
* chore: add tests and use a normalised version of the connection1 parent 708287e commit a8b22f4
File tree
26 files changed
+894
-372
lines changed- packages
- compass-connections/src
- components
- connection-list
- stores
- compass-e2e-tests/tests
- compass-home
- src/components
- compass/src/app
- connection-form/src
- components
- hooks
- connection-info/src
- connection-storage
- src
26 files changed
+894
-372
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
295 | | - | |
| 296 | + | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | | - | |
312 | | - | |
313 | | - | |
| 312 | + | |
314 | 313 | | |
315 | 314 | | |
316 | 315 | | |
| |||
Lines changed: 76 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
97 | | - | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| 176 | + | |
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
178 | 191 | | |
179 | 192 | | |
180 | 193 | | |
| |||
338 | 351 | | |
339 | 352 | | |
340 | 353 | | |
| 354 | + | |
341 | 355 | | |
342 | 356 | | |
343 | 357 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
350 | 369 | | |
351 | 370 | | |
352 | 371 | | |
| |||
469 | 488 | | |
470 | 489 | | |
471 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
472 | 494 | | |
473 | 495 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
481 | 506 | | |
482 | 507 | | |
483 | 508 | | |
| |||
494 | 519 | | |
495 | 520 | | |
496 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
497 | 525 | | |
498 | 526 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
506 | 537 | | |
507 | 538 | | |
508 | 539 | | |
| |||
518 | 549 | | |
519 | 550 | | |
520 | 551 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
528 | 563 | | |
529 | 564 | | |
530 | 565 | | |
| |||
0 commit comments