Skip to content

chore: add README file for the repo for Project understanding.#8

Merged
rahul-vyas-dev merged 2 commits intoAOSSIE-Org:mainfrom
rahul-vyas-dev:main
Mar 9, 2026
Merged

chore: add README file for the repo for Project understanding.#8
rahul-vyas-dev merged 2 commits intoAOSSIE-Org:mainfrom
rahul-vyas-dev:main

Conversation

@rahul-vyas-dev
Copy link
Contributor

@rahul-vyas-dev rahul-vyas-dev commented Mar 9, 2026

This pull request introduces a complete README.md file to the repository to improve project documentation and make the project easier to understand and contribute to.

The README provides an overview of the project, its purpose, and essential information needed by users and contributors. It organizes the repository information in a clear and structured manner so that anyone visiting the project can quickly understand what the project does and how to interact with it.

Key additions include:

  • A clear project introduction explaining the purpose of the repository.

  • Structured sections for usage, installation, and contribution guidance.

  • A contributors section to acknowledge individuals who have contributed to the project.

  • Proper formatting and layout improvements to make the documentation readable and visually organized.

This addition helps improve the repository’s accessibility, transparency, and maintainability while providing a better onboarding experience for new contributors and users.

Checklist

  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Summary by CodeRabbit

  • Documentation
    • README fully rebranded to "SupportUsButton" with updated logos, links, and copyright.
    • Reworked hero and feature sections with concrete product description and themed feature list.
    • Added installation and usage guides for npm and CDN, plus integration notes.
    • Expanded Props/API reference with detailed prop options, examples, and configuration snippets.
    • Updated maintainers/contributors and corrected URLs throughout.

@github-actions github-actions bot added no-issue-linked PR is not linked to any issue documentation Changes to documentation files size/XL Extra large PR (>500 lines changed) repeat-contributor PR from an external contributor who already had PRs merged pending-coderabbit-review labels Mar 9, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 9, 2026

Walkthrough

Comprehensive rewrite of README.md: replaces placeholders with real project identity “SupportUsButton”, adds installation/usage (npm & CDN), full Props/API documentation with examples, updated features, maintainer info, and copyright year set to 2026. (48 words)

Changes

Cohort / File(s) Summary
Documentation Update
README.md
Full replacement of placeholder content with real branding (SupportUsButton), reworked hero/header, detailed feature list, installation and usage guides (npm & CDN), exhaustive Props/API reference with examples, updated maintainer/contributor links, and copyright year updated to 2026.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested labels

Documentation

Poem

🐰 I hopped through lines and polished each part,
Swapped TODOs for heart and a bright new start,
SupportUsButton gleams with examples and cheer,
Clear props, install notes — everything near!
A tiny rabbit applause — documentation clear.

