Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Contributing to DebateAI

Thank you for your interest in contributing to **DebateAI**!
We welcome contributions from everyone.

---

## How to Contribute

### 1. Fork the Repository
- Fork the repository on GitHub.
- Clone your fork locally:

```bash
git clone https://github.com/your-username/DebateAI.git
cd DebateAI
Comment on lines +1 to +16
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify CONTRIBUTING.md line count and structure
wc -l CONTRIBUTING.md
echo "---"
cat -n CONTRIBUTING.md

Repository: AOSSIE-Org/DebateAI

Length of output: 522


Complete CONTRIBUTING.md with proper formatting and all essential sections.

CONTRIBUTING.md is incomplete and ends abruptly with an unclosed code block (line 14). After the fork and clone instructions, the file requires:

  • Closing the bash code block
  • Setup/installation instructions
  • Development environment guidelines
  • Code style and formatting standards
  • Testing requirements
  • Git workflow and commit message conventions
  • Pull request submission process
  • Review expectations
  • License/contributor agreement information

Complete the file to provide contributors with comprehensive guidance.

🤖 Prompt for AI Agents
In @CONTRIBUTING.md around lines 1-16, CONTRIBUTING.md currently ends with an
unclosed bash code block and is missing key contributor guidance; close the
fenced code block after the git clone example and add the following sections:
Setup & installation (prerequisites, environment variables, local boot steps),
Development environment guidelines (editor config, required tool versions, how
to run the app), Code style and formatting standards (linting rules, formatter
command, refer to .editorconfig/.eslintrc/prettier), Testing requirements (how
to run unit/integration tests, test coverage expectations), Git workflow &
commit message conventions (branch naming, squash/rebase policy, conventional
commit format), Pull request submission process and review expectations (PR
template, required checks, reviewer assignment), and License/Contributor License
Agreement info; reference and align with existing project artifacts like
package.json, .eslintrc, .github/PULL_REQUEST_TEMPLATE.md, and ensure the file
closes the code fence and is formatted using Markdown headings and bullet lists
for each section.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 AOSSIE

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,8 @@ If you find a bug or have a feature request:

We look forward to your contributions!

---

## License

MIT © [AOSSIE](https://aossie.org)

---
## 📜 License
This project is licensed under the MIT License.
See the LICENSE file for details.
8 changes: 7 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,8 @@
.animate-floating {
animation: floatUp 2s ease-out forwards;
}

body {
margin: 0;
font-family: 'Outfit', sans-serif;
}
Comment on lines +113 to +116
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

Remove redundant body styling.

This body rule is redundant because:

  1. The body element is already styled at lines 93-95 within @layer base
  2. Tailwind's preflight (included in @tailwind base) already resets margins to 0
  3. The tailwind.config.js now sets sans font to ["Outfit", "sans-serif"], so the body already inherits Outfit through the Tailwind classes applied at line 94

Defining body styles outside of Tailwind's layer system can cause specificity conflicts and makes the styling harder to maintain. Since Tailwind config handles the font and preflight handles the margin, this entire block can be removed.

🔎 Proposed fix: Remove redundant body rule
-.animate-floating {
-  animation: floatUp 2s ease-out forwards;
-}
-
-body {
-  margin: 0;
-  font-family: 'Outfit', sans-serif;
-}
+.animate-floating {
+  animation: floatUp 2s ease-out forwards;
+}

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In @frontend/src/index.css around lines 113-116, Remove the redundant body CSS
rule (the standalone body { margin:0; font-family: 'Outfit', sans-serif; }
block) and rely on the existing body styling inside @layer base (the body rule
at lines ~93-95), Tailwind preflight and the tailwind.config.js sans font;
delete the duplicate block to avoid specificity conflicts and run the
build/check to ensure no other code depends on this standalone override.

111 changes: 58 additions & 53 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,66 @@
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class"],
content: [
darkMode: ["class"],
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))'
}
}
}
extend: {
fontFamily: {
sans: ["Outfit", "sans-serif"],
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))',
},
},
},
},
plugins: [require("tailwindcss-animate"), require('tailwind-scrollbar-hide') ],
plugins: [
require("tailwindcss-animate"),
require("tailwind-scrollbar-hide"),
],
}