aboutsummaryrefslogtreecommitdiff
path: root/backend/histplorer.py
AgeCommit message (Collapse)Author
2023-01-21Do more minor refactoringTerry Truong
Document some variables coupled between client and server. Add more term consistency ('unit', 'event density'). Make console messages more consistent.
2023-01-21Adjust backend coding styleTerry Truong
Increase line spacing, add section comments, etc
2023-01-15Fix searches failing in certain casesTerry Truong
Fix server handling of 'incl' query param Force update of idToEvent for certain searches Adjust search-highlight-removal code to avoid pending-search case Fix event-transition-skipping code in updateLayout() to handle quick repeated calls
2023-01-14Add img_dist and img_disp db tablesTerry Truong
Having separate event counts for events with images resolves some redundant server querying, and makes event count indicators moree representative.
2023-01-14Add 'imgonly' server query paramTerry Truong
Remove script for deleting events in db without images
2023-01-14Use ctgs= query param for type=info requestsTerry Truong
2023-01-14Allow showing events without imagesTerry Truong
Add setting for showing such events Fix searches not always avoiding filtered categories
2023-01-14Improve date display in info modalTerry Truong
Make desc field of EventInfo optional Don't require desc in type=info result Fix image not showing in info modal
2023-01-13Re-enable imagesTerry Truong
2023-01-06Implement filtering by event categoriesTerry Truong
Filter events in display and search suggestions. Make server queries allow specification of multiple categories. Make settings modal avoid disabling all categories.
2023-01-06Jump to and highlight search resultsTerry Truong
Use a 'searchTarget' prop of Timeline to trigger jumping to a search result. Make TimeLine prioritise search result in layout. When querying for events in App, check for a search target, and use incl= to retrieve it. On server, for the incl= query param, don't include the event if outside specified range.
2023-01-05Add partially-complete search modalTerry Truong
For now, use placeholder code for jumping to a search result. Add db index for case-insensitive event title searching. Make type=info requests accept title instead of ID (for looking up a searched-for title). Make EventInfo contain an Event field (for showing info in search suggestions). Add titleToEvent map in App, for use by SearchModal to look up searched-for titles. Add keyboard shortcuts to open/close search and info modals.
2023-01-04Add event info modalTerry Truong
Add InfoModal.vue, SCollapsible.vue, and icons. Update Timeline.vue, App.vue, lib.ts, and store.ts to display modal. For testing, send/use dummy EventInfo from server (still waiting on image downloads).
2023-01-04Add 'unit' column to event_disp tableTerry Truong
Use 'unit' to narrow search of 'event_disp' values Simplify SQL queries to use 'unit' instead of 'start' and 'fmt' Fix minor HistDate documentation error
2023-01-03Query server when zoomed in enough even if within an already queried rangeTerry Truong
For server query parameter range=date1.date2, exclude date2 Fix unnecessary calendar-to-year date conversion when building sql query For frontend DateRangeTree class, rename has() to contains()
2023-01-03Temporarily disable sending/showing event imagesTerry Truong
For testing while waiting for images to download
2023-01-02Adjust wikidata event specifiersTerry Truong
Do minor refactors: - Swap fmt=1 and fmt=2 in 'events' table - Make documentation consistently use BC and AD - import argparse at start of scripts
2022-12-29Make server send error for breaking unit-count limitTerry Truong
2022-12-29Show event-count data on timelineTerry Truong
Backend: Send event-count data to client in EventResponse instance Fix certain usages of gregorian calendar instead of julian Move HistDate, SCALES, etc, into cal.py Frontend: Make App update a unitCountMaps object using event-count data from server Make TimeLine show visual indication of unit counts Add showEventCounts option to store Update unit tests
2022-12-28Convert 'scores' table to 'events_disp', removing 'scores' columnTerry Truong
2022-12-28Use scale-associated event scores for uniform spreadTerry Truong
Add 'dist' and 'scores' db tables Add 'scale' server query parameter (and remove 'excl') Disregard event-end when querying database
2022-12-26Fix filtering expression in server scriptTerry Truong
2022-12-18Add unit testingTerry Truong
Install vitest, happy-dom, and @testing-library/vue Add lib.ts and rbtree.ts tests in tests/ Modularise some date-range-managing code from App.vue into lib.ts
2022-10-20Add gcal to client-side HistDatesTerry Truong
Add YearDate and CalDate Restrict non-calendar HistDates to years before 4713 BC
2022-10-20Account for null pop in histplorer.pyTerry Truong
2022-10-18Use shallowRef for event treeTerry Truong
- Fixes 'saved is null' errors - De-lint rbtree.ts - Add rbtree_shallow_copy(), for triggering changes upon modifying the eventTree (using triggerRef doesn't work)
2022-10-17Fix histplorer.py not accounting for start-only eventsTerry Truong
2022-10-05Add data serving scriptsTerry Truong
Add histplorer.py, implementing the http query interface Add unit test Add server.py as a simple backend dev server Update documentation