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

add scroll to top button #5331

Conversation

bintus-ux
Copy link

@bintus-ux bintus-ux commented Oct 5, 2024

Fix for issue number #5310

Desktop View

Registry _ OpenTelemetry - Google Chrome 10_5_2024 11_48_26 AM

Mobile View

Registry _ OpenTelemetry - Google Chrome 10_5_2024 11_49_57 AM

@bintus-ux bintus-ux requested a review from a team as a code owner October 5, 2024 18:28
Copy link

linux-foundation-easycla bot commented Oct 5, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@svrnm svrnm changed the title Opentelemetry contribution2024 devbranch1 [Outreachy] Opentelemetry contribution2024 devbranch1 Oct 7, 2024
@svrnm svrnm added the outreachy Issues for Outreachy Participants label Oct 7, 2024
@bintus-ux
Copy link
Author

@svrnm could you please test and review

Copy link
Member

@svrnm svrnm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great start, some inline feedback for you to address.

layouts/partials/ecosystem/registry/entry.html Outdated Show resolved Hide resolved
layouts/_default/baseof.html Outdated Show resolved Hide resolved
content/en/ecosystem/registry/_index.md Outdated Show resolved Hide resolved
@bintus-ux
Copy link
Author

bintus-ux commented Oct 7, 2024

@svrnm Issues have been resolved , please kindly review once again.

assets/js/scroll-to-top.js Outdated Show resolved Hide resolved
@svrnm svrnm changed the title [Outreachy] Opentelemetry contribution2024 devbranch1 [Outreachy] scroll to top button Oct 9, 2024
@svrnm
Copy link
Member

svrnm commented Oct 9, 2024

Screenshot 2024-10-09 at 11 00 14

Can you see if it is possible to make sure that the button "stops" above the page footer when scrolling down?

@bintus-ux
Copy link
Author

bintus-ux commented Oct 9, 2024 via email

layouts/shortcodes/ecosystem/registry/search-form.html Outdated Show resolved Hide resolved
layouts/partials/hooks/body-end.html Outdated Show resolved Hide resolved
@bintus-ux
Copy link
Author

Hello @svrnm , i might need your help please, appears i might have broken deploy by trying to access submodule themes/docsy to reach the footer.html file , please how do i resolve, thanks.

@svrnm
Copy link
Member

svrnm commented Nov 12, 2024

Hello @svrnm , i might need your help please, appears i might have broken deploy by trying to access submodule themes/docsy to reach the footer.html file , please how do i resolve, thanks.

Run npm run fix:submodule locally this should restore the right versions of your code. Note that you should never touch into the docsy code. If there is any blocker to roll this out across the website we can still start with the registry and see later how and where we want to have it as well.

@bintus-ux
Copy link
Author

Hello @svrnm , i might need your help please, appears i might have broken deploy by trying to access submodule themes/docsy to reach the footer.html file , please how do i resolve, thanks.

Run npm run fix:submodule locally this should restore the right versions of your code. Note that you should never touch into the docsy code. If there is any blocker to roll this out across the website we can still start with the registry and see later how and where we want to have it as well.

I don’t know if it’s a blocker as in order to access the footer.html file which is where I could implement the scroll-to-top to effect on the website it resulted in the issue accessing themes/docsy

@bintus-ux
Copy link
Author

Hello @svrnm , i might need your help please, appears i might have broken deploy by trying to access submodule themes/docsy to reach the footer.html file , please how do i resolve, thanks.

Run npm run fix:submodule locally this should restore the right versions of your code. Note that you should never touch into the docsy code. If there is any blocker to roll this out across the website we can still start with the registry and see later how and where we want to have it as well.

I don’t know if it’s a blocker as in order to access the footer.html file which is where I could implement the scroll-to-top to effect on the website it resulted in the issue accessing themes/docsy

I’ve run the command and pushed my changes but the deploy checks don’t re-run @svrnm

@svrnm
Copy link
Member

svrnm commented Nov 13, 2024

Hello @svrnm , i might need your help please, appears i might have broken deploy by trying to access submodule themes/docsy to reach the footer.html file , please how do i resolve, thanks.

Run npm run fix:submodule locally this should restore the right versions of your code. Note that you should never touch into the docsy code. If there is any blocker to roll this out across the website we can still start with the registry and see later how and where we want to have it as well.