🚥 Pre-merge checks | ✅ 1 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title mentions 'add README file' but the actual changes substantially revise and overhaul existing README content rather than adding a new file, making it partially inaccurate. Update the title to reflect the primary change, such as 'docs: overhaul README with comprehensive documentation and branding' or 'chore: update README with complete project documentation.'
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 540-543: Update the duplicate alt text on the three <img> tags so
each image has a unique, descriptive alt attribute instead of the repeated
"AOSSIE-theme"; specifically change the alt for "./public/AOSSIE_THEME.jpeg",
"./public/AOSSIE_THEME-SPONSOR.jpeg", and "./public/AOSSIE_THEME_CTA.jpeg" to
meaningful labels (e.g., "AOSSIE theme light screenshot", "AOSSIE sponsor banner
dark screenshot", "AOSSIE call-to-action banner screenshot") and likewise fix
the duplicated "AOSSIE-theme" alt entries used for the Light/Dark screenshots
elsewhere so each referenced image filename (AOSSIE_THEME, AOSSIE_THEME-SPONSOR,
AOSSIE_THEME_CTA) has a distinct, accessible alt text describing its content and
theme.
- Around line 315-319: The README's `pattern` prop list is inconsistent with the
source type; align the docs with the Pattern union in src/types/index.ts by
removing `"stripes"` and listing the exact allowed values (`"AOSSIE" | "dots" |
"grid" | "none"`) (or if `"stripes"` is the intended option, update the Pattern
type instead). Update the table row for `pattern` and the later “Pattern”
reference section to match the Pattern type defined in src/types/index.ts so the
documentation and code agree.
- Around line 146-159: The README CDN snippet is invalid for browser use: update
the section that references index.umd.js and style.css to first load React and
ReactDOM via CDN, then load the package UMD script, and replace the JSX
<SupportUsButton /> example with a concrete browser instantiation using the
actual global export provided by the UMD build (e.g., access
window.<globalExportName> and render it via ReactDOM API such as
ReactDOM.createRoot or ReactDOM.render); also mention verifying the UMD global
name from the built bundle or rollup config (the package identifier
`@aossie/support-us-button` is not the runtime global) and ensure the stylesheet
link remains included.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 34c7ab18-7a52-4b2a-abd3-7116c56ef5af

📥 Commits

Reviewing files that changed from the base of the PR and between e8d59e1 and 959cadf.

⛔ Files ignored due to path filters (9)
  • public/AOSSIE_THEME-SPONSOR.jpeg is excluded by !**/*.jpeg
  • public/AOSSIE_THEME.jpeg is excluded by !**/*.jpeg
  • public/AOSSIE_THEME_CTA.jpeg is excluded by !**/*.jpeg
  • public/DARK_THEME.jpeg is excluded by !**/*.jpeg
  • public/DARK_THEME_CTA.jpeg is excluded by !**/*.jpeg
  • public/DARK_THEME_SPONSOR.png is excluded by !**/*.png
  • public/LIGHT_THEME.jpeg is excluded by !**/*.jpeg
  • public/LIGHT_THEME_CTA.jpeg is excluded by !**/*.jpeg
  • public/LIGHT_THEME_SPONSOR.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • README.md

Comment on lines +540 to +543
<div style="width:fit-content; margin:auto; display:flex; flex-wrap:wrap; gap:12px; justify-content:center;">
<img src="./public/AOSSIE_THEME.jpeg" alt="AOSSIE-theme" style="width:fit-content; max-width:100%; height:auto;" />
<img src="./public/AOSSIE_THEME-SPONSOR.jpeg" alt="AOSSIE-theme" style="width:fit-content; max-width:100%; height:auto;" />
<img src="./public/AOSSIE_THEME_CTA.jpeg" alt="AOSSIE-theme" style="width:fit-content; max-width:100%; height:auto;" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Use accurate alt text for each screenshot.

Several screenshot images reuse the same alt text, and Lines 556-558 / 571-573 still say AOSSIE-theme for Light/Dark screenshots. That makes the README less accessible and mislabels the images for screen readers.

Also applies to: 556-558, 571-573

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 540 - 543, Update the duplicate alt text on the three
<img> tags so each image has a unique, descriptive alt attribute instead of the
repeated "AOSSIE-theme"; specifically change the alt for
"./public/AOSSIE_THEME.jpeg", "./public/AOSSIE_THEME-SPONSOR.jpeg", and
"./public/AOSSIE_THEME_CTA.jpeg" to meaningful labels (e.g., "AOSSIE theme light
screenshot", "AOSSIE sponsor banner dark screenshot", "AOSSIE call-to-action
banner screenshot") and likewise fix the duplicated "AOSSIE-theme" alt entries
used for the Light/Dark screenshots elsewhere so each referenced image filename
(AOSSIE_THEME, AOSSIE_THEME-SPONSOR, AOSSIE_THEME_CTA) has a distinct,
accessible alt text describing its content and theme.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (2)
README.md (2)

541-543: ⚠️ Potential issue | 🟡 Minor

Fix duplicate alt text for accessibility.

All three AOSSIE theme screenshots use identical alt="AOSSIE-theme" text. Each image should have unique, descriptive alt text for screen reader users.

♿ Proposed fix
-  <img src="./public/AOSSIE_THEME.jpeg" alt="AOSSIE-theme" style="width:fit-content; max-width:100%; height:auto;" />
-  <img src="./public/AOSSIE_THEME-SPONSOR.jpeg" alt="AOSSIE-theme" style="width:fit-content; max-width:100%; height:auto;" />
-  <img src="./public/AOSSIE_THEME_CTA.jpeg" alt="AOSSIE-theme" style="width:fit-content; max-width:100%; height:auto;" />
+  <img src="./public/AOSSIE_THEME.jpeg" alt="AOSSIE theme hero section" style="width:fit-content; max-width:100%; height:auto;" />
+  <img src="./public/AOSSIE_THEME-SPONSOR.jpeg" alt="AOSSIE theme sponsors section" style="width:fit-content; max-width:100%; height:auto;" />
+  <img src="./public/AOSSIE_THEME_CTA.jpeg" alt="AOSSIE theme call-to-action section" style="width:fit-content; max-width:100%; height:auto;" />

Apply the same pattern to Light theme (lines 556-558) and Dark theme (lines 571-573) screenshots.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 541 - 543, The three theme images use identical alt
text causing accessibility issues; update each img tag's alt attribute to a
unique descriptive label referencing the image filenames (e.g., "AOSSIE theme
overview", "AOSSIE theme sponsor banner", "AOSSIE theme call-to-action") for the
files AOSSIE_THEME.jpeg, AOSSIE_THEME-SPONSOR.jpeg, and AOSSIE_THEME_CTA.jpeg,
and apply the same unique-descriptive pattern to the Light and Dark theme image
blocks so every screenshot has meaningful, distinct alt text.

146-157: ⚠️ Potential issue | 🟠 Major

The CDN usage example remains invalid.

The previous review identified three critical issues with this CDN snippet that have not been addressed:

  1. Missing React dependencies: The UMD build declares react, react-dom, and react/jsx-runtime as external dependencies. They must be loaded from CDN before the component script.
  2. Invalid syntax: <SupportUsButton /> is JSX and will not run in a browser without a transpiler. Plain HTML requires React.createElement or the UMD global access pattern.
  3. Undefined global access: The UMD global name is @aossie/support-us-button (not a valid identifier), so the component must be accessed as window["@aossie/support-us-button"].default.
🌐 Working CDN example
<!-- 1. Load React dependencies first -->
<script src="https://cdn.jsdelivr.net/npm/react@19/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom@19/umd/react-dom.production.min.js"></script>

<!-- 2. Load the component -->
<script src="https://cdn.jsdelivr.net/npm/@aossie/support-us-button@latest/dist/index.umd.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aossie/support-us-button@latest/dist/style.css" />

<!-- 3. Mount the component using ReactDOM API -->
<div id="support-us-root"></div>
<script>
  var SupportUsButton = window["@aossie/support-us-button"].default;
  ReactDOM.createRoot(document.getElementById("support-us-root")).render(
    React.createElement(SupportUsButton, { /* props here */ })
  );
</script>

Consider updating the UMD name in rollup.config.js to "SupportUsButton" for a cleaner browser experience.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 146 - 157, The README's CDN snippet is invalid: it
omits required React/ReactDOM UMD scripts, uses JSX which won't run in the
browser, and assumes an illegal UMD global name; fix it by updating the example
to (1) load React and ReactDOM UMD bundles before your component, (2) replace
the JSX usage of <SupportUsButton /> with mounting via
ReactDOM.createRoot/ReactDOM.render and React.createElement, and (3) access the
component from the actual UMD global name
window["@aossie/support-us-button"].default (or, better, change the rollup/UMD
name in rollup.config.js to a valid identifier like "SupportUsButton" and then
reference window.SupportUsButton.default in the example).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 469-475: Update the sponsor description table entries to hyphenate
compound adjectives: change "High level sponsor" to "High-level sponsor", "Mid
level sponsor" to "Mid-level sponsor", and "Entry level sponsor" to "Entry-level
sponsor" for the rows associated with `Gold`, `Silver`, and `Bronze` (leave
`Platinum` unchanged).
- Around line 392-395: Update the README table row for the Image prop: locate
the table entry for `src` (under the headers Value | Type | Required |
Description) where the description reads "Imag URl" and correct the typo to
"Image URL" so the `src` description reads "Image URL".

---

Duplicate comments:
In `@README.md`:
- Around line 541-543: The three theme images use identical alt text causing
accessibility issues; update each img tag's alt attribute to a unique
descriptive label referencing the image filenames (e.g., "AOSSIE theme
overview", "AOSSIE theme sponsor banner", "AOSSIE theme call-to-action") for the
files AOSSIE_THEME.jpeg, AOSSIE_THEME-SPONSOR.jpeg, and AOSSIE_THEME_CTA.jpeg,
and apply the same unique-descriptive pattern to the Light and Dark theme image
blocks so every screenshot has meaningful, distinct alt text.
- Around line 146-157: The README's CDN snippet is invalid: it omits required
React/ReactDOM UMD scripts, uses JSX which won't run in the browser, and assumes
an illegal UMD global name; fix it by updating the example to (1) load React and
ReactDOM UMD bundles before your component, (2) replace the JSX usage of
<SupportUsButton /> with mounting via ReactDOM.createRoot/ReactDOM.render and
React.createElement, and (3) access the component from the actual UMD global
name window["@aossie/support-us-button"].default (or, better, change the
rollup/UMD name in rollup.config.js to a valid identifier like "SupportUsButton"
and then reference window.SupportUsButton.default in the example).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: c0523d40-5ecd-45d8-9f82-b9f3f6e0b9fb

📥 Commits

Reviewing files that changed from the base of the PR and between 959cadf and 76561bf.

📒 Files selected for processing (1)
  • README.md

Comment on lines +469 to +475
| Value | Description |
| ---------- | -------------------- |
| `Platinum` | Highest tier sponsor |
| `Gold` | High level sponsor |
| `Silver` | Mid level sponsor |
| `Bronze` | Entry level sponsor |

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Consider adding hyphens to compound modifiers.

In formal documentation, compound adjectives like "high level" should be hyphenated when they precede a noun: "high-level sponsor", "mid-level sponsor", "entry-level sponsor".

✍️ Proposed fix
 | Value      | Description          |
 | ---------- | -------------------- |
 | `Platinum` | Highest tier sponsor |
-| `Gold`     | High level sponsor   |
-| `Silver`   | Mid level sponsor    |
-| `Bronze`   | Entry level sponsor  |
+| `Gold`     | High-level sponsor   |
+| `Silver`   | Mid-level sponsor    |
+| `Bronze`   | Entry-level sponsor  |
🧰 Tools
🪛 LanguageTool

[grammar] ~472-~472: Use a hyphen to join words.
Context: ...ghest tier sponsor | | Gold | High level sponsor | | Silver | Mid lev...

(QB_NEW_EN_HYPHEN)


[grammar] ~473-~473: Use a hyphen to join words.
Context: ...igh level sponsor | | Silver | Mid level sponsor | | Bronze | Entry ...

(QB_NEW_EN_HYPHEN)


[grammar] ~474-~474: Use a hyphen to join words.
Context: ... level sponsor | | Bronze | Entry level sponsor |

## ctaSect...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 469 - 475, Update the sponsor description table
entries to hyphenate compound adjectives: change "High level sponsor" to
"High-level sponsor", "Mid level sponsor" to "Mid-level sponsor", and "Entry
level sponsor" to "Entry-level sponsor" for the rows associated with `Gold`,
`Silver`, and `Bronze` (leave `Platinum` unchanged).

@rahul-vyas-dev rahul-vyas-dev merged commit 8b42317 into AOSSIE-Org:main Mar 9, 2026
5 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Mar 11, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Changes to documentation files no-issue-linked PR is not linked to any issue pending-coderabbit-review repeat-contributor PR from an external contributor who already had PRs merged size/XL Extra large PR (>500 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant