mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-20 23:41:42 +01:00
Yaak Proxy: HTTPS decryption UI, and Info and Body in the card's tabs
The strip, quiet encrypted rows, warning rows for refused handshakes, the encrypted card with named actions, trust at the first Decrypt, the toast with Undo and Reconnect, the pill's Decrypt everything switch, Settings' Decryption section, the Encrypted sidebar row, and two-step setup. Both body tabs read Body with a type badge; Info leads the request half with the timeline folded in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5148b0f0ba
commit
b0425069f4
43 files changed
+3019
-586
No files matched your search
@@ -8,8 +8,14 @@ vi.mock("@yaakapp-internal/ui", async () => {
|
||||
return { selectedIdsFamily: () => atom<string[]>([]) };
|
||||
});
|
||||
|
||||
const { activeQueryAtom, allTrafficTotalAtom, flowTotalAtom, hideSystemAtom, nonSystemTotalAtom } =
|
||||
await import("./store");
|
||||
const {
|
||||
activeQueryAtom,
|
||||
allTrafficTotalAtom,
|
||||
flowTotalAtom,
|
||||
hideEncryptedAtom,
|
||||
hideSystemAtom,
|
||||
allTrafficShownAtom,
|
||||
} = await import("./store");
|
||||
|
||||
describe("Show in All Traffic, in System's menu", () => {
|
||||
test("shows System's traffic in All traffic by default", () => {
|
||||
@@ -20,13 +26,45 @@ describe("Show in All Traffic, in System's menu", () => {
|
||||
|
||||
test("leaves System out of All traffic and brings it back at once", () => {
|
||||
const store = createStore();
|
||||
store.set(nonSystemTotalAtom, 3);
|
||||
store.set(allTrafficShownAtom, 3);
|
||||
expect(store.get(allTrafficTotalAtom)).toBe(store.get(flowTotalAtom));
|
||||
store.set(hideSystemAtom, true);
|
||||
expect(store.get(activeQueryAtom)).toEqual({ query: "", hideSystem: true });
|
||||
expect(store.get(activeQueryAtom)).toEqual({
|
||||
query: "",
|
||||
hideSystem: true,
|
||||
hideEncrypted: false,
|
||||
});
|
||||
expect(store.get(allTrafficTotalAtom)).toBe(3);
|
||||
store.set(hideSystemAtom, false);
|
||||
expect(store.get(activeQueryAtom)).toBeNull();
|
||||
expect(store.get(allTrafficTotalAtom)).toBe(store.get(flowTotalAtom));
|
||||
});
|
||||
});
|
||||
|
||||
describe("Show in All Traffic, in Encrypted's menu", () => {
|
||||
test("shows encrypted connections in All traffic by default", () => {
|
||||
expect(createStore().get(hideEncryptedAtom)).toBe(false);
|
||||
});
|
||||
|
||||
test("leaves encrypted connections out of All traffic, with System or alone", () => {
|
||||
const store = createStore();
|
||||
store.set(allTrafficShownAtom, 5);
|
||||
store.set(hideEncryptedAtom, true);
|
||||
expect(store.get(activeQueryAtom)).toEqual({
|
||||
query: "",
|
||||
hideSystem: false,
|
||||
hideEncrypted: true,
|
||||
});
|
||||
expect(store.get(allTrafficTotalAtom)).toBe(5);
|
||||
store.set(hideSystemAtom, true);
|
||||
expect(store.get(activeQueryAtom)).toEqual({
|
||||
query: "",
|
||||
hideSystem: true,
|
||||
hideEncrypted: true,
|
||||
});
|
||||
store.set(hideEncryptedAtom, false);
|
||||
store.set(hideSystemAtom, false);
|
||||
expect(store.get(activeQueryAtom)).toBeNull();
|
||||
expect(store.get(allTrafficTotalAtom)).toBe(store.get(flowTotalAtom));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user