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

Hide podcast app launchers on desktop #414

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

alicebartlett
Copy link
Member

Hello, this is my first foray into x-dash, so it's very possible I've done something obvious incorrectly. Please be vigilant when reviewing this PR!

We have had customer feedback that these buttons don't do anything on
desktop and it is a concern that we are losing out on opportunities
for engagement by showing people broken buttons.

This commit:

  • Uses a media query to hide the app launcher buttons on desktop as
    they don't work
  • Introduces an oGrid dependency to get the standard breakpoint for
    desktop

If this is your first x-dash pull request please familiarise yourself with the contribution guide before submitting.

I don't know how x-dash manages Origami dependencies. This is either a patch release because it is a very small change that won't break anything, or it is major because I have introduced a new Origami dependency which could break a dependency tree somewhere. Can anyone advise on this?

✅ Discuss features first (chatted with @robsquires)
✅ Update the documentation
✅ No hacks, experiments or temporary workarounds

  • Reviewers are empowered to say no
  • Reference other issues
  • Update affected stories and snapshots
  • Follow the code style
    ? Decide on a version (major, minor, or patch)

We have had customer feedback that these buttons don't do anything on
desktop and it is a concern that we are losing out on opportunities
for engagement by showing people broken buttons.

This commit:
- Uses a media query to hide the app launcher buttons on desktop as
  they don't work
- Introduces an oGrid dependency to get the standard breakpoint for
  desktop
@alicebartlett alicebartlett temporarily deployed to x-dash-fix-podcast-laun-x8kjaf November 19, 2019 16:39 Inactive
@robsquires
Copy link
Contributor

LGTM @alicebartlett
Re. patch/minor, does it play nicely when you pull this branch into next-article and the app? I can try the app if that helps

@alicebartlett
Copy link
Member Author

@robsquires good tip Rob - I'll check that

@alicebartlett
Copy link
Member Author

OK - I've checked this on next-article and it looks good. @robsquires is gonna check on the app so I don't have to get all that set up, and then I think we're good!

@robsquires
Copy link
Contributor

@alicebartlett we've lost the buttons on a landscape ipad 😢

Screenshot 2019-11-21 at 17 27 10

As part of a bug raised via editorial, we need to hide the podcast app
links on desktop because they don't do anything.
To do this I have used a combination of @media query to show at narrow
screens (ie when the website is viewed on a mobile) and an isApp prop to
always show it if you're viewing in the app wrapper.
@robsquires
Copy link
Contributor

Woop! 🎯

Screenshot 2020-01-09 at 11 25 21

robsquires
robsquires previously approved these changes Jan 9, 2020
@@ -48,39 +48,38 @@ class PodcastLaunchers extends Component {

render() {
const { rssUrl } = this.state;
const { conceptId, conceptName, csrfToken, isFollowed, renderFollowButton } = this.props
const { conceptId, conceptName, csrfToken, isFollowed, renderFollowButton, showLinksOnAllBreakpoints } = this.props
Copy link
Contributor

Choose a reason for hiding this comment

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

As per IRL chat, default showLinksOnAllBreakpoints to true

robsquires
robsquires previously approved these changes Jan 23, 2020
@robsquires
Copy link
Contributor

🚢👈

Copy link
Member

@apaleslimghost apaleslimghost left a comment

Choose a reason for hiding this comment

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

sorry this PR got forgotten about! it looks good now 🙂 @robsquires, since Alice is away would you mind shepherding this through to release (if it's still needed)?

Base automatically changed from master to main February 8, 2021 13:05
@emortong emortong requested a review from a team as a code owner February 8, 2021 13:05
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.

3 participants