Collection Filters #58
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merge Request Notes
This merge introduces support for filtering collection-type entries in the calendar view using a new plugin settings field:
collectionFilters
An array of filters combining:
$eq,$ne,$contains)Summary of Work
collectionFiltersdefined in plugin settingsTypeScript Issues Addressed
ComponentType<{}>(adminindex.ts)DefaultTheme(admintheme.d.ts)index.ts,controllers/index.ts,services/index.ts)@ts-ignorein temporary cases where complex type inference could not be easily resolvedNext Steps (Planned)
Next Steps (Suggestion)
Change calendar item click to show a pop-up with entry summary and an anchor/link to the corresponding collection item.
Review
I hope this is helpful, and I’m happy to have your input on potential improvements. If you feel the changes could be better aligned with the existing plugin etc. I’d be pleased if it’s a helpful addition, but I understand if this functionality isn’t accepted as part of the core project, it’s something I am working on for a separate project.
Jacob