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

Split List View Widgets into "List View" and "Grid View" #124

Merged
merged 2 commits into from
Mar 23, 2024

Conversation

BharatAtbrat
Copy link
Contributor

@BharatAtbrat BharatAtbrat commented Mar 17, 2024

Fixes #121

List View Widgets had List View and Grid View stacked together, they can split into two
separate demos.

Introduced initial implementation for the same, Descriptions for both may need further discussion
Let me know any changes that need to be done
Screengrabs for the changes :
Grid View

2024-03-17.21-05-16.mp4

List View

2024-03-17.21-04-46.mp4

Part of #121

@BharatAtbrat BharatAtbrat force-pushed the add_list_grid_view branch 2 times, most recently from bc810e3 to 5b265b0 Compare March 17, 2024 16:40
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.

Nice

Can you update Column view description to be consistent with

Arrange a large and dynamic list of items in columns

and also update the document links

(the code of Column View is fine)

You can then mark this PR as ready and re-request my review


Adw.StatusPage {
title: _("Grid View");
description: _("Grid view presents a dynamic list of model items arranged in a grid");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description: _("Grid view presents a dynamic list of model items arranged in a grid");
description: _("Arrange a large and dynamic list of items in a grid");

(don't forget to update main.json)

title: _("List View Widgets");
description: _("List and Grid views present a large dynamic list of model items");
title: _("List View");
description: _("List View presents a dynamic list of vertically stacked model items");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description: _("List View presents a dynamic list of vertically stacked model items");
description: _("Arrange a large and dynamic list of items one after the other");

(don't forget to update main.json)

@BharatAtbrat
Copy link
Contributor Author

BharatAtbrat commented Mar 23, 2024

Arrange a large and dynamic list of items in columns

On it!
The documentation link for ColumnView points to https://docs.gtk.org/gtk4/class.ColumnView.html, should I split it into documentation and API reference similar to ListView and Documentation goes to: https://docs.gtk.org/gtk4/section-list-widget.html

Marking this ready, let me know if this isn't the correct change for the links <:)

Previously, List View widgets had both List View and Grid View
stacked together. Since Column view is a separate demo, It is more
logical to split List View Widgets into List View and Grid View

Final implementation for separating both views

Change descriptions for List View, Grid View and Column View
to be less verbose as suggested by @sonnyp

Add separate Documentation and Column API reference links
for Column View

Part of workbenchdev#121
@BharatAtbrat BharatAtbrat marked this pull request as ready for review March 23, 2024 14:40
@BharatAtbrat BharatAtbrat requested a review from sonnyp March 23, 2024 14:40
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.

Thanks!

Made a small change to doc links for consistency 536aecb

Please don't force push to your branches going forward. Multiple commits is fine - they get squashed into a single commit when I merge the PR

@sonnyp sonnyp merged commit c8e99f7 into workbenchdev:main Mar 23, 2024
1 check failed
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.

Split List view and Grid view demos
2 participants