Skip to content

Instantly share code, notes, and snippets.

View Jacob-Roberts's full-sized avatar

Jake Roberts Jacob-Roberts

View GitHub Profile
@Jacob-Roberts
Jacob-Roberts / actions.ts
Created November 1, 2024 02:01
Toast Notifications with React Server Actions
"use server";
export async function signInWithEmail(_: any, formData: FormData) {
// Sign in
return {
errors: null,
};
}
@Jacob-Roberts
Jacob-Roberts / settings.json
Created May 25, 2024 09:45
VSCode Settings.json
{
"terminal.integrated.defaultProfile.linux": "zsh",
"workbench.iconTheme": "vscode-icons",
"vsicons.dontShowNewVersionMessage": true,
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
flowchart TD
    A(create-payment-attempt) --> B(initiate-authorisation)
    B --> C(redirect-to-provider*)
    B --> D(mx-bank-account-connected)
    C --> E(confirm-account)
    D --> E(confirm-account)
@Jacob-Roberts
Jacob-Roberts / callbackProposal.md
Created April 13, 2023 11:21
Proposal for callback

Existing Design:

    sequenceDiagram
    autonumber
    User->>+Payment: Bank just sent me here, where do I go next?
    Payment->>+Payment: Is this callback valid
    Payment->>+User: Go to this checkout page
    User->>+Checkout: Checkout just sent me here, where do I go next?
 Checkout->>+Checkout: Determine how to get the user back to the merchant page