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

Add GOM demo #200

Merged
merged 15 commits into from
Oct 19, 2024
Merged

Add GOM demo #200

merged 15 commits into from
Oct 19, 2024

Conversation

BharatAtbrat
Copy link
Contributor

@BharatAtbrat BharatAtbrat commented Aug 8, 2024

Screengrabs of the current state [after commit ]:

2024-08-12.18-27-16.mp4

-Initial implementation, has bugs
Add text based filtering to showcase vs ID filtering
Design is still a WIP
Copy link
Contributor

@andyholmes andyholmes left a comment

Choose a reason for hiding this comment

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

This looks really great.

I think all this needs is some minor UX improvements, and few spots where the code could clearer (since demos are for educational purposes).

It's okay to put a few code comments highlighting key elements as well, such as the primary key for a table and the auto-migrate functionality.

src/Gom/main.blp Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
src/Gom/main.blp Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
Use SearchEntry for text search and SpinButton for
ID search and subsequent logic changes
Cleaned up logic when no results found
Re-organized the UI, cleaner implementation
Copy link
Contributor

@andyholmes andyholmes left a comment

Choose a reason for hiding this comment

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

I think this is great!

I feel the UI is still a bit odd, but we can revisit it after you get GOM into use for the search and see how it works in a real-world application.

Just needs the category/description update and I think we're good to move forward.

src/Gom/main.json Outdated Show resolved Hide resolved
@BharatAtbrat BharatAtbrat changed the title [WIP] library: Add GOM demo library: Add GOM demo Aug 13, 2024
@BharatAtbrat BharatAtbrat marked this pull request as ready for review August 13, 2024 10:39
BharatAtbrat added a commit to workbenchdev/Workbench that referenced this pull request Aug 13, 2024
Add Gom as dependency for Gom demo
ref #workbenchdev/demos#200
andyholmes pushed a commit to workbenchdev/Workbench that referenced this pull request Sep 5, 2024
@andyholmes
Copy link
Contributor

Can you rebase this when you get a moment, so we can be sure the GOM dependency is working?

@sonnyp sonnyp changed the title library: Add GOM demo Add GOM demo Sep 23, 2024
@sonnyp sonnyp added this to the 47 milestone Sep 23, 2024
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.

Workbench devel (from gnome nightly, makes sure to update if you already have it installed) now has GOM enabled so you can use it to iterate on this demo.

Nice demo!

src/Gom/main.json Outdated Show resolved Hide resolved
src/Gom/main.json Outdated Show resolved Hide resolved
src/Gom/main.blp Outdated Show resolved Hide resolved
src/Gom/main.blp Outdated Show resolved Hide resolved
src/Gom/main.blp Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
src/Gom/main.js Outdated Show resolved Hide resolved
BharatAtbrat and others added 6 commits October 9, 2024 22:29
rename folder to Database
change description, title
replace var with let
add newline
remove Toasts and subsequent use
temporarily disable closeDatabase function for checker
use sqlite databse
can't leave the adapter open
@sonnyp
Copy link
Contributor

sonnyp commented Oct 18, 2024

I pushed some tweaks 69f6079

  1. some improvements to the UI
  2. use async/await
  3. use an sqlite database
  4. load items automatically

@sonnyp sonnyp merged commit c4ee997 into main Oct 19, 2024
1 check passed
@sonnyp sonnyp deleted the atbrat/gom_demo branch October 19, 2024 11:27
@sonnyp
Copy link
Contributor

sonnyp commented Oct 19, 2024

Thanks!

@sonnyp sonnyp mentioned this pull request Nov 1, 2024
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.

3 participants