Commit c685c68
authored
Duck.ai: Tabs lifecycle (#7131)
Task/Issue URL:
https://app.asana.com/1/137249556945/task/1211821284193230
### Description
This PR ensures that opening links in Duck.ai mode are stored as Tabs
and can be shown as such in the Tab Manager
### Steps to test this PR
Enable Fullscreen mode in AI Features
_Input Screen disabled - New Tab_
- [x] Fresh install, ensure Duck.ai is enabled
- [x] Open New Tab
- [x] Open Duck.ai from the Omnibar (Duck icon)
- [x] Verify Duck.ai loads in the same screen
- [x] Open Tab Manager
- [x] Verify tab is displayed as Duck.ai and there’s a preview image of
the chat
_Input Screen disabled - Browser_
- [x] Fresh install, ensure Duck.ai is enabled
- [x] Open New Tab and navigate to any website
- [x] Open Duck.ai from the Omnibar (Duck icon)
- [x] Verify Duck.ai loads in the same screen
- [x] Open Tab Manager
- [x] Verify tab is displayed as Duck.ai and there’s a preview image of
the chat
_Browser Menu - New Tab_
- [x] Fresh install, ensure Duck.ai is enabled
- [x] Open New Tab
- [x] Open Browser Menu and tap on Duck.ai
- [x] Verify Duck.ai loads in the same screen
- [x] Open Tab Manager
- [x] Verify tab is displayed as Duck.ai and there’s a preview image of
the chat
_Browser Menu - Browser_
- [x] Fresh install, ensure Duck.ai is enabled
- [x] Open New Tab and navigate to any website
- [x] Open Browser Menu and tap on Duck.ai
- [x] Verify Duck.ai loads in the same screen
- [x] Open Tab Manager
- [x] Verify tab is displayed as Duck.ai and there’s a preview image of
the chat
_Input Screen enabled - New Tab_
- [x] Fresh install, ensure Duck.ai is enabled and also Search & Duck.ai
mode
- [x] Open New Tab
- [x] Enter a query from the Input Screen in Duck.ai mode
- [x] Verify Duck.ai loads
- [x] Open Tab Manager
- [x] Verify tab is displayed as Duck.ai and there’s a preview image of
the chat
_Input Screen enabled - Browser_
- [x] Fresh install, ensure Duck.ai is enabled
- [x] Open New Tab and navigate to any website
- [x] Enter a query from the Input Screen in Duck.ai mode
- [x] Verify Duck.ai loads
- [x] Open Tab Manager
- [x] Verify tab is displayed as Duck.ai and there’s a preview image of
the chat1 parent a60a957 commit c685c68
File tree
16 files changed
+221
-53
lines changed- app/src
- androidTest/java/com/duckduckgo/app/browser
- main/java/com/duckduckgo/app
- browser
- di
- tabs/model
- test/java/com/duckduckgo/app/browser
- duckchat
- duckchat-api/src/main/java/com/duckduckgo/duckchat/api
- duckchat-impl/src
- main/java/com/duckduckgo/duckchat/impl
- inputscreen/ui
- state
- viewmodel
- test/kotlin/com/duckduckgo/duckchat/impl
- messaging/fakes
- ui/inputscreen
16 files changed
+221
-53
lines changedLines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| |||
607 | 609 | | |
608 | 610 | | |
609 | 611 | | |
| 612 | + | |
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
| |||
620 | 623 | | |
621 | 624 | | |
622 | 625 | | |
| 626 | + | |
623 | 627 | | |
624 | 628 | | |
625 | 629 | | |
| |||
692 | 696 | | |
693 | 697 | | |
694 | 698 | | |
| 699 | + | |
695 | 700 | | |
696 | 701 | | |
697 | 702 | | |
| |||
765 | 770 | | |
766 | 771 | | |
767 | 772 | | |
| 773 | + | |
| 774 | + | |
768 | 775 | | |
769 | 776 | | |
770 | 777 | | |
| |||
6341 | 6348 | | |
6342 | 6349 | | |
6343 | 6350 | | |
| 6351 | + | |
| 6352 | + | |
| 6353 | + | |
| 6354 | + | |
| 6355 | + | |
| 6356 | + | |
| 6357 | + | |
| 6358 | + | |
| 6359 | + | |
| 6360 | + | |
| 6361 | + | |
| 6362 | + | |
| 6363 | + | |
| 6364 | + | |
| 6365 | + | |
| 6366 | + | |
6344 | 6367 | | |
6345 | 6368 | | |
6346 | 6369 | | |
| |||
6400 | 6423 | | |
6401 | 6424 | | |
6402 | 6425 | | |
| 6426 | + | |
| 6427 | + | |
| 6428 | + | |
| 6429 | + | |
| 6430 | + | |
| 6431 | + | |
| 6432 | + | |
| 6433 | + | |
| 6434 | + | |
| 6435 | + | |
| 6436 | + | |
| 6437 | + | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
6403 | 6442 | | |
6404 | 6443 | | |
6405 | 6444 | | |
| |||
Lines changed: 9 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | 746 | | |
748 | 747 | | |
749 | 748 | | |
| |||
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
841 | 839 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
852 | 844 | | |
853 | 845 | | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
854 | 849 | | |
855 | | - | |
856 | | - | |
857 | | - | |
| 850 | + | |
| 851 | + | |
858 | 852 | | |
859 | 853 | | |
860 | 854 | | |
| |||
Lines changed: 34 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
| 1082 | + | |
1082 | 1083 | | |
1083 | 1084 | | |
1084 | 1085 | | |
| |||
1132 | 1133 | | |
1133 | 1134 | | |
1134 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
1135 | 1138 | | |
1136 | 1139 | | |
1137 | 1140 | | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1141 | 1145 | | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
| 1146 | + | |
1148 | 1147 | | |
1149 | 1148 | | |
1150 | 1149 | | |
| |||
1544 | 1543 | | |
1545 | 1544 | | |
1546 | 1545 | | |
| 1546 | + | |
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
| |||
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
| 1572 | + | |
1572 | 1573 | | |
1573 | 1574 | | |
1574 | 1575 | | |
| |||
1626 | 1627 | | |
1627 | 1628 | | |
1628 | 1629 | | |
1629 | | - | |
| 1630 | + | |
1630 | 1631 | | |
1631 | 1632 | | |
1632 | 1633 | | |
| |||
1899 | 1900 | | |
1900 | 1901 | | |
1901 | 1902 | | |
| 1903 | + | |
1902 | 1904 | | |
1903 | 1905 | | |
1904 | 1906 | | |
| |||
2185 | 2187 | | |
2186 | 2188 | | |
2187 | 2189 | | |
| 2190 | + | |
2188 | 2191 | | |
2189 | 2192 | | |
2190 | 2193 | | |
| |||
4470 | 4473 | | |
4471 | 4474 | | |
4472 | 4475 | | |
4473 | | - | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
4474 | 4483 | | |
4475 | 4484 | | |
4476 | 4485 | | |
| |||
4481 | 4490 | | |
4482 | 4491 | | |
4483 | 4492 | | |
4484 | | - | |
4485 | | - | |
4486 | | - | |
4487 | | - | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
4488 | 4507 | | |
4489 | 4508 | | |
4490 | 4509 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
510 | | - | |
511 | 509 | | |
512 | 510 | | |
513 | | - | |
| 511 | + | |
514 | 512 | | |
515 | 513 | | |
516 | 514 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
72 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
103 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
109 | 120 | | |
110 | | - | |
| 121 | + | |
111 | 122 | | |
112 | 123 | | |
113 | 124 | | |
| |||
187 | 198 | | |
188 | 199 | | |
189 | 200 | | |
190 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
191 | 206 | | |
192 | 207 | | |
193 | 208 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
0 commit comments