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

[Bug]: ASCII art for empty contribution shows grid filled with all high-level blocks #50

Open
siddharthkoli opened this issue Dec 17, 2024 · 5 comments · May be fixed by #54
Open

[Bug]: ASCII art for empty contribution shows grid filled with all high-level blocks #50

siddharthkoli opened this issue Dec 17, 2024 · 5 comments · May be fixed by #54
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@siddharthkoli
Copy link

GitHub CLI Version

2.63.2

gh-skyline Version

0.0.4

What Operating System are you seeing the problem on?

Linux

What happened?

Running the extension for an empty contribution graph gives a grid filled with all high-level blocks.
I ran it with -u chrisreddington and -y 2013.

image

Running with -f however outputs blank blocks.
image

Is that the expected behaviour or a bug?

PS: I ran it on Codespaces

@siddharthkoli siddharthkoli added bug Something isn't working triage Issues to be triaged labels Dec 17, 2024
@github-project-automation github-project-automation bot moved this to Needs Review in gh-skyline Dec 17, 2024
@chrisreddington
Copy link
Collaborator

chrisreddington commented Dec 17, 2024

An interesting bug, thanks @siddharthkoli 🙏. I think the code normalises based on all contributions that have come back, so if you pick an empty year, then 'everything' would appear the same.

Replicated on my side, so I'll remove the triage label. Could be a good issue if anyone is up for taking a look at this one!

I assume the expected behaviour would be to see a grid of gaps, rather than a grid of blocks? So I think an approach to a fix could be checking whether there were any contributions throughout that period.

@chrisreddington chrisreddington moved this from Needs Review to Ready to Start in gh-skyline Dec 17, 2024
@chrisreddington chrisreddington added good first issue Good for newcomers help wanted Extra attention is needed and removed triage Issues to be triaged labels Dec 17, 2024
@siddharthkoli
Copy link
Author

siddharthkoli commented Dec 17, 2024

Can I work on this please? I was looking for good first issues for contributing. 🙂

@siddharthkoli
Copy link
Author

I assume the expected behaviour would be to see a grid of gaps, rather than a grid of blocks? So I think an approach to a fix could be checking whether there were any contributions throughout that period.

The same as -f flag in the screenshot? A grid of gaps is essentially empty right?

@chrisreddington
Copy link
Collaborator

Can I work on this please? I was looking for good first issues for contributing. 🙂

That would be great, thank you 🎉 🙏

I assume the expected behaviour would be to see a grid of gaps, rather than a grid of blocks? So I think an approach to a fix could be checking whether there were any contributions throughout that period.

The same as -f flag in the screenshot? A grid of gaps is essentially empty right?

Yep, exactly that 😄 I think the difference with -f or --full is that it pulls in data from other years, which means a 'zero' contribution is an empty contribution. Whereas if you happen to pick a year that has no contributions, then they all get normalised to being a contribution.

@siddharthkoli
Copy link
Author

@chrisreddington

image

is this fine or would it be better if I collapsed the blank space completely like with the -f option I posted in the initial comment?

@siddharthkoli siddharthkoli linked a pull request Dec 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Ready to Start
Development

Successfully merging a pull request may close this issue.

2 participants