Skip to content

feat: add UI components (Badge, Button, Card, Checkbox, Input, Label,…#12

Open
KevinDeBenedetti wants to merge 3 commits intomainfrom
feat/new-arch
Open

feat: add UI components (Badge, Button, Card, Checkbox, Input, Label,…#12
KevinDeBenedetti wants to merge 3 commits intomainfrom
feat/new-arch

Conversation

@KevinDeBenedetti
Copy link
Copy Markdown
Owner

… Tooltip) and utility functions

  • Implemented Badge component for displaying status indicators.
  • Created Button component with various styles and sizes.
  • Developed Card component with subcomponents (Header, Title, Description, Content, Footer) for structured content display.
  • Added Checkbox component for user selections.
  • Introduced Input component for form fields.
  • Created Label component for form field labeling.
  • Implemented Tooltip component for additional context on hover.
  • Added utility function for merging CSS class names.

feat: define tool configurations and API services

  • Added TOOL_INFO constant for tool definitions and configurations.
  • Implemented API service for handling scan requests and responses.
  • Created functions for quick, deep, and security scans.
  • Added scan management functions for starting, retrieving, and deleting scans.

chore: set up project structure and configuration

  • Initialized Tailwind CSS for styling.
  • Configured Vite for development and build processes.
  • Set up TypeScript configuration for type safety.
  • Updated dependencies in pyproject.toml for enhanced functionality.

Description

Closes #

Type of change

  • 🐛 Bug fix
  • ✨ New feature / template
  • 📝 Documentation update
  • ♻️ Refactor (no behavior change)
  • 🔧 CI / workflow change
  • 💥 Breaking change

Changes

How to test / review

Checklist

  • I have read CONTRIBUTING.md
  • My changes follow the project's style guide
  • My commit messages follow the Conventional Commits convention
  • I have not introduced any secrets, credentials, or personal data
  • I have updated the documentation where necessary
  • All CI checks pass

… Tooltip) and utility functions

- Implemented Badge component for displaying status indicators.
- Created Button component with various styles and sizes.
- Developed Card component with subcomponents (Header, Title, Description, Content, Footer) for structured content display.
- Added Checkbox component for user selections.
- Introduced Input component for form fields.
- Created Label component for form field labeling.
- Implemented Tooltip component for additional context on hover.
- Added utility function for merging CSS class names.

feat: define tool configurations and API services

- Added TOOL_INFO constant for tool definitions and configurations.
- Implemented API service for handling scan requests and responses.
- Created functions for quick, deep, and security scans.
- Added scan management functions for starting, retrieving, and deleting scans.

chore: set up project structure and configuration

- Initialized Tailwind CSS for styling.
- Configured Vite for development and build processes.
- Set up TypeScript configuration for type safety.
- Updated dependencies in pyproject.toml for enhanced functionality.
- Updated GitHub Actions workflows for continuous deployment (cd.yml):
  - Simplified release process by using a dedicated release workflow.
  - Introduced separate jobs for deploying API and Web images.
  - Added documentation sync job and bot commit check for pull requests.

- Refined continuous integration (ci.yml):
  - Consolidated Python and React CI jobs into reusable workflows.
  - Implemented security checks including secret scanning and audits.
  - Added bot commit guard to ensure only allowed bots can commit.

- Created Dockerfile for the Web-Check API with optimized dependency management and setup.

- Added docker-compose.yml for orchestrating services including API, web, and security scanners.

- Introduced architecture and configuration documentation to enhance project clarity.

- Removed outdated Makefile and TODO.yml, streamlining project structure.

- Updated package.json for React to include type checking script.

- Added comprehensive development documentation covering setup, testing, and code quality checks.
…move redundant code blocks and optimize existing functions.
Comment on lines +19 to +32
name: Python CI
if: github.event_name == 'pull_request'
uses: KevinDeBenedetti/github-workflows/.github/workflows/ci-python.yml@main
with:
python-version: "3.12"
working-directory: "."
run-lint: true
run-format: true
run-typecheck: true
run-test: true
run-coverage: false

# ── CI — Security (secret scan + Python audit) ────────────────────────────
security:
Comment on lines +61 to +70
name: CI Passed
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
needs: [python]
steps:
- name: All checks passed
run: echo "✅ All CI checks passed successfully!"

# ── CD — Release Please ───────────────────────────────────────────────────
release:
Comment on lines +71 to +77
name: Release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: KevinDeBenedetti/github-workflows/.github/workflows/release.yml@main
secrets: inherit

# ── CD — Build & push API Docker image (on release) ───────────────────────
deploy-api:
Comment on lines +78 to +91
name: Deploy API
needs: release
if: needs.release.outputs.released == 'true'
uses: KevinDeBenedetti/github-workflows/.github/workflows/cd-docker.yml@main
with:
image-name: web-check-api
context: "."
dockerfile: Dockerfile
tag-latest: true
version: ${{ needs.release.outputs.tag }}
secrets: inherit

# ── CD — Sync docs → kevindebenedetti.github.io ───────────────────────────
deploy-docs:
Comment on lines +92 to +95
name: Sync docs → central repo
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: KevinDeBenedetti/github-workflows/.github/workflows/cd-docs.yml@main
secrets: inherit
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.

2 participants