Simplify client overview access controls and layout
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 14s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-07-14 22:06:38 +03:00
parent e5a69dcb73
commit 162ef861d7
7 changed files with 104 additions and 165 deletions

View File

@@ -2,7 +2,6 @@ import assert from 'node:assert/strict';
import test from 'node:test';
import {
accessTabForKey,
connectionAction,
copyText,
formatConnectionDuration,
@@ -94,16 +93,6 @@ test('copy uses the synchronous native path available on gateway HTTP', async ()
assert.equal(textarea.removed, true);
});
test('Gateway access tabs wrap with arrows and support Home and End', () => {
const tabs = ['gateway', 'proxy'];
assert.equal(accessTabForKey(tabs, 'gateway', 'ArrowLeft'), 'proxy');
assert.equal(accessTabForKey(tabs, 'proxy', 'ArrowRight'), 'gateway');
assert.equal(accessTabForKey(tabs, 'proxy', 'Home'), 'gateway');
assert.equal(accessTabForKey(tabs, 'gateway', 'End'), 'proxy');
assert.equal(accessTabForKey(tabs, 'gateway', 'Enter'), 'gateway');
});
test('subscription usage combines traffic and caps progress', () => {
assert.deepEqual(subscriptionUsage({ upload: 30, download: 80, total: 100, expire: 2 }), {
upload: 30,