MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / readSinglePaper

Function readSinglePaper

deployments/desktop/static/desktop.js:2519–2528  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

2517 // click on one of three buttons per card. These helpers add j/k navigation
2518 // and single-key marking so the list can be worked through from the keyboard.
2519 // ==========================================================================
2520
2521 function paperCards() {
2522 return [...document.querySelectorAll(".paper-card")];
2523 }
2524
2525 function visiblePaperCards() {
2526 return paperCards().filter((card) => !card.hidden);
2527 }
2528
2529 function paperDisposition(number) {
2530 if (state.selected.has(number)) return "read";
2531 if (state.skipped.has(number)) return "skip";

Callers 1

bindEventsFunction · 0.85

Calls 5

uiFunction · 0.85
paperReportKeyFunction · 0.85
openReportFunction · 0.85
setPaperDispositionFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected