GithubHelp home page GithubHelp logo

react-merge-link's People

Contributors

ankitd33 avatar conorbergman avatar eltonkl avatar femi avatar gallinaryoso avatar gilfeig avatar hmafzal avatar stevenokada avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-merge-link's Issues

Browsers block popup when you connect hr system

Hello!

Most browsers try to block popup when I want to connect an HR system (BambooHR in this case) through BambooHR's website.
When i choose this option I see an error message about blocking popup and new popup is not opened till I allow it in browser's settings.

It looks like there is an approach to fix it by emulating user's click event.
Here is details https://javascript.info/popup-windows#popup-blocking

Could you look at this and try to apply?

Changelog?

Is there a changelog for this repository? Or anyway for me to see the differences between past versions? For some reason this Github repo only has the latest version, which makes it really hard for me to assess the risk (or what code would need to change) when updating this package.

For example, I currently have 2.0.6 installed. How would I know what I need to change in order to upgrade to the latest (2.1.2)?

Body styles are not always restored

When using this hook, the script pulled in at https://cdn.merge.dev/initialize.js appears to attempt to restore the body styles upon exit, though it is hard to tell since the source is minified.

When calling open() and then selecting an integration, if the modal is closed then the body.style keeps the overflow: hidden attribute. This has the effect of breaking scroll on our site until refresh.

Wrong types for UseMergeLinkProps

When checking the types for UseMergeLinkProps in the repo it includes onExit & onLoad but for some reason the package downloaded from npm doesn't have those types despite the fact that the implementation is working correctly. An error when building maybe?

Types in the repo:

export interface UseMergeLinkProps {
linkToken: string;
demoCategories: Array<string>;
onExit: () => void;
onLoad: () => void;
onSuccess: (publicTokenID: string) => void;
}

Types in the downloaded package:

  export declare type UseMergeLinkProps = {
    linkToken: string;
    onSuccess: (publicTokenID: string) => void;
  };

No CHANGELOG or Release Notes

Please let me know if I'm missing something - there doesn't seem to be any release notes or a CHANGELOG to reference with version upgrades which means we're having to read commit diffs to attempt to determine what changes have been made. Since there doesn't seem to be any tagging either (again please tell me if I'm missing it!), it's essentially a bit of guesswork to determine what commits are part of what release. I guess we could take the code downloads from npm and do a diff there?

Anyway, if I'm missing something I'm happy to be corrected; we'd love to have some documentation about what's going into each release so we aren't just upgrading blindly.

No public token callback if user does not click Finish Setup

We've identified a UX failure mode where a customer will successfully authenticate with some integration but they do not click on the Finish Setup button at the bottom of the modal. Perhaps they just quickly scan the Successfully set up your integration! text and click away from the modal, or close the tab or what have you, because they think they are done. In a perfect world we'd expect everyone to see and click on that button, but if they don't it's a rather problematic failure mode for us.

If that button is not clicked the public token callback isn't fired. If it isn't fired we have neither the public token or a means to exchange it for an account token. But from the perspective of merge, the account is linked and its status is complete.

Production account tokens are no longer accessible on the merge admin website. They are only available via the API. But in order to make the API request you need the public token. We have neither.

A potential solution is to trigger the callback as soon as you have a public token available and add some other callback akin to the onExit one, or just overload that one to be triggered both by the X in the top right or the finish setup button, for those who care about the Finish Setup button being pressed and the modal dismissed. But if the public token is already generated once the Finish Setup button please just give it to us without requiring that they click the button.

Customize the link window

I am not being able to customize the link window. For example, I don't want all the HRIS providers to show, I only want a subset of available providers.

Is that possible?

No dist folder found in node_modules 2.0.7

I'm consistently getting

Cannot find module '@mergeapi/react-merge-link' or its corresponding type declarations.ts(2307)

from my import, though it is definitely installed, shows up in package, package-lock, node_modules

import { useMergeLink } from "@mergeapi/react-merge-link"

Additional info:

In package.json for @mergeapi/react-merge-link I see "main": "dist/index.umd.js",, but there is no dist folder in node_modules/@mergeapi/react-merge-link

Looks like you guys forgot to transpile this version, I see dist is in 2.0.6

Modal can't be closed by keyboard alone

Apologies in advance if this isn't the right repo for this issue.

The Merge Link modal can't be closed without clicking/tapping the close button, which means the modal is broken for keyboard/AT users.

To fix this:

  • The close button should be written with the <button> tag so it is focusable
  • Pressing the escape key should close the modal

Screen Shot 2023-01-04 at 10 08 23 AM

It is also considered good practice to auto-focus the close button once the modal opens so that keyboard/AT users can start interacting with the modal's contents.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.