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

Invoice list modes #4422

Closed

Conversation

dennisreimann
Copy link
Member

Proof of concept and WIP — putting this out here to invite discussion and ideas for something that was wished for by @dergigi: Having the ability to quickly scan the invoices list and see the LNURL/Value 4 Value info, without having to toggle the details.

This POC introduces the concept of "view modes" for the invoices list, which can be toggled ­— similar to what an OS offers in the Finder/Explorer. Would need more UI tweaks and also technical refactoring, but this WIP state can be used to discuss the idea in general.

grafik

@dennisreimann dennisreimann added Enhancement Improvements to an existing feature UI / UX Front-end issues, for front-end designers Invoice Related to Invoices in BTCPay labels Dec 8, 2022
@dergigi
Copy link

dergigi commented Dec 8, 2022

Oooh, I love it! Thank you! 🧡

Any suggestions in regards to naming the various views? I'm not against the "V4V" label at all, but maybe something that delineates along easier to understand use-cases would make sense as well? Something like "Merchant" view vs. "Donation" view, or something like that. Could also have a 3rd one: "Messages", which would filter for comments only, so you'd have a spam-less DM system based on lightning addresses. (Should probably be a filter, just like "settled invoices" is a filter.)

Just spitballing here 😅

Once more: thank you for working on this! Soooo good 🤗

@dennisreimann
Copy link
Member Author

dennisreimann commented Dec 8, 2022

I think in the end it'd be best to have icons or maybe rethink how to ideally present these. My mental model for that is something like this:

grafik

One more thing to figure out when we get to redesign the invoices list – @dstrukt has mocks already, but this mode concept hasn't been discussed yet, so I wanted to put it out there, because imho it makes sense to assess it.

@dergigi
Copy link

dergigi commented Dec 8, 2022

I like it! Could be [ List / V4V / Mail ] for the use-cases described above (V4V being top-up invoices aka donations).

Screenshot 2022-12-08 at 20 47 56Screenshot 2022-12-08 at 20 49 16Screenshot 2022-12-08 at 20 49 42

@dstrukt
Copy link
Member

dstrukt commented Dec 13, 2022

Love the idea, and tend to agree, icons (with a potential label on hover) probably make the most sense, and as we start to add more to these views, is a reasonable method to handle these cases.

Definitely a few things to discuss with the larger invoice list view, but think what you guys are proposing here is great!

@woutersamaey
Copy link
Contributor

Having more control over the invoice grid is good, but I think we need to do more so that plugins can also add custom columns to grid for example. This means grids should become models with classes for columns and renderers, not just plain templates.

@dstrukt
Copy link
Member

dstrukt commented Dec 27, 2022

Interesting @woutersamaey do you mind walking through a plugin use-case?

Might be out of scope for this PR, but would be curious to hear some details to make sure I'm grasping the scope of what you're suggesting.

@dennisreimann dennisreimann force-pushed the invoice-list-modes branch 2 times, most recently from 173c18f to f54e93b Compare January 6, 2023 13:28
@Zaria05

This comment was marked as spam.

@dennisreimann dennisreimann removed this from the 1.8.0 milestone Jan 18, 2023
@dstrukt
Copy link
Member

dstrukt commented Jan 26, 2023

Pinging @woutersamaey .. mind elaborating?

@woutersamaey
Copy link
Contributor

Yes. Sure.

For example, suppose I have a plugin that auto-forwards the invoice payment to another address. This would be a per-invoice action so it would be handy to have an extra column on the invoice list page where I can see the forwarded to address, the forwarded amount, maybe some status, etc.

Same could be for auto-converting to fiat. Having an extra column on the invoice list that shows that status would also be nice.

It could also be simpler. Maybe I just want a column with some metadata field in there like the customer ID or some other column we don't have right now.

Same goes for all grids/lists basically.

The eCommerce software I work with during my day job has this kind of functionality. Columns can be added, moved, removed, sorting options can be added, different filter styles (i.e. search for text match in a column, but could also be from and to date if it's a datetime column).

Hope this helps give you some ideas of where grids/lists can go in tbe future.

For now the only option we have is to create a new page in the plugin and make our own (mostly copy-pasted) grid/list.

Link ID to details and use accordion button to toggle details.
Improve spacing.
Proof of concept and WIP: Introduce the concept of "view modes" for the invoices list, which can be toggled ­— similar to what an OS offers in the Finder/Explorer.
@Sjors
Copy link

Sjors commented Mar 6, 2023

Nice! I would perhaps drop the invoice ID column to make more room for the comments. It's also nice to have a filter to get only the invoices with comments.

I assume this already filters out invoices that are not v4v/boost/zap related?

Copy link

@Carolynmaspn Carolynmaspn left a comment

Choose a reason for hiding this comment

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

@dstrukt
Copy link
Member

dstrukt commented May 14, 2023

Will revisit this now that #4914 is about to be merged!

@dstrukt dstrukt self-assigned this May 14, 2023
Copy link

@id81214293-del id81214293-del left a comment

Choose a reason for hiding this comment

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

I don't understand

@dennisreimann
Copy link
Member Author

Closing this as it'll most likely need to get reimplemented, but it served as a useful prof of concept and kick-off for the discussion. Something we can maybe revisit in one of the upcoming releases, @dstrukt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvements to an existing feature Invoice Related to Invoices in BTCPay UI / UX Front-end issues, for front-end designers
Projects
Development

Successfully merging this pull request may close these issues.

None yet

9 participants