Files
Toni de la Fuente 43918cc947 feat(ui): add SNS integration UI components
Add complete UI implementation for Amazon SNS integration with comprehensive
management interface for sending email alerts.

Features:
- SNS integration form with topic ARN configuration
- AWS credentials support (access keys, role ARN, session tokens)
- Custom credentials toggle for tenant/integration-level auth
- CRUD operations (create, edit, delete, toggle enable/disable)
- Connection testing with real-time feedback
- Integration manager with pagination support
- Filter support (severity, provider, region, resource name/tags)

UI Components:
- sns-integration-form.tsx: Form component with AWS credentials config
- sns-integration-card.tsx: Card for main integrations page
- sns-integrations-manager.tsx: Manager with list view and actions
- sns/page.tsx: Dedicated SNS integrations management page

Updates:
- Add SNS schemas to ui/types/integrations.ts with Zod validation
- Export SNS components from ui/components/integrations/index.ts
- Add SNS card to main integrations page
- Fix IntegrationType to use const-based approach per AGENTS.md line 13
- Fix Jira email validation to use correct Zod v4 syntax (z.email)
- Use proper TypeScript types (removed any types per AGENTS.md)
- Fix session_duration to use z.coerce.number() for string-to-number conversion

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 22:33:04 +01:00
..
2024-11-25 13:15:14 +01:00
2024-11-25 13:15:14 +01:00
2024-11-25 13:15:14 +01:00
2024-11-25 13:15:14 +01:00

Description

This repository hosts the UI component for Prowler, providing a user-friendly web interface to interact seamlessly with Prowler's features.

🚀 Production deployment

Docker deployment

Clone the repository

# HTTPS
git clone https://github.com/prowler-cloud/ui.git

# SSH
git clone git@github.com:prowler-cloud/ui.git

Build the Docker image

docker build -t prowler-cloud/ui . --target prod

Run the Docker container

docker run -p 3000:3000 prowler-cloud/ui

Local deployment

Clone the repository

# HTTPS
git clone https://github.com/prowler-cloud/ui.git

# SSH
git clone git@github.com:prowler-cloud/ui.git

Build the project

pnpm run build

Run the production server

pnpm start

🧪 Development deployment

Docker deployment

Clone the repository

# HTTPS
git clone https://github.com/prowler-cloud/ui.git

# SSH
git clone git@github.com:prowler-cloud/ui.git

Build the Docker image

docker build -t prowler-cloud/ui . --target dev

Run the Docker container

docker run -p 3000:3000 prowler-cloud/ui

Local deployment

Clone the repository

# HTTPS
git clone https://github.com/prowler-cloud/ui.git

# SSH
git clone git@github.com:prowler-cloud/ui.git

Install dependencies

pnpm install

Note: The pnpm install command will automatically configure Git hooks for code quality checks. If you experience issues, you can manually configure them:

git config core.hooksPath "ui/.husky"

Run the development server

pnpm run dev

Technologies Used

Git Hooks & Code Review

This project uses Git hooks to maintain code quality. When you commit changes to TypeScript/JavaScript files, the pre-commit hook can optionally validate them against our coding standards using Claude Code.

Enabling Code Review

To enable automatic code review on commits, add this to your .env file in the project root:

CODE_REVIEW_ENABLED=true

When enabled, the hook will:

  • Validate your staged changes against AGENTS.md standards
  • Check for common issues (any types, incorrect imports, styling violations, etc.)
  • Block commits that don't comply with the standards
  • Provide helpful feedback on how to fix issues

Disabling Code Review

To disable code review (faster commits, useful for quick iterations):

CODE_REVIEW_ENABLED=false

Or remove the variable from your .env file.

Requirements

  • Claude Code CLI installed and authenticated
  • .env file in the project root with CODE_REVIEW_ENABLED set

Troubleshooting

If hooks aren't running after commits:

# Verify hooks are configured
git config --get core.hooksPath  # Should output: ui/.husky

# Reconfigure if needed
git config core.hooksPath "ui/.husky"