anitab-org.github.io icon indicating copy to clipboard operation
anitab-org.github.io copied to clipboard

refactor: replace capital letters with normal letters on our navbar

Open ftonato opened this issue 3 years ago • 21 comments

Description

In order to fix the problem related on the issue #295 I've created the code to fix it.

Fixes #295

Type of Change:

  • Code

How Has This Been Tested?

You can run the new branch and check if all navigation items are with "capital letters".

Checklist:

Delete irrelevant options.

  • [x] My PR follows the style guidelines of this project
  • [x] I have performed a self-review of my own code or materials

ftonato avatar Oct 12 '21 13:10 ftonato

cc @brittanyjoiner15 could you maybe look at this one too :)

isabelcosta avatar Oct 15 '21 00:10 isabelcosta

@brittanyjoiner15 could you please approve it again :) Approve is one of the review options. After that I can merge :)

isabelcosta avatar Oct 17 '21 10:10 isabelcosta

@brittanyjoiner15 do you know what could be wrong with prettier run here? I don't think it is related to this PR 🤔 But I am not sure cc @Aaishpra @codesankalp in case you have some useful knowledge here on github actions in web projects

@ftonato do you have an idea of what could be happening here? I updated this PR in hopes it would be mergable right away, but this check is failing. Could we do something here 🤔

isabelcosta avatar Oct 17 '21 13:10 isabelcosta

@ftonato @isabelcosta hmm, I wonder if it's because it's confused because we have the .prettierrc.json file merged in but this branch doesn't have it yet? Maybe @ftonato try pulling changes fromdevelop and seeing if it works after that's all merged up together?

brittanyjoiner15 avatar Oct 17 '21 15:10 brittanyjoiner15

Hello, after a few minutes of trying and trying I found the problem, or at least managed to fix it on my branch.

I'll open a pull-request to submit the solution and remove the commits I made on the current branch to test...

btw, we should have a telegram channel to talk about a few things (all three)!

/c @isabelcosta @brittanyjoiner15

ftonato avatar Oct 17 '21 16:10 ftonato

I just deleted all commits, I'm going to redo them (dumb)!

Edit: Done! We can merge this and as I said above I will send another PR to fix the "prettier problem" 😛

ftonato avatar Oct 17 '21 16:10 ftonato

btw, we should have a telegram channel to talk about a few things (all three)

We can talk on Zulip :) That is where the community talks about the projects so that everyone can join discussions. We have a stream for this project.

isabelcosta avatar Oct 17 '21 20:10 isabelcosta

@ftonato can you update the PR, just so we see the checks passing, please?

isabelcosta avatar Oct 18 '21 22:10 isabelcosta

@ftonato do you have any idea why the checks for prettier are failing 🤔 i wonder why 😳

isabelcosta avatar Oct 19 '21 20:10 isabelcosta

@isabelcosta so we probably need to update the docs to let people know they'll want to install prettier locally, and they might need to run the npx --write (can't remember the exact command, but something like that). It seems like all of them are failing now that we've implemented prettier aren't they? Or have we had any successful ones aside from the ones from my device?

brittanyjoiner15 avatar Oct 19 '21 20:10 brittanyjoiner15

I don't understand why it's failing only on the pull-request and not on my branch (fork), I'll need to invest a little more time on this tomorrow to calmly evaluate...

I will do this as soon as possible!

ftonato avatar Oct 19 '21 20:10 ftonato

@isabelcosta so we probably need to update the docs to let people know they'll want to install prettier locally, and they might need to run the npx --write (can't remember the exact command, but something like that). It seems like all of them are failing now that we've implemented prettier aren't they? Or have we had any successful ones aside from the ones from my device?

If that is something we can put on README, let's do it! Could you create an issue to add that instruction to the README?

isabelcosta avatar Oct 19 '21 20:10 isabelcosta

I don't understand why it's failing only on the pull-request and not on my branch (fork), I'll need to invest a little more time on this tomorrow to calmly evaluate...

I will do this as soon as possible!

I see it falling on your fork as well https://github.com/ftonato/anitab-org.github.io/runs/3919521463 🤔 but take your time! As long as we have updates from time to time.

isabelcosta avatar Oct 19 '21 20:10 isabelcosta

@isabelcosta yes! i can do that, @ftonato i might want you to be my "beta" tester and confirm if that seems to fix the issue or not before i do that. Basically following these instructions

brittanyjoiner15 avatar Oct 19 '21 20:10 brittanyjoiner15

I made some changes thinking it might have been something and it worked on my branch, but here it kept failing so I pushed it back to the original state (thus failing on my branch too).

However, I will try to validate all this today =)

ftonato avatar Oct 20 '21 08:10 ftonato

@isabelcosta can you take a look on this? It seems that our bot (prettier action) don't have the right permissions to perform the commit:

image

ftonato avatar Oct 20 '21 08:10 ftonato

Not sure why, but it seems the src/content/home.js needs prettier updates 🤔 Could you try running prettier on your branch, including src/content/home.js and see if it changes anything? (i know you did not change that file at all, but if it helps, I don't mind getting that into this PR) @ftonato

From what I understand, this is failing because it is trying to commit changes for a file that has changes proposed by prettier.

I wonder if this action should be changed, to not try to commit but simply fail if prettier suggests changes and pass if prettier does not suggest changes.

isabelcosta avatar Oct 22 '21 09:10 isabelcosta

@ftonato I see it failing again. I will ignore this for now and test the PR and if all good merge this. Will create a follow-up issue to fix the action 😅 I see it's failing in multiple PRs :(

isabelcosta avatar Oct 22 '21 09:10 isabelcosta

@isabelcosta I really don't know why it only fails in PR for this repository, I do it in my FORK it works perfectly, and I really think it might have some relationship with permissions (https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions).

My suggestion is to stop using github action to make the prettier and do it with husky, does it sound okay or not? (If approved, I can create the PR with it, but someone from the organization will have to remove the action)

ftonato avatar Oct 22 '21 09:10 ftonato

@isabelcosta I really don't know why it only fails in PR for this repository, I do it in my FORK it works perfectly, and I really think it might have some relationship with permissions (https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions).

My suggestion is to stop using github action to make the prettier and do it with husky, does it sound okay or not? (If approved, I can create the PR with it, but someone from the organization will have to remove the action)

I understand, we can remove/fix it on another ticket. That is fine! Once I have a little more time I'll look into permissions and GH action.

isabelcosta avatar Oct 22 '21 09:10 isabelcosta

I will create another PR to include all this changes! (https://github.com/anitab-org/anitab-org.github.io/pull/325)

@isabelcosta Can we merge this PR?

ftonato avatar Oct 22 '21 09:10 ftonato