Skip to content

fix: improve HeroSection accessibility and TypeScript typing#113

Open
ianusha08 wants to merge 4 commits into
Team-NoxVeil:mainfrom
ianusha08:fix/hero-section-accessibility
Open

fix: improve HeroSection accessibility and TypeScript typing#113
ianusha08 wants to merge 4 commits into
Team-NoxVeil:mainfrom
ianusha08:fix/hero-section-accessibility

Conversation

@ianusha08
Copy link
Copy Markdown

What changed

  • Added React.FC type to PlayIcon component for strict TypeScript compliance
  • Added aria-hidden="true" to decorative elements (scroll indicator, overlay divs)
  • Added aria-label to stat values for screen reader context

Why

Improves accessibility (a11y) and TypeScript strictness with no visual changes.

Type of change

  • Bug fix / improvement

@RITVIKKAMASETTY
Copy link
Copy Markdown
Collaborator

@ianusha08 I think other commits are also part of this pr remove the readme commit

@sathwikshetty33
Copy link
Copy Markdown
Contributor

@ianusha08 I would suggest self reviewing agent generated code before raising a PR, this wastes mainatiners time and your PR might end up closed.

@ianusha08
Copy link
Copy Markdown
Author

Thanks for the feedback. I’ll clean up the PR and remove the README-related commits so the changes stay focused.

And yeah, fair point on the self-review part. I should’ve checked things more carefully before opening the PR. I’ll make sure to properly review and test my changes locally from now on.

@RITVIKKAMASETTY
Copy link
Copy Markdown
Collaborator

Thanks for the feedback. I’ll clean up the PR and remove the README-related commits so the changes stay focused.

And yeah, fair point on the self-review part. I should’ve checked things more carefully before opening the PR. I’ll make sure to properly review and test my changes locally from now on.

still I can see readme change in the commit

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves landing-page semantics/typing in HeroSection and also updates the repository README with a new Quick Start section and substantial formatting/diagram edits.

Changes:

  • Added aria-hidden to decorative overlays/scroll indicator and added aria-label to stat values in HeroSection.
  • Typed PlayIcon as React.FC.
  • Updated README.md with Quick Start instructions and reformatted multiple sections/tables/diagrams.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
README.md Adds Quick Start instructions and reformats tables/diagrams (but includes a couple of correctness/scope issues).
frontend/src/components/sections/HeroSection.tsx Accessibility/typing improvements plus a CTA layout change that may affect visuals.
Comments suppressed due to low confidence (1)

README.md:200

  • The project tree under tools/ is currently malformed: backend_lint is shown at the same indentation level as tools/, which implies it is a sibling instead of a child. Adjust the indentation/branch characters so backend_lint is clearly nested under tools/ (e.g., tools/ then └── backend_lint).
├── docker-compose.yml # Multi-service orchestration
├── LICENSE
└── tools/
└── backend_lint # One-shot ruff + mypy quality check


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +41 to +58
```bash
# Clone repository
git clone https://github.com/your-username/InterXAI.git

# Backend setup
cd backend
uv sync --dev
uv run alembic upgrade head
uv run uvicorn app.main:app --reload
```

## Frontend setup

```bash
cd frontend
npm install
npm run dev
```
Comment thread README.md
Comment on lines +39 to 60
## Quick Start

```bash
# Clone repository
git clone https://github.com/your-username/InterXAI.git

# Backend setup
cd backend
uv sync --dev
uv run alembic upgrade head
uv run uvicorn app.main:app --reload
```

## Frontend setup

```bash
cd frontend
npm install
npm run dev
```

## Features
Comment on lines 72 to 74
{/* CTAs */}
<div className="flex flex-wrap gap-4">
<div className="flex flex-col sm:flex-row gap-4 w-full sm:w-auto">
<Button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants