1. 12 Dec, 2023 3 commits
    • Robert Knight's avatar
      Move `src/sidebar/{util/query-parser => helpers/query-parser}` · d41ff28d
      Robert Knight authored
      The loose distinction between `util/` and `helpers/` is that `util/` contains
      more general-purpose code that might be useful outside of the client, whereas
      `helpers/` contains more app-specific functions. The query parser is really the
      latter as it is closely linked to the annotation filtering logic implemented in
      `helpers/filter-annotations.ts`.
      d41ff28d
    • Robert Knight's avatar
      Rename `helpers/{view-filter => filter-annotations}` · 5d72dda4
      Robert Knight authored
      Rename the module to match the main function it exports. This hopefully make it
      more obvious what the module does.
      5d72dda4
    • Robert Knight's avatar
      Rename the module containing filter query parsing functions · 9333f013
      Robert Knight authored
      The difference between `util/search-filter.ts` and `helpers/view-filter.ts` was
      previously not obvious from the name. One contains code to parse queries entered
      by the user, the other contains code to filter annotations against the parsed
      queries. Rename the parsing module and its functions to make it more obvious
      what they do.
      9333f013
  2. 11 Dec, 2023 10 commits
  3. 06 Dec, 2023 5 commits
  4. 05 Dec, 2023 3 commits
  5. 04 Dec, 2023 8 commits
  6. 30 Nov, 2023 3 commits
    • Robert Knight's avatar
      Make page index retrieval work in EPUB-based books · 133ef3e7
      Robert Knight authored
      In real EPUB-based VS books, the `index` field of `PageInfo` objects returned by
      the `getCurrentPage` and `getPages` methods is undefined. Our mock VS book was
      incorrect in this respect.
      
      Correct the mock book to behave like real VS books here, and add a fallback
      method to obtain a page index for EPUB-based books by looking up the page in the
      list of pages returned by `MosaicBookElement.getPages`.
      133ef3e7
    • Robert Knight's avatar
      Add page number selectors to annotations in VitalSource EPUB books · 7c53e17e
      Robert Knight authored
      Previously page number selectors were only added for PDF-based books. We are
      soon going to want the ability to filter annotations in the sidebar by page
      number, so record them for EPUB-based books as well. Previously there was a
      concern about how reliable the page numbers would be. I think the VS
      documentation for publishers, mentioned in the comments added here, addresses
      that.
      7c53e17e
    • Alejandro Celaya's avatar
  7. 29 Nov, 2023 1 commit
  8. 28 Nov, 2023 3 commits
  9. 27 Nov, 2023 4 commits