I don’t know if it’s a blocker as in order to access the footer.html file which is where I could implement the scroll-to-top to effect on the website it resulted in the issue accessing themes/docsy

I’ve run the command and pushed my changes but the deploy checks don’t re-run @svrnm

your submodules are still broken, we can try to get it fixed via a bot

@svrnm
Copy link
Member

svrnm commented Nov 13, 2024

/fix:submodule

@opentelemetrybot
Copy link
Collaborator

You triggered fix:submodule action run at https://github.com/open-telemetry/opentelemetry.io/actions/runs/11818050526

@opentelemetrybot
Copy link
Collaborator

fix:submodule failed or was cancelled. For details, see https://github.com/open-telemetry/opentelemetry.io/actions/runs/11818050526.

@bintus-ux
Copy link
Author

I am super sorry if i broke something.

Signed-off-by: svrnm <[email protected]>
@svrnm
Copy link
Member

svrnm commented Nov 13, 2024

I am super sorry if i broke something.

you didn't. Submodules are challenging from time to time, that's why we have some helpers to fix issues with them.

I pulled your PR and fixed it locally on my end. Make sure you run "git pull" on your end before doing any more changes

@bintus-ux
Copy link
Author

I am super sorry if i broke something.

you didn't. Submodules are challenging from time to time, that's why we have some helpers to fix issues with them.

I pulled your PR and fixed it locally on my end. Make sure you run "git pull" on your end before doing any more changes

Appreciate so much, thanks!!!

@bintus-ux
Copy link
Author

@svrnm I pulled your changes as you said, ran the npm run fix:format and merged with main. Deployment fails as i am already done with my scroll-to-top changes

@svrnm
Copy link
Member

svrnm commented Nov 14, 2024

@bintus-ux there seems to be something broken in the PR and the git commit history, I tried to rebase it but I get a lot of merge conflicts that are hard to resolve. Please do the following:

  • Backup your local version of this PR and the cloned repo
  • Go to https://github.com/bintus-ux/opentelemetry.io/ and make sure that it is in sync with upstream
  • Clone your fork freshly
  • Copy your changes from the backup into your freshly cloned directory
  • Run npm run fix:all
  • Create a new branch
  • Push that new branch into a new PR

If that new PR has everything we need we can close down this one

@bintus-ux
Copy link
Author

@bintus-ux there seems to be something broken in the PR and the git commit history, I tried to rebase it but I get a lot of merge conflicts that are hard to resolve. Please do the following:

  • Backup your local version of this PR and the cloned repo
  • Go to https://github.com/bintus-ux/opentelemetry.io/ and make sure that it is in sync with upstream
  • Clone your fork freshly
  • Copy your changes from the backup into your freshly cloned directory
  • Run npm run fix:all
  • Create a new branch
  • Push that new branch into a new PR

If that new PR has everything we need we can close down this one

Appears the best solution, will do that now, thank you.

@bintus-ux
Copy link
Author

bintus-ux commented Nov 18, 2024

Sorry to still be dwelling on this issue, i did as you said, my fork was in sync with upstream before i recloned it,manually copied my changes into the codebase and ran npm run fix:all which popped up this clone errors for opentelemetry-go @svrnm

scrollToTop js - opentelemetry io-2  WSL_ Ubuntu-24 04  - Visual Studio Code 11_18_2024 8_19_03 AM
scrollToTop js - opentelemetry io-2  WSL_ Ubuntu-24 04  - Visual Studio Code 11_18_2024 8_18_49 AM
scrollToTop js - opentelemetry io-2  WSL_ Ubuntu-24 04  - Visual Studio Code 11_18_2024 8_19_12 AM

@svrnm
Copy link
Member

svrnm commented Nov 18, 2024

Sorry to still be dwelling on this issue, i did as you said, my fork was in sync with upstream before i recloned it,manually copied my changes into the codebase and ran npm run fix:all which popped up this clone errors for opentelemetry-go @svrnm

can you delete that folder and try it once again?

@bintus-ux
Copy link
Author

Sorry to still be dwelling on this issue, i did as you said, my fork was in sync with upstream before i recloned it,manually copied my changes into the codebase and ran npm run fix:all which popped up this clone errors for opentelemetry-go @svrnm

can you delete that folder and try it once again?

Hello mentor, successfully made a new pr #5620 for the scroll to top functionality. Appreciate your efforts and guidance so far, thanks so much mentor @svrnm !

@svrnm svrnm closed this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants