socialincome-san / public

Fighting global poverty with the help of everyday people and your coding skills. Public repository of the NGO and global initiative Social Income.
https://socialincome.org
Other
90 stars 26 forks source link

Add Search Bar #20

Closed ssandino closed 1 year ago

ssandino commented 2 years ago

Is your feature request related to a problem? Please describe. It's sometimes difficult to find a specific recipient or contributor in the list (as the sorting/filtering is not always working)

Describe the solution you'd like Adding a search bar like in the demo. See also FireCMS Documentation

Priorities:

Additional context We do have an Algolia NGO-account. We may have to add the Agolia Firebase Extension.

andrashee commented 2 years ago

Managed to setup a sync function using for the recipients using the extension. Manually import the existing ones.

Will now work on the code changes and document it.

mkue commented 2 years ago

It seems like you already implemented this @andrashee?

@ssandino, do you want to have the search bar for any other than the recipients collection?

ssandino commented 2 years ago

If possible yes! Not sure how it works within the pre-filtered NGO view. Possible?

andrashee commented 2 years ago

It seems like you already implemented this @andrashee?

Half done.

I used the firestore algolia extension to export the data to algolia. However, this seems to be limited to one collection afaik.

I think we should replace the extension with a firestore trigger function which we code by ourselves to not limit ourselves.

andrashee commented 2 years ago

@mkue it seems that one can install the extension multiple times to support the export of multiple collections: https://github.com/algolia/firestore-algolia-search/issues/79

Another way could be to not do it with an extension, but with code: https://github.com/fobo66/algolia-firebase-functions

Not sure what's the better way. The extension way seems to be the official way. Wdyt?

andrashee commented 2 years ago

The firecms example has also an implementation of the sync: https://github.com/Camberi/firecms/blob/master/example_backend/functions/src/algolia.ts

mkue commented 2 years ago

Cool! Lets' do that then?

ssandino commented 1 year ago

Possible to add it for the contributor users list too?