Dawnline 0.16.3
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions

- Move Dawnline to Services in LuCI and update links and documentation.
- Make activity messages clearer, including device renames and person-specific history.
- Prune redundant frontend tests.
This commit is contained in:
Aemeath committed 2026-10-31 12:21:53 +03:00
1 parent f2b5ba101b
commit b0d9982796
37 files changed
+452 -243

No files matched your search

+3 -25
View File
@@ -11,22 +11,9 @@ const run = (x: number, t: number, frames = 1): number[] => {
};
describe('caret glide', () => {
it('is 90% of the way in about 134 ms (8–9 frames), a touch over, then rests exactly on its target', () => {
const xs = run(0, 100);
expect(xs[7]).toBeLessThan(90);
expect(xs[8]).toBeGreaterThanOrEqual(90);
const peak = Math.max(...xs);
expect(peak).toBeGreaterThan(101);
expect(peak).toBeLessThan(103);
expect(xs.at(-1)).toBe(100);
expect(xs.length).toBeLessThan(40);
});
it('goes the same way to the left', () => {
const xs = run(100, 0);
expect(xs[8]).toBeLessThanOrEqual(10);
expect(Math.min(...xs)).toBeGreaterThan(-3);
expect(xs.at(-1)).toBe(0);
it('settles exactly on its target in either direction', () => {
expect(run(0, 100).at(-1)).toBe(100);
expect(run(100, 0).at(-1)).toBe(0);
});
it('takes a late frame as up to 2.5 frames, and is simply there after a long gap', () => {
@@ -84,13 +71,4 @@ describe('caret places', () => {
expect(places(field({ value: long, start: 0, end: 22 }), mono)).toEqual({ caret: 216, start: 16, end: 216, range: true });
expect(places(field({ value: long, start: 0, end: 22, scroll: 20 }), mono)).toEqual({ caret: 216, start: 16, end: 216, range: true });
});
it('measures only the text before each end', () => {
const seen: string[] = [];
places(field({ value: 'iPad', start: 1, end: 3 }), (s) => {
seen.push(s);
return mono(s);
});
expect(seen).toEqual(['i', 'iPa']);
});
});