middleware icon indicating copy to clipboard operation
middleware copied to clipboard

Search functionality in the system logs UI

Open jayantbh opened this issue 1 year ago • 9 comments

Currently all the logs show up in a streaming format, but finding out something specific requires me to use the browser find-in-page functionality.

It would be nice to highlight specific logs and have the ability to jump to them right within the app.

jayantbh avatar Oct 01 '24 19:10 jayantbh

Hi @jayantbh ,

I would like to work on this issue. Could you please assign it to me?

Thank you!

Ryadav0654 avatar Oct 02 '24 15:10 Ryadav0654

It's done!

Would be a good idea to share your approach before you begin, to avoid rework.

jayantbh avatar Oct 02 '24 16:10 jayantbh

It's done!

Would be a good idea to share your approach before you begin, to avoid rework.

  • A search input to filter logs.
  • Highlighting of logs that match the search term.
  • Buttons to navigate to the next and previous highlighted logs.

Ryadav0654 avatar Oct 02 '24 17:10 Ryadav0654

Cool. I think in a subsequent update it'll be great to have a way to copy one or more lines of logs.

jayantbh avatar Oct 02 '24 17:10 jayantbh

HI @jayantbh , I can't find the system logs UI section. Can you tell me where to locate it? Thanks!

Ryadav0654 avatar Oct 05 '24 06:10 Ryadav0654

https://github.com/middlewarehq/middleware/issues/555#issuecomment-2391214331

jayantbh avatar Oct 05 '24 08:10 jayantbh

Hey @Ryadav0654 how's it going? :)

jayantbh avatar Oct 10 '24 08:10 jayantbh

Hi @jayantbh ,

I've created a pull request(#587) that implements a sticky, responsive search bar with log navigation (Previous/Next) and highlighting of matching search terms. It includes mobile-friendly layout adjustments.

Please review and let me know your feedback!

Thanks!

Ryadav0654 avatar Oct 10 '24 21:10 Ryadav0654

Assigned to @harshit078

jayantbh avatar Apr 09 '25 13:04 jayantbh