Closed mvpoyatt closed 1 month ago
The recent updates enhance the user experience by altering default selection behaviors in the Packets
component and improving the API's default state handling. The stateFilter
array now starts with all states pre-selected, while the API defaults to a meaningful set of states when none are provided. Together, these changes optimize the initial display of packets and ensure more reliable functionality in the application.
Files | Change Summary |
---|---|
app/(routes)/packets/page.tsx |
The stateFilter array's selected properties for 'SENT', 'RECV,WRITE_ACK', and 'ACK' states were changed from false to true , altering the default selection. |
app/api/packets/route.ts |
The default value for the states variable in the GET function was changed from an empty string to 'SENT,RECV,WRITE_ACK,ACK' , enhancing robustness. |
🐇 In a world of packets, swift and bright,
The states now dance, a joyful sight.
Pre-selected choices, a breeze they bring,
Filtering packets, let the good times spring!
With defaults set, the flow is clear,
Cheers to changes, let's give a cheer! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
An empty 'where' part of the query was causing weird behavior not showing the most recent packets. Defaulting to all states when no states are selected prevents this case from occuring and fixes the issue.
Summary by CodeRabbit
New Features
Enhancements