Skip to content

📒 Draw account summary codeblocks #870

Open

Description

@JFWooten4

What problem does your feature solve?

The current examples run through the balances of 3 accounts.

What would you like to see?

Rather than plaintext, draw a visual for each account's holdings.

What alternatives are there?

The existing plaintext makes things harder to follow than necessary.

Activity

  1. moved this from Backlog to Done in Dev Docson Jan 7, 2025
  2. moved this to To Do in Dev Docson Aug 7, 2025
  3. Pfed-prog commented on Aug 21, 2025

    @Pfed-prog
    Contributor

    I could take this issue. I want to draw images in figma.

  4. JFWooten4 commented on Sep 22, 2025

    @JFWooten4
    ContributorAuthor

    How is this going, Pavel? 💜

  5. Pfed-prog commented on Sep 23, 2025

    @Pfed-prog
    Contributor

    How is this going, Pavel? 💜

    I am experiencing problems with displaying markdown in the repository for some reason

  6. Pfed-prog commented on Sep 24, 2025

    @Pfed-prog
    Contributor
    Image
  7. JFWooten4 commented on Sep 24, 2025

    @JFWooten4
    ContributorAuthor

    Thanks a ton for coming around to help fix this! I know I can be weird but looks like the file was recently moved here. There've been a lot of link path changes over the years, and I appreciate the repository management help coauthoring merge conflicts when things get tough.

    I remember one of the first things I worked on was mired by changes. To the extent it's relevant, you can see the edit history of trezor/trezor-firmware#1691 (comment) where, within two days, a bunch of links were changed. But I know we can get this one across the finish line, and I am here to help 🙂

    How can I support your efforts?1 Is there a draft PR set up for this with the Figma link? Your other three PRs were awesome, and I really appreciate your efforts.

    Footnotes

    1. I haven't been able to get TikZ pictures to show up in Markdown either, lol. But I have had some success in this repo adding PNG snapshots. What approach have you been working with from the wireframe diagram outputs? ↩

  8. added a commit that references this issue on Sep 27, 2025
  9. Pfed-prog commented on Sep 27, 2025

    @Pfed-prog
    Contributor

    Thanks a ton for coming around to help fix this! I know I can be weird but looks like the file was recently moved here. There've been a lot of link path changes over the years, and I appreciate the repository management help coauthoring merge conflicts when things get tough.

    I remember one of the first things I worked on was mired by changes. To the extent it's relevant, you can see the edit history of trezor/trezor-firmware#1691 (comment) where, within two days, a bunch of links were changed. But I know we can get this one across the finish line, and I am here to help 🙂

    How can I support your efforts?1 Is there a draft PR set up for this with the Figma link? Your other three PRs were awesome, and I really appreciate your efforts.

    Footnotes

    1. I haven't been able to get TikZ pictures to show up in Markdown either, lol. But I have had some success in this repo adding PNG snapshots. What approach have you been working with from the wireframe diagram outputs? ↩

    Thank you so much for explanation. I have created graphs with python in the end.

  10. added a commit that references this issue on Oct 6, 2025
  11. JFWooten4 commented on Oct 7, 2025

    @JFWooten4
    ContributorAuthor

    Awesome work from both in the PR adding an image exemplifying the first example! 🎊 There were two iterations of drawings, and I see now how this also implicates some of the changes from @karthikiyer56.

    I apologize for not updating this after Karthik's update to the RPC endpoints, as their changes significantly affected how logged outputs get displayed.1 Part of my thinking here was that we could remove the old A, B, and C balance summary at the end of each subsection to reduce terse code viewing.2 I envisioned it alongside the first implementation by Pavel, which was not implemented, and here's a snippet from that I marked up:

    4319938b4cdf9745f759218905855d5abec88215

    The red slash is the parts I was originally envisioning this to replace, and I think that was obvious with the old codebase. When it was updated with a lot more comments, I should've updated this issue—my bad. Definitely the main reason I didn't do it myself is because I share Bri's review sentiments.

    While the bar chart seems like an easy answer, we both agree that it might not be "the best way to do this," AFAIK—but feel free to jump in. 💜 It's a weird challenge because a lot of the accounts have no balance, and A can't even hold the token as the issuer, so you have to show a "transfer motion" with static visuals.

    I really like what came out of the continued review, and I embedded a screenshot of the mermaid chart where I think it could make a lot of sense to embed it in place of the original bulky charts. I much prefer this segmented approach because the reader doesn't need to store the complete code example in their mind before scrolling down to the image, where they then have to process a completely new concept while keeping the event calls in the back of their head.

    Pavel, do you have the mermaid code for the omnibus diagram in example one? I'd love to play around with the elements and see if we can't split it up into the original reference and other examples.

    You did an awesome job in the first shot in terms of location, IMO, as it wasn't a completely separate example flow. But maybe inline mermaid would give us a chance to better represent what's happening with boxes stating balances using arrows for individual movements?

    bad-drawing

    Footnotes

    1. I won't touch on the syntax changes in code style just yet. But I was excited to see their PR coincide with new CB calls in stellar/JS. The new aggregation endpoints are great to make RPC comparable to Horizon, and I can't wait to see what we develop for the DEX endpoints. ↩

    2. Also, Karthik, I noticed a lot of new logging for routine transaction data like envelope submissions or item completion. I've not seen much of this explaining logic in the past code examples and, while Shaptic seems to support it, I liked the old approach which minimized CodeExample English documentation writing. There seem to be a lot of new function lines dedicating screen space to logging (as compared to this example which had a simple check-in state function.), and I was wondering what your inspirations are for things like header print statements on top of the descriptive variable names and thorough code comments? ↩

  12. added
    documentation
    good first issue
    on Jul 13, 2026
  13. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    Automated triage bot, acting for the docs maintainers.

    I am looking at this issue now. I will report what I find.

  14. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    Automated triage bot, acting for the docs maintainers.

    Standing down. A human already owns the remaining work.

    @JFWooten4 opened #2406 on 2026-04-28. It replaces the example1 PNG with an inline Mermaid diagram on this same page. That PR is still a draft. Draft PRs stay out of the review queue, so marking it ready is the next step.

    What main shows today:

    • Example 1 has one image. It sits in the "Clawback Flow Chart" collapsible.
    • Example 2 and Example 3 have no image.

    Mermaid works on this site. package.json pins @docusaurus/theme-mermaid 3.10.1, docusaurus.config.ts sets mermaid: true, and four docs pages already use it. So the format question from PR #1828 is settled in favour of Mermaid.

    One content question is still open from 2025-10-07, and it belongs to a maintainer:

    • Should the plaintext "Account A / B / C" balance blocks come out when a diagram replaces them?

    I will not open a competing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    • Status
      To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions