Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library: Add search bar inside library view #950

Merged
merged 3 commits into from
Jun 29, 2024
Merged

library: Add search bar inside library view #950

merged 3 commits into from
Jun 29, 2024

Conversation

BharatAtbrat
Copy link
Contributor

Add initial search bar widget (Code logic yet to be implemented)

Let me know if there are any improvements!

Screengrab of the change:

2024-06-26.21-39-04.mp4

Add initial search bar (Code logic yet to be implemented)
WIP- Map stores demos and categories corresp to name
Iterate through map and check if map entries contain user search term
Similarly iterate through category map and disable categories with no
corresp demo
Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make sure to use snake_case instead of camelCase for variables

For example demo_name, categoryWidget, categoryName

Also - I found this bug; the illustration grows in size when there are no search results - it shouldn't happen.

Screencast.from.2024-06-28.13-48-56.mp4

src/Library/Library.js Outdated Show resolved Hide resolved
src/Library/Library.js Outdated Show resolved Hide resolved
src/Library/Library.js Outdated Show resolved Hide resolved
src/Library/Library.js Outdated Show resolved Hide resolved
src/Library/Library.js Show resolved Hide resolved
Fix illustration growing in size when search results empty
Remove unnecessary comments
Less verbose code, optimize conditional statements
@BharatAtbrat
Copy link
Contributor Author

BharatAtbrat commented Jun 28, 2024

Can you make sure to use snake_case instead of camelCase for variables

For example demo_name, categoryWidget, categoryName

Also - I found this bug; the illustration grows in size when there are no search results - it shouldn't happen.

Screencast.from.2024-06-28.13-48-56.mp4

Adding the illustration inside a Gtk.Box and vexpand set to false seems to fix it

Screencast.from.2024-06-28.23-45-34.mp4

@BharatAtbrat BharatAtbrat requested a review from sonnyp June 28, 2024 18:18
@sonnyp sonnyp merged commit d4066fc into main Jun 29, 2024
1 check passed
@sonnyp sonnyp deleted the addsearchbar branch June 29, 2024 22:47
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.

None yet

2 participants