Skip to content

feat(demo): group notes by channel into card layout - #584

Merged
m-kus merged 2 commits into
02-26-feat_demo_transaction_builderfrom
02-26-feat_demo_group_notes_by_channel_into_card_layout
Mar 4, 2026
Merged

m-kus merged 2 commits into
02-26-feat_demo_transaction_builderfrom
02-26-feat_demo_group_notes_by_channel_into_card_layout

Conversation

@m-kus

@m-kus m-kus commented Feb 26, 2026 •

Copy link
Copy Markdown

TL;DR

Reorganized the notes display to group unspent notes by channel with pagination support and improved the visual layout with card-based design.

What changed?

  • Replaced the flat notes table with a card-based layout that groups notes by channel key
  • Added pagination to channel cards showing 10 notes per page with "Newer"/"Older" navigation
  • Introduced ChannelGroup type to organize notes by sender, token, and channel key
  • Reordered table columns in the channels section to show Channel Key before Next Note Index
  • Added sorting logic to display channel groups and notes by most recent first
  • Enhanced styling with new CSS classes for channel cards, pagination controls, and improved spacing

How to test?

  1. Load the demo application with multiple notes across different channels
  2. Verify that notes are grouped by channel key in separate cards
  3. Test pagination controls when a channel has more than 10 notes
  4. Confirm that channel groups are sorted by most recent activity
  5. Check that the "self" and "open" chips display correctly within the card layout

Why make this change?

This change improves the user experience by organizing notes in a more logical and visually appealing way. Grouping by channels makes it easier to understand note relationships, while pagination prevents performance issues and UI clutter when dealing with large numbers of notes. The card-based design provides better visual separation and makes the interface more scannable.


This change is Reviewable

@m-kus
m-kus marked this pull request as ready for review February 26, 2026 17:33
@m-kus
m-kus requested a review from noa-starkware February 26, 2026 17:33
@github-actions

github-actions Bot commented Feb 26, 2026 •

Copy link
Copy Markdown

Deploy preview for starknet-privacy-demo ready!

✅ Preview
https://starknet-privacy-demo-ns26afxe4-keep-starknet-strange.vercel.app

Built with commit a7164a0.
This pull request is being automatically deployed with vercel-action

@m-kus m-kus self-assigned this Feb 26, 2026
@m-kus
m-kus force-pushed the 02-26-feat_demo_group_notes_by_channel_into_card_layout branch from 3f0883d to 34cdfa3 Compare February 27, 2026 13:52
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from 35ff33c to a3615cb Compare March 4, 2026 13:23
@m-kus
m-kus force-pushed the 02-26-feat_demo_group_notes_by_channel_into_card_layout branch from 34cdfa3 to 251a143 Compare March 4, 2026 13:23
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from a3615cb to 399bc4b Compare March 4, 2026 13:28
@m-kus
m-kus force-pushed the 02-26-feat_demo_group_notes_by_channel_into_card_layout branch from 251a143 to 5d4a758 Compare March 4, 2026 13:28
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from 399bc4b to f5e8d24 Compare March 4, 2026 13:57
@m-kus
m-kus force-pushed the 02-26-feat_demo_group_notes_by_channel_into_card_layout branch from 5d4a758 to 276eca9 Compare March 4, 2026 13:57
@m-kus
m-kus merged commit 06319f1 into 02-26-feat_demo_transaction_builder Mar 4, 2026
4 of 5 checks passed
@m-kus
m-kus deleted the 02-26-feat_demo_group_notes_by_channel_into_card_layout branch March 4, 2026 19:30
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.

1 participant