Files
taskpile/frontend/node_modules/@testing-library/user-event/dist/esm/setup/directApi.js
Alvis f1d51b8cc8 Add side panels, task selection, graph animation, and project docs
- 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>
2026-04-08 11:23:06 +00:00

59 lines
1.9 KiB
JavaScript

import { setupDirect } from './setup.js';
function clear(element) {
return setupDirect().api.clear(element);
}
function click(element, options = {}) {
return setupDirect(options, element).api.click(element);
}
function copy(options = {}) {
return setupDirect(options).api.copy();
}
function cut(options = {}) {
return setupDirect(options).api.cut();
}
function dblClick(element, options = {}) {
return setupDirect(options).api.dblClick(element);
}
function deselectOptions(select, values, options = {}) {
return setupDirect(options).api.deselectOptions(select, values);
}
function hover(element, options = {}) {
return setupDirect(options).api.hover(element);
}
async function keyboard(text, options = {}) {
const { api, system } = setupDirect(options);
return api.keyboard(text).then(()=>system);
}
async function pointer(input, options = {}) {
const { api, system } = setupDirect(options);
return api.pointer(input).then(()=>system);
}
function paste(clipboardData, options) {
return setupDirect(options).api.paste(clipboardData);
}
function selectOptions(select, values, options = {}) {
return setupDirect(options).api.selectOptions(select, values);
}
function tripleClick(element, options = {}) {
return setupDirect(options).api.tripleClick(element);
}
function type(element, text, options = {}) {
return setupDirect(options, element).api.type(element, text, options);
}
function unhover(element, options = {}) {
const { api, system } = setupDirect(options);
system.pointer.setMousePosition({
target: element
});
return api.unhover(element);
}
function upload(element, fileOrFiles, options = {}) {
return setupDirect(options).api.upload(element, fileOrFiles);
}
function tab(options = {}) {
return setupDirect().api.tab(options);
}
export { clear, click, copy, cut, dblClick, deselectOptions, hover, keyboard, paste, pointer, selectOptions, tab, tripleClick, type, unhover, upload };