You are browsing as a guest. Sign up (or log in) to start making projects!

2h 49m 51s logged

DAGIT DEVLOG 4

Yoo!
I’ve made soo many updates and the resizing /clipping issues are still eating my brain like bugs :crying: :crying:

Progress overview

  • Decreased the sizes of reference being displayed also truncated lines in the gitlog so that the vertical clipping stops

  • I completely styled the UI using lipgloss and it looks soo much better now :yay: :yay: :yay: :yay: :yay:

  • Added highlighting to the head of the repo that pops a little more

  • Refactored the old way of refreshing the data

  • Refactored the code to increase readability

Explain

  • The git logs were looking odd because when the commit messages were long , the log that should only take the space of one line was now also taking space in the second line. So we fixed it using truncateMessages() function

  • As we are pushig to multiple tags . The reference also gets long and causes a clipping issue again. So we again simply dosent let the refs be that long[But the current implementation can cause the line to break suddenly that may not look good all the time]-

// Stop 'refs' being too long
if lipgloss.Width(refs) > 30 {
	refs = refs[:27] + "..."
}
  • And as dagit is a live visualizer, I removed the old way of refreshing the data[clicking [r] to refresh]. Now what we do is use tea.Tick and the time library to refresh the data every 1 second.

Issues that can be caused

  • We are currently refreshing data every second that can put a lot more load on the system when used inside a big repository, So in infuture I’m gonna work to give the user a way to choose the tick Rate

What im gonna work on now

  • Scrollbar for gitlog and also visualizer
  • A tick rate selector
  • File status panel that can be toggled with the visualizer
  • A way to search for different repo’s in the user’s computer and jumping between them(something like the nvim feature of finding files) –im not really sure of this :confuse:
0
157

Comments 2

@sol4r_on_hackclub

W utility

@Lxsh-S

Thanks!