website icon indicating copy to clipboard operation
website copied to clipboard

✨ Enhancement: Add Filter by Author in Blog Page

Open Adi-204 opened this issue 11 months ago • 7 comments

Is your feature request related to a problem? Please describe

Currently, users can only filter blogs by category. To improve usability and convenience, we should add an "Author" filter to the Blog page, allowing users to view blogs written by a specific author.

Describe the solution you'd like

Proposed Solution

  1. Introduce a dropdown or search-based filter to select an author.
  2. Also change existing filter by category to a dropdown.

Describe alternatives you've considered

No response

Additional context

No response

Are you working on this?

Yes

Adi-204 avatar Jan 09 '25 16:01 Adi-204

Please assign this issue to me if it aligns with the organization's goals and can add value.

Adi-204 avatar Jan 10 '25 15:01 Adi-204

@Adi-204 you can pls. share you're ideas for implementation of authors filter.

DhairyaMajmudar avatar Jan 19 '25 13:01 DhairyaMajmudar

@DhairyaMajmudar, I suggest we introduce filtering options, such as 'Author' and 'Category,' to enhance functionality. This will improve the user experience. Let me know your thoughts!

Adi-204 avatar Jan 19 '25 19:01 Adi-204

@DhairyaMajmudar I implemented the filter feature.

https://github.com/user-attachments/assets/be1bcc2f-5a7a-4ed6-adaf-ae1cda8d3442

But because I write code to extract all authors name from blogs the getStaticProps is showing following error. Warning: data for page "/blog" is 443 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance. Please provide feedback.

Adi-204 avatar Jan 23 '25 10:01 Adi-204

@DhairyaMajmudar I implemented the filter feature. Untitled.video.-.Made.with.Clipchamp.mp4

But because I write code to extract all authors name from blogs the getStaticProps is showing following error. Warning: data for page "/blog" is 443 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance. Please provide feedback.

I have figured out an implementation to reduce the 443kB of data. I will be raising an issue once its done.

cbum-dev avatar Jan 23 '25 10:01 cbum-dev

@DhairyaMajmudar can you please provide feedback/suggestions? Can I raise PR?

Adi-204 avatar Feb 02 '25 06:02 Adi-204

@benjagm @DhairyaMajmudar can you provide any update on this please thanks : )

Adi-204 avatar Mar 18 '25 18:03 Adi-204

I think we will pause this feature for now. We would like to have the codebase as lean as possible and we dont have a large amount of posts.

Thanks a lot for your contributions.

benjagm avatar Jun 14 '25 08:06 benjagm