File tree Expand file tree Collapse file tree
deployments/desktop/static Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 const DEMO_MODE = new URLSearchParams ( window . location . search ) . get ( "demo" ) === "1" ;
55 const LOCALE_KEY = "paperflow.desktop.locale" ;
66 const REPORT_HIGHLIGHTS_KEY = "paperflow.report.cardHighlights" ;
7+ const REPORT_LIST_LIMIT = 500 ;
78 const supportedLocales = new Set ( [ "zh" , "en" ] ) ;
89 const requestedLocale = new URLSearchParams ( window . location . search ) . get ( "lang" ) ;
910 const savedLocale = window . localStorage . getItem ( LOCALE_KEY ) ;
29562957 const query = $ ( "reportQuery" ) . value . trim ( ) ;
29572958 const days = $ ( "reportDays" ) . value || "30" ;
29582959 const date = $ ( "reportDate" ) . value || "" ;
2959- const data = await api ( `/api/reports?user_id=${ encodeURIComponent ( scopedUser ) } &q=${ encodeURIComponent ( query ) } &days=${ days } &date=${ encodeURIComponent ( date ) } &limit=120 ` ) ;
2960+ const data = await api ( `/api/reports?user_id=${ encodeURIComponent ( scopedUser ) } &q=${ encodeURIComponent ( query ) } &days=${ days } &date=${ encodeURIComponent ( date ) } &limit=${ REPORT_LIST_LIMIT } ` ) ;
29602961 state . reports = data . reports || [ ] ;
29612962 const count = data . count || state . reports . length ;
29622963 $ ( "reportSources" ) . textContent = ( data . source_dirs || [ ] ) . length
Original file line number Diff line number Diff line change 11( function ( ) {
2+ const REPORT_LIST_LIMIT = 500 ;
3+
24 const uiState = {
35 reports : [ ] ,
46 currentReport : null ,
340342 const q = byId ( "reportQuery" ) . value . trim ( ) ;
341343 const days = Number ( byId ( "reportDays" ) . value || 30 ) ;
342344 const exactDate = byId ( "reportDate" ) . value || "" ;
343- const data = await api ( `/api/reports?user_id=${ encodeURIComponent ( scopedUser ) } &q=${ encodeURIComponent ( q ) } &days=${ encodeURIComponent ( days ) } &date=${ encodeURIComponent ( exactDate ) } &limit=120 ` ) ;
345+ const data = await api ( `/api/reports?user_id=${ encodeURIComponent ( scopedUser ) } &q=${ encodeURIComponent ( q ) } &days=${ encodeURIComponent ( days ) } &date=${ encodeURIComponent ( exactDate ) } &limit=${ REPORT_LIST_LIMIT } ` ) ;
344346 uiState . reports = data . reports || [ ] ;
345347 const sourceDirs = data . source_dirs || [ ] ;
346348 const filters = [ ] ;
Original file line number Diff line number Diff line change @@ -2773,7 +2773,8 @@ def test_desktop_wiki_frontend_derives_architecture_from_backend_graph() -> None
27732773 assert "wikiMapCatalog" not in script
27742774 assert "concept:structured-memory" not in script
27752775 assert "concept:agent" not in script
2776- assert "&limit=120" in script
2776+ assert "REPORT_LIST_LIMIT = 500" in script
2777+ assert "&limit=${REPORT_LIST_LIMIT}" in script
27772778 assert "const query = rawQuery ||" not in script
27782779 assert 'DEMO_MODE ? demoWikiNodes : []' in script
27792780 assert 'class="wiki-entry-body"' in html
You can’t perform that action at this time.
0 commit comments