Skip to content

Conversation

@Jacob-Daniel
Copy link
Contributor

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:

  • A collection field
  • A query operator (e.g. $eq, $ne, $contains)
  • A target value

Summary of Work

  • Added support for filtering entries via collectionFilters defined in plugin settings
  • Refactored logic to respect these filters when rendering calendar entries
  • Resolved multiple TypeScript issues preventing master from building

TypeScript Issues Addressed

  • TS2322: Function not assignable to type ComponentType<{}> (admin index.ts)
  • TS2339: Property 'colors' does not exist on DefaultTheme (admin theme.d.ts)
  • TS2742: Inferred type not portable without reference to core Strapi types (server index.ts, controllers/index.ts, services/index.ts)
  • Added @ts-ignore in temporary cases where complex type inference could not be easily resolved

Next Steps (Planned)

  • Color-coded entries in calendar view based on a field or tag
  • Admin Calendar Page UI dropdowns or query inputs to manipulate filters dynamically

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant