Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed website/assets/kates-cli-overview.png
Binary file not shown.
Binary file added website/assets/kates-ctx-profiles-chips.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/kates-dashboard-grid-aurora.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/kates-lab-classic-aurora.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/kates-lab-panels-dracula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed website/assets/kates-lab-tui.png
Binary file not shown.
213 changes: 145 additions & 68 deletions website/index.html

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions website/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,41 @@
var steps = ['Steady load: measuring the baseline', 'Injecting broker-pod-kill through LitmusChaos',
'Broker down: ISR shrinks, P99 climbs', 'Broker back: recovery time measured', 'Run graded A and stored; the CLI exits 0'];
var btns = arch.querySelectorAll('.arch-tl button'), bar = arch.querySelector('.arch-tl-bar span'), step = arch.querySelector('.arch-step');
var kzFig = document.querySelector('.kz');
var designBtns = document.querySelectorAll('[data-set-design]');
var winTitle = document.getElementById('arch-wintitle'), kzWinTitle = document.getElementById('kz-wintitle');
var designOrder = ['grid', 'panels', 'chips'];
var designTitles = {
grid: 'kates architecture — grid look, C → aurora',
panels: 'kates architecture — T → panels, C → dracula',
chips: 'kates architecture — classic look, C → chips / aurora'
};
var kzDesignTitles = {
grid: 'kates kafka tui — grid look, C → aurora',
panels: 'kates kafka tui — T → panels, C → dracula',
chips: 'kates kafka tui — classic look, C → chips / aurora'
};
function setDesign(name) {
arch.setAttribute('data-tui-design', name);
if (kzFig) kzFig.setAttribute('data-tui-design', name);
if (winTitle && designTitles[name]) winTitle.textContent = designTitles[name];
if (kzWinTitle && kzDesignTitles[name]) kzWinTitle.textContent = kzDesignTitles[name];
designBtns.forEach(function (b) {
b.setAttribute('aria-pressed', b.getAttribute('data-set-design') === name ? 'true' : 'false');
});
}
designBtns.forEach(function (b) {
b.addEventListener('click', function () { setDesign(b.getAttribute('data-set-design')); });
});
document.addEventListener('keydown', function (e) {
if (arch.classList.contains('paused') && (!kzFig || kzFig.classList.contains('paused'))) return;
if (e.target && (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA')) return;
if (e.key === 'T' || e.key === 'C') {
var cur = arch.getAttribute('data-tui-design') || 'grid';
var idx = (designOrder.indexOf(cur) + 1) % designOrder.length;
setDesign(designOrder[idx]);
}
});
var clip = arch.querySelector('#p99-clip rect'), head = arch.querySelector('.p99-head'), val = arch.querySelector('.p99');
var X0 = 784, W = 132;
function ms(p) { // illustrative P99 in ms, matching the hero terminal: 17.8 baseline, 41.2 with a broker down
Expand Down
513 changes: 422 additions & 91 deletions website/styles.css

Large diffs are not rendered by default.

Loading