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

Make the shop url clickable #9529

Merged

Conversation

Philwi
Copy link

@Philwi Philwi commented Aug 7, 2022

What? Why?

Closes #9427

On the admin dashboard, in "Enterprises" > "Primary details", the url pointing to the shop is not clickable. => Now the link is not only a text fragment but an a-tag with a target attribute to open the shop in an own tab.

What should we test?

  • Visit "Enterprises" > "Primary details"
  • Click the shop-url

Release notes

Changelog Category: User facing changes

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

Copy link
Contributor

@jibees jibees left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this one!
I've a few comments, let me know!

spec/system/support/cuprite_setup.rb Outdated Show resolved Hide resolved
spec/system/admin/enterprises_spec.rb Show resolved Hide resolved
spec/system/admin/enterprises_spec.rb Show resolved Hide resolved
spec/system/admin/enterprises_spec.rb Show resolved Hide resolved
@Philwi Philwi force-pushed the make-the-shop-url-clickable branch 2 times, most recently from 211730b to 0fa5c77 Compare August 9, 2022 18:57
@Philwi Philwi requested a review from jibees August 9, 2022 20:19
@Philwi Philwi force-pushed the make-the-shop-url-clickable branch from 0fa5c77 to 79c942d Compare August 9, 2022 21:05
Copy link
Contributor

@jibees jibees left a comment

Choose a reason for hiding this comment

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

Thanks! 🙏

@filipefurtad0
Copy link
Contributor

Hey @Philwi , welcome! 🎉

There's a relevant failing spec on this PR:

./spec/system/admin/enterprises_spec.rb:143:in block (3 levels) in <top (required)>`

It needs to be addressed before testing - moving to in Dev 👍

@Philwi Philwi force-pushed the make-the-shop-url-clickable branch 2 times, most recently from 911f253 to f366239 Compare August 11, 2022 19:06
@Philwi Philwi force-pushed the make-the-shop-url-clickable branch from f366239 to 141a2a5 Compare August 11, 2022 20:15
@sigmundpetersen
Copy link
Contributor

I guess this can go straight back to Test ready @filipefurtad0 ?
Or should we have a short review first?

@filipefurtad0
Copy link
Contributor

Thanks @sigmundpetersen @Philwi ,
The spec was updated, the build is green - I think we can move it back to test ready.

@filipefurtad0 filipefurtad0 self-assigned this Aug 17, 2022
@filipefurtad0 filipefurtad0 added the pr-staged-uk staging.openfoodnetwork.org.uk label Aug 17, 2022
@filipefurtad0
Copy link
Contributor

Hey @Philwi,

Thanks for this improvement! 💪

After staging, it is possible to confirm the shop URL is clickable (href, see pics below), and redirects to the shopfront:

image

Merging 👍

@filipefurtad0 filipefurtad0 merged commit d3f1d4a into openfoodfoundation:master Aug 17, 2022
@filipefurtad0 filipefurtad0 removed the pr-staged-uk staging.openfoodnetwork.org.uk label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Admin dashboard] Make the shop URL clickable
5 participants