- Foldable left panel (user profile) and right panel (task details) - Clicking a task in the list or graph node selects it and shows details - Both views (task list + graph) always mounted via absolute inset-0 for correct canvas dimensions; tabs toggle visibility with opacity - Graph node selection animation: other nodes repel outward (charge -600), then selected node smoothly slides to center (500ms cubic ease-out), then charge restores to -120 and graph stabilizes - Graph re-fits on tab switch and panel resize via ResizeObserver - Fix UUID string IDs throughout (backend returns UUIDs, not integers) - Add TaskDetailPanel, UserPanel components - Add CLAUDE.md project documentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
var Test = require('tape/lib/test');
|
|
var is = require('object-is');
|
|
|
|
var deepEqual = require('../');
|
|
var assert = require('../assert');
|
|
|
|
var equal = process.env.ASSERT ? function assertDeepEqual(a, b, options) {
|
|
try {
|
|
if (options && options.strict) {
|
|
assert.deepStrictEqual(a, b);
|
|
} else {
|
|
assert.deepEqual(a, b);
|
|
}
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
return true;
|
|
} : deepEqual;
|
|
|
|
function equalReversed(t, a, b, isEqual, msg, isStrict, skipReversed) {
|
|
var actual = isStrict
|
|
? equal(a, b, { strict: true })
|
|
: equal(a, b);
|
|
var suffix = isEqual ? ' are equal' : ' are not equal';
|
|
t.equal(actual, !!isEqual, msg + suffix);
|
|
if (typeof skipReversed === 'boolean' ? !skipReversed : !is(a, b)) {
|
|
var actualReverse = isStrict
|
|
? equal(b, a, { strict: true })
|
|
: equal(b, a);
|
|
t.equal(actualReverse, !!isEqual, msg + suffix + ' (reversed)');
|
|
}
|
|
}
|
|
function deepEqualTest(t, a, b, msg, isEqual, isStrictEqual, skipReversed) {
|
|
equalReversed(t, a, b, isEqual, msg, false, skipReversed);
|
|
equalReversed(t, a, b, isStrictEqual, 'strict: ' + msg, true, skipReversed);
|
|
}
|
|
|
|
Test.prototype.deepEqualTest = function (a, b, message, isEqual, isStrictEqual, skipReversed) {
|
|
return deepEqualTest(this, a, b, message, !!isEqual, !!isStrictEqual, skipReversed);
|
|
};
|