Files
AFFiNE/packages
DarkSky 84fa64fd2d feat(collection): match custom property filters
Saved collections and the rule preview now match workspace custom
properties of the text, number, checkbox, and date types. The rules are the
same as the property filters of the web client.

- An unknown or deleted property, a type without filters, or a method that
  does not apply to the type is an error, as in the web client.

- Compare numbers as JavaScript Number does. A document without a value is
  NaN, so no number comparison matches it.

- All filter scopes share one source of custom properties. A filter reads
  the property type and the value from it when it matches a document.

- The document views, the sidebar rows, the saved collections, and the
  preview read the property tables again when their revisions change. A
  change that no store command made also shows at once. Only a filter by a
  custom property causes a read of the property tables.

- Add YjsTableDoc::for_each_row. It reads only the fields that the caller
  asks for, so other fields of a row cause no copies.
2026-12-04 23:17:18 +09:00
..