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

Arrow missing from add to list dropdown on author pages #9065

Closed
RayBB opened this issue Apr 10, 2024 · 12 comments · Fixed by #9135
Closed

Arrow missing from add to list dropdown on author pages #9065

RayBB opened this issue Apr 10, 2024 · 12 comments · Fixed by #9135
Assignees
Labels
Affects: Experience Issues relating directly to service design & patrons experience Good First Issue Easy issue. Good for newcomers. [managed] Lead: @RayBB Issues overseen by Ray (Onboarding & Documentation Lead) [manages] Needs: Response Issues which require feedback from lead Priority: 4 An issue, but should be worked on when no other pressing work can be done. [managed] Team: Front-end Issues belonging to the Front-end team [experimental tag] Type: Bug Something isn't working. [managed]

Comments

@RayBB
Copy link
Collaborator

RayBB commented Apr 10, 2024

Problem

It probably should have a down arrow like we have on the want to read button for books?
image

Evidence / Screenshot

image

Relevant URL(s)

https://openlibrary.org/authors/OL12180252A/Adriana_Churampi_Ram%C3%ADrez

Reproducing the bug

  1. Go to ...
  2. Do ...
  • Expected behavior:
  • Actual behavior:

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N): Y
  • Environment (prod, dev, local): prod

Notes from this Issue's Lead

Proposal & constraints

Related files

Stakeholders

@RayBB RayBB added Type: Bug Something isn't working. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels Apr 10, 2024
@Spedi
Copy link
Contributor

Spedi commented Apr 10, 2024

Hi there!
I suppose I can tackle this issue, is there any chance that I can work on it?

@RayBB
Copy link
Collaborator Author

RayBB commented Apr 10, 2024

@Spedi you're assigned! :)

@Spedi
Copy link
Contributor

Spedi commented Apr 10, 2024

Perfect!
Could you give me more info on the issue, please? What are the files that I should investigate in order to get the expected result?

@RayBB
Copy link
Collaborator Author

RayBB commented Apr 10, 2024

@Spedi this be in the authors/view.html file.

If you're not sure about navigating the codebase yet I recommend watching some of the overview videos in our docs.

@Spedi
Copy link
Contributor

Spedi commented Apr 11, 2024

Thank you for the info and the advice, I'll make sure that I watch the video ASAP.

@Spedi
Copy link
Contributor

Spedi commented Apr 14, 2024

I may underrated the difficulty of this issue (at least for me :) ), if it is a urgent one you may want to assign it to someone more prepared.
Otherwise, if it's ok for you, would you like to help me tackle this?
In the Want to Read dropdown we have the arrow because of the include_dropper=True in $:macros.SearchResultsWork(doc, show_librarian_extras=show_librarian_extras, include_dropper=True) or the two things are not related?

@Spedi
Copy link
Contributor

Spedi commented Apr 14, 2024

Plus, I was trying to understand the code via the Inspect function of the browser, is this a good strategy in your opinion?

@mekarpeles mekarpeles added Good First Issue Easy issue. Good for newcomers. [managed] Affects: Experience Issues relating directly to service design & patrons experience Team: Front-end Issues belonging to the Front-end team [experimental tag] Lead: @RayBB Issues overseen by Ray (Onboarding & Documentation Lead) [manages] Priority: 4 An issue, but should be worked on when no other pressing work can be done. [managed] and removed Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels Apr 15, 2024
@RayBB
Copy link
Collaborator Author

RayBB commented Apr 17, 2024

@Spedi it isn't urgent so you can take your time looking into it.
include_dropper=True seems related to me.
Starting with the browser inspect function to see what classes are on files to search for them on the codebase is always a good way to start!

I'd recommend checking out these files and seeing what you find. https://github.com/search?q=repo%3Ainternetarchive%2Fopenlibrary%20%22template(%27my_books%22&type=code

@azadDsync
Copy link

Hello ,
I have figure out the issue ,may I allowed to work on this?

@Spedi
Copy link
Contributor

Spedi commented Apr 22, 2024

Hi there! @RayBB
I suppose I solved the problem, the testing seems to give good results, but once I try to push the code on git I get this error: ! [rejected] fix-frontend -> fix-frontend (fetch first) error: failed to push some refs to 'github.com:Spedi/openlibrary.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Do you know what that means?

@RayBB
Copy link
Collaborator Author

RayBB commented Apr 23, 2024

It is a little hard to explain but it means your code on github is ahead of your code on local.
I think the easiest thing to do is git pull and then git push but that probably won't work if you already committed locally. You cangit push --force but you should generally be very careful doing that (especially when it's not your branch).

Alternatively, you can make a new branch and push it there.
@Spedi

@RayBB
Copy link
Collaborator Author

RayBB commented Apr 23, 2024

@azadDsync as you can see, this issue is already assigned to someone else. Please check the good first issues that aren't assigned to anyone and ask to be assigned before opening a PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: Experience Issues relating directly to service design & patrons experience Good First Issue Easy issue. Good for newcomers. [managed] Lead: @RayBB Issues overseen by Ray (Onboarding & Documentation Lead) [manages] Needs: Response Issues which require feedback from lead Priority: 4 An issue, but should be worked on when no other pressing work can be done. [managed] Team: Front-end Issues belonging to the Front-end team [experimental tag] Type: Bug Something isn't working. [managed]
Projects
None yet
4 participants