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 copy to clipboard feature to share links #7697

Merged

Conversation

ahukkanen
Copy link
Contributor

@ahukkanen ahukkanen commented Mar 23, 2021

🎩 What? Why?

We've received user feedback that the copy share link feature is unclear because it shows the "not allowed" cursor for the text field.

This fixes that issue and adds a "copy to clipboard" button to the share link window.

Testing

  • Go to a proposal page
  • Click the share link
  • Click the "Share link" button
  • See the "not allowed" cursor on top of the input

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Now it looks like this with the cursor:
Share link text field cursor

After this change it looks like this:
Share link modal after the change

In addition, it will announce the screen reader that the link was copied to clipboard.

mrcasals
mrcasals previously approved these changes Apr 6, 2021
@mrcasals mrcasals added module: core type: feature PRs or issues that implement a new feature labels Apr 6, 2021
@mrcasals
Copy link
Contributor

mrcasals commented Apr 6, 2021

@ahukkanen some conflicts appear and I can't resolve them using the GitHub UI, could you review them please?

@ahukkanen
Copy link
Contributor Author

@mrcasals Conflicts resolved.

@ahukkanen
Copy link
Contributor Author

Ah there was a HTML validation issue that caused system specs to fail.

Thanks to #7751, we did not introduce a new HTML validation issue. 🥳

@mrcasals mrcasals merged commit 7917922 into decidim:develop Apr 7, 2021
@ahukkanen ahukkanen deleted the feature/share-link-copy-to-clipboard branch April 7, 2021 12:27
entantoencuanto added a commit that referenced this pull request Apr 13, 2021
* develop:
  Let admins disable participatory space filters (#7819)
  Identify online voters (#7777)
  Restore vote tests in the elections module using the real bulletin board (#7802)
  Show initiative image in homepage (#7824)
  Let admins filter participatory space private users (#7817)
  Add Ballot Style to Census Datum (#7788)
  Show missing election component callout also for in-person votings (#7809)
  Fix canceling scope select doesnt open reveal (#7805)
  Fix: Reported users are displayed in all tenants (#7628)
  Evote - onboarding workflow (#7758)
  Add copy to clipboard feature to share links (#7697)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core type: feature PRs or issues that implement a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants