1.0.3 • Published 7 months ago

awesome-feedbacky v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Feedbacky

Contents

Feedbacky: A Feedback is a product integrable with web applications.

What Is Feedbacky?

  • Feedbacky is a product developed to gather comments and feedbacks of customers about their user experiences. It is integrable with web applications. You can follow the steps to easily use it.

Demo

  • Feedbacky Demo https://feedbacky-demo.netlify.app/

  • A button with icon and modal exists at demo. It can be integrated to other projects following the steps below. The development of background at homepage or wherever Feedbacky is used up to the user.

Usages

Feedbacky can be integrated to web projects through 2 different ways.

  • By NPM Package
  • By CDN

Usage Via NPM

  • You can follow to steps to install the NPM package, import the Feedbacky component and use it.

Install

npm i awesome-feedbacky

Import Component

import { Feedbacky } from "awesome-feedbacky";

Use The Component

export const App = () => {
  return (
    <>
      <Feedbacky
        googleSheetId="95a57d16-dcc3-4f57-8e24-dfbba8e9e786"
        modalSuccessTitle="Thanks for sharing your feedback!"
        sendButtonText="Send Feedback"
        nameInputPlaceholder="Name"
        surnameInputPlaceholder="Surname"
        feedbackInputPlaceholder="Feedback?"
        modalSuccessIconSize={100}
        modalSuccessIconColor="green"
        feedbackyButtonIconSize={45}
        modalTitle="Share what you think with us..."
      />
    </>
  );
};
  • Important Note:

    The props except googleSheetId are optional. If they are not sent, the default values will be used.

Usage Via CDN

  • Feedbacky can be integrated also by CDN with script tags.

  • Go to main HTML file. (index.html)

feedbacky-container

  • Add a div element with the ID of feedbacky-container.
<div id="feedbacky-container"></div>

CDN

  • Add CDN using script tag.
<script src="https://cdn.jsdelivr.net/npm/feedbacky-cdn@1.0.0/index.js"></script>
Add New Script Tag For Props
<script>
    feedbacky.run({
        googleSheetId: "95a57d16-dcc3-4f57-8e24-dfbba8e9e786",
        modalSuccessTitle: "Thanks for sharing your feedback!",
        sendButtonText: "Send Feedback",
        nameInputPlaceholder: "Your Name",
        surnameInputPlaceholder: "Your Surname",
        feedbackInputPlaceholder: "Your Feedback",
        modalSuccessIconSize: 100,
        modalSuccessIconColor: "green",
        feedbackyButtonIconSize: 45,
        modalTitle: "Share what you think with us...",
    });
</script>
  • Important Note:

    Remember that the props except googleSheetId are optional. If they are not sent, the default values will be used.

Prop Types Table

Prop NameProp TypeValue (E.G.)
googleSheetIdstring"95a57d16-dcc3-4f57-8e24-dfbba8e9e786"
modalSuccessTitlestring"Thanks for sharing your feedback!"
sendButtonTextstring"Send Feedback"
nameInputPlaceholderstring"Your Name..."
surnameInputPlaceholderstring"Your Surname..."
feedbackInputPlaceholderstring"Your Feedback..."
modalSuccessIconSizenumber100
modalSuccessIconColorstringgreen
feedbackyButtonIconSizenumber45
modalTitlestring"Share what you think with us..."

How To Get A Google Sheet Id?

  • The data is saved in a Google Sheet file for Feedbacky App. You need to send a value for googleSheetId prop to use it.

  • Go to Google Sheets to create a blank sheet or use an existing one. https://www.google.com/sheets/about/

  • Open an online table and rename it.

  • Change settings for your share options. (Private or Public etc.)

  • Copy your link for your Google Sheet table.

  • Go to sheet.best.

  • Sheet.best turns spreadsheets into REST APIs. Connect a gsheet or a csv to anything.

  • Sign In with your Google account.

  • Click on "Add your first connection to start".

  • Connection Name: FeedbackData,

  • Connection URL: Paste here your Google Sheet File link,

  • Click connect (connection created successfully).

  • Go to the admin panel for sheet.best. https://sheet.best/admin

  • Go to details for your connection. (FeedbackData)

  • Get Connection URL: E.g: https://sheet.best/api/sheets/e4dbe27a-31e1-4578-a692-9b85b15dc39e googleSheetId: e4dbe27a-31e1-4578-a692-9b85b15dc39e

  • Use this URL for the post request API. (E.g: axios.post())

  • Use this ID as your googleSheetId value.

Additional Notes

Notes: Here is the additional part for the development notes.

  • I used console.log() at main.tsx to add the feedbacky.run() method to the bundle.
1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago