Skip to content

Commit 2a43b17

Browse files
authored
Merge pull request #1 from SupratimRK/copilot/fix-2c4ccd50-afd1-42f3-88d1-74f8f8d064d3
🚀 Optimize repository for Google search and GitHub topic discoverability
2 parents 83f0881 + 166c859 commit 2a43b17

File tree

14 files changed

+806
-5
lines changed

14 files changed

+806
-5
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: SupratimRK
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: ['https://supratim.netlify.app', 'mailto:supratimrk@outlook.com']
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Bug Report
2+
description: File a bug report to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
assignees:
6+
- SupratimRK
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report! 🐛
12+
13+
- type: input
14+
id: contact
15+
attributes:
16+
label: Contact Details
17+
description: How can we get in touch with you if we need more info?
18+
placeholder: ex. email@example.com
19+
validations:
20+
required: false
21+
22+
- type: textarea
23+
id: what-happened
24+
attributes:
25+
label: What happened?
26+
description: Also tell us, what did you expect to happen?
27+
placeholder: Tell us what you see!
28+
value: "A bug happened!"
29+
validations:
30+
required: true
31+
32+
- type: dropdown
33+
id: browser
34+
attributes:
35+
label: Browser
36+
description: Which browser are you using?
37+
options:
38+
- Chrome
39+
- Edge
40+
- Firefox (not supported)
41+
- Safari (not supported)
42+
- Other
43+
validations:
44+
required: true
45+
46+
- type: input
47+
id: version
48+
attributes:
49+
label: Extension Version
50+
description: Which version of the AI Text Rewriter extension are you using?
51+
placeholder: ex. 2.1.1
52+
validations:
53+
required: true
54+
55+
- type: dropdown
56+
id: model
57+
attributes:
58+
label: AI Model Used
59+
description: Which Gemini model were you using when the bug occurred?
60+
options:
61+
- Gemini 2.5 Flash
62+
- Gemini 2.5 Flash Lite
63+
- Gemini 2.0 Flash
64+
- Gemini 2.0 Flash Lite
65+
- Not applicable
66+
validations:
67+
required: false
68+
69+
- type: textarea
70+
id: logs
71+
attributes:
72+
label: Relevant log output
73+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
74+
render: shell
75+
76+
- type: checkboxes
77+
id: terms
78+
attributes:
79+
label: Code of Conduct
80+
description: By submitting this issue, you agree to follow our Code of Conduct
81+
options:
82+
- label: I agree to follow this project's Code of Conduct
83+
required: true
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project
3+
title: "[Feature]: "
4+
labels: ["enhancement", "triage"]
5+
assignees:
6+
- SupratimRK
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for suggesting a new feature! 🚀
12+
13+
- type: textarea
14+
id: problem
15+
attributes:
16+
label: Is your feature request related to a problem?
17+
description: A clear and concise description of what the problem is.
18+
placeholder: I'm always frustrated when...
19+
validations:
20+
required: false
21+
22+
- type: textarea
23+
id: solution
24+
attributes:
25+
label: Describe the solution you'd like
26+
description: A clear and concise description of what you want to happen.
27+
placeholder: I would like...
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: alternatives
33+
attributes:
34+
label: Describe alternatives you've considered
35+
description: A clear and concise description of any alternative solutions or features you've considered.
36+
placeholder: Alternatively...
37+
validations:
38+
required: false
39+
40+
- type: dropdown
41+
id: priority
42+
attributes:
43+
label: Priority
44+
description: How important is this feature to you?
45+
options:
46+
- Low - Nice to have
47+
- Medium - Would improve workflow
48+
- High - Essential for my use case
49+
validations:
50+
required: true
51+
52+
- type: checkboxes
53+
id: feature-type
54+
attributes:
55+
label: Feature Type
56+
description: What type of feature is this? (Select all that apply)
57+
options:
58+
- label: New rewriting mode
59+
- label: UI/UX improvement
60+
- label: Performance enhancement
61+
- label: Integration with other tools
62+
- label: Accessibility improvement
63+
- label: Security enhancement
64+
- label: Developer experience
65+
- label: Documentation improvement
66+
67+
- type: textarea
68+
id: additional-context
69+
attributes:
70+
label: Additional context
71+
description: Add any other context, mockups, or screenshots about the feature request here.
72+
73+
- type: checkboxes
74+
id: terms
75+
attributes:
76+
label: Code of Conduct
77+
description: By submitting this issue, you agree to follow our Code of Conduct
78+
options:
79+
- label: I agree to follow this project's Code of Conduct
80+
required: true

.github/pull_request_template.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Description
2+
<!-- Please include a summary of the changes and which issue is fixed. Please also include relevant motivation and context. -->
3+
4+
## Type of Change
5+
<!-- Please delete options that are not relevant. -->
6+
7+
- [ ] Bug fix (non-breaking change which fixes an issue)
8+
- [ ] New feature (non-breaking change which adds functionality)
9+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10+
- [ ] Documentation update
11+
- [ ] Performance improvement
12+
- [ ] Code refactoring
13+
- [ ] Security improvement
14+
15+
## Testing
16+
<!-- Please describe the tests that you ran to verify your changes. -->
17+
18+
- [ ] I have tested this change manually
19+
- [ ] I have added/updated tests for this change
20+
- [ ] All existing tests pass
21+
- [ ] The extension loads correctly in Chrome
22+
- [ ] All rewriting modes work as expected
23+
24+
## Screenshots
25+
<!-- If applicable, add screenshots to help explain your changes. -->
26+
27+
## Checklist
28+
<!-- Please check all applicable boxes. -->
29+
30+
- [ ] My code follows the style guidelines of this project
31+
- [ ] I have performed a self-review of my own code
32+
- [ ] I have commented my code, particularly in hard-to-understand areas
33+
- [ ] I have made corresponding changes to the documentation
34+
- [ ] My changes generate no new warnings
35+
- [ ] I have checked my code and corrected any misspellings
36+
- [ ] I have tested the extension with different Gemini models
37+
- [ ] I have verified that the changes work across different websites
38+
39+
## Related Issues
40+
<!-- Please link any related issues here. -->
41+
42+
Fixes #(issue number)
43+
44+
## Additional Notes
45+
<!-- Any additional information, considerations, or notes for reviewers. -->

.github/workflows/validate.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Extension Validation
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
21+
- name: Validate manifest.json
22+
run: |
23+
if [ -f manifest.json ]; then
24+
echo "✅ manifest.json found"
25+
# Basic JSON validation
26+
cat manifest.json | python -m json.tool > /dev/null
27+
echo "✅ manifest.json is valid JSON"
28+
else
29+
echo "❌ manifest.json not found"
30+
exit 1
31+
fi
32+
33+
- name: Validate package.json
34+
run: |
35+
if [ -f package.json ]; then
36+
echo "✅ package.json found"
37+
cat package.json | python -m json.tool > /dev/null
38+
echo "✅ package.json is valid JSON"
39+
else
40+
echo "❌ package.json not found"
41+
exit 1
42+
fi
43+
44+
- name: Check required files
45+
run: |
46+
files=("background.js" "content.js" "options.html" "options.js" "README.md" "LICENSE")
47+
for file in "${files[@]}"; do
48+
if [ -f "$file" ]; then
49+
echo "✅ $file found"
50+
else
51+
echo "❌ $file not found"
52+
exit 1
53+
fi
54+
done
55+
56+
- name: Check icons directory
57+
run: |
58+
if [ -d "icons" ]; then
59+
echo "✅ icons directory found"
60+
icon_files=("icon16.png" "icon48.png" "icon128.png")
61+
for icon in "${icon_files[@]}"; do
62+
if [ -f "icons/$icon" ]; then
63+
echo "✅ icons/$icon found"
64+
else
65+
echo "❌ icons/$icon not found"
66+
exit 1
67+
fi
68+
done
69+
else
70+
echo "❌ icons directory not found"
71+
exit 1
72+
fi
73+
74+
- name: Validate JavaScript syntax
75+
run: |
76+
# Check if JavaScript files have basic syntax validity
77+
for js_file in *.js; do
78+
if [ -f "$js_file" ]; then
79+
echo "Checking $js_file..."
80+
node -c "$js_file"
81+
echo "✅ $js_file syntax is valid"
82+
fi
83+
done
84+
85+
- name: Extension validation complete
86+
run: echo "🎉 All validation checks passed!"

.gitignore

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Build outputs
8+
dist/
9+
build/
10+
.build/
11+
12+
# Environment variables
13+
.env
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
# IDE files
20+
.vscode/
21+
.idea/
22+
*.swp
23+
*.swo
24+
*~
25+
26+
# OS generated files
27+
.DS_Store
28+
.DS_Store?
29+
._*
30+
.Spotlight-V100
31+
.Trashes
32+
ehthumbs.db
33+
Thumbs.db
34+
35+
# Logs
36+
logs
37+
*.log
38+
39+
# Runtime data
40+
pids
41+
*.pid
42+
*.seed
43+
*.pid.lock
44+
45+
# Coverage directory used by tools like istanbul
46+
coverage/
47+
.nyc_output
48+
49+
# Chrome extension temporary files
50+
*.crx
51+
*.pem
52+
key.pem
53+
54+
# Temporary files
55+
tmp/
56+
temp/
57+
.tmp/
58+
59+
# Editor backup files
60+
*~
61+
*.bak
62+
*.backup
63+
64+
# Package manager files
65+
package-lock.json
66+
yarn.lock
67+
68+
# Archive files
69+
*.zip
70+
*.tar.gz
71+
*.rar
72+
73+
# Local development files
74+
.local/
75+
local_settings.py

0 commit comments

Comments
 (0)