Code Monkey home page Code Monkey logo

powerback's People

Watchers

 avatar  avatar

powerback's Issues

Unnecessary repeated "customer_id" resource requests if user breaks process flow

Customer_id is a property under Stripe's Payment API.

When verifying a payment method, the app sends a request to Stripe for this value. However, a user is free to navigate backward in the process, eventually bringing themselves back at some point to requesting the Customer_id, which happens each time a user breaks and returns to the process.

Instead, it might be better to store Customer_id somehow, if not with Stripe directly, then in the database or other storage.

relevant code:
components/forms/Payment/Payment.tsx
routes/api/payments.js
controller/payments/
models/User.js

Keyboard focus stuck on Stripe pay/submit button

In the CheckoutCard component there is a submit ("Confirm") button element from Stripe positioned under the credit card number input element. If using a keyboard to tab into focusing on this element, it becomes stuck, so the keyboard becomes useless to navigate elsewhere on the page.

273492799-8f6ebb46-bbcb-4560-9e0e-b9a0db039d89

Related code:
Payment.tsx

"threading" placeholders with Celebration Event cards' subelements to avoid rebounce?

The Celebrations component contains a Vertical Timeline that maps the Celebration Event component.

Celebrations uses React Suspense with a Placeholder as a fallback.

If possible, it would be better to always render a parent component which contains placeholder elements "threaded" in with the real sub-elements that make up the Event component, instead of doing an either-or type render with the fallback placeholder or the fully rendered content.

This is because when the fallback changes to the rendered content, the Vertical Timeline has a "bounce-in" animation that is triggered a second time. A smoother effect would have this bounce only once on a parent element.

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.