Paging done, functions almost!
I finished making the logic for rendering issues. In the last devlog it was just displaying all of the issues at the same time. No paging system so if there was a lot of issues or long issues, they would simply… not appear.
It took me a really long time to work this out. I was mainly switching back and forth the rendering logic all the time and it went so far, that I had to use Claude to help me with it.
At the end, I ended up with a rendering logic that I am not really keen on, but it is the best one that can be used in Helyx and TUI environment.
Main obstacles were the Spectre.Console rendering functions and classes that were under IRenderable interface.
And also the limitations of Panels, Grids… Layout had everything I needed
. I wanted to cut the part which couldn’t be rendered and it should have looked like, like an unfinished Panel. Well, this was impossible. Without changing the core code of Spectre.Console or creating own system for making Panels it was impossible.
Also, I haven’t seen it as something that WOULD NEED an own system that would render comments. So I just made it when a comment cuts, it creates whole Panel with part of the comment that can be rendered and at the bottom is text saying that it continues on the next page… and on the other page at the top there’s text that, hey, it continues here!
Let’s finally talk about the Issue functions! I finished some simple one like:
- Close
- Reopen
and create an issue…
But I still have to create a system that can let you:
- Comment
- Edit comments
- Delete comments
- Lock issue
- Unlock issue
Those are currently in WIP, but in the next devlog they’ll be most probably finished and after everything is done with issues, I will move to Pull Requests!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.