Major restructure: Remove Confluence, add V2 data structure, organize for dev/prod

- Import real data from PDF (35 Bambu Lab filaments)
- Remove all Confluence integration and dependencies
- Implement new V2 data structure with proper inventory tracking
- Add backwards compatibility for existing data
- Create enhanced UI components (ColorSwatch, InventoryBadge, MaterialBadge)
- Add advanced filtering with quick filters and multi-criteria search
- Organize codebase for dev/prod environments
- Update Lambda functions to support both V1/V2 formats
- Add inventory summary dashboard
- Clean up project structure and documentation

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DaX
2025-06-20 01:12:50 +02:00
parent a2252fa923
commit 18110ab159
40 changed files with 2171 additions and 1094 deletions

View File

@@ -0,0 +1,12 @@
# Development Environment Variables
environment = "dev"
app_name = "filamenteka"
# API Gateway stage
api_stage_name = "dev"
# DynamoDB table
dynamodb_table_name = "filamenteka-filaments-dev"
# Domain configuration (dev subdomain)
domain_name = "dev.filamenteka.rs"

View File

@@ -0,0 +1,12 @@
# Production Environment Variables
environment = "production"
app_name = "filamenteka"
# API Gateway stage
api_stage_name = "production"
# DynamoDB table
dynamodb_table_name = "filamenteka-filaments"
# Domain configuration
domain_name = "filamenteka.rs"

View File

@@ -66,7 +66,7 @@ resource "aws_lambda_function" "filaments_api" {
environment {
variables = {
TABLE_NAME = aws_dynamodb_table.filaments.name
CORS_ORIGIN = var.domain_name != "" ? "https://${var.domain_name}" : "*"
CORS_ORIGIN = "*"
}
}
@@ -89,7 +89,7 @@ resource "aws_lambda_function" "auth_api" {
JWT_SECRET = var.jwt_secret
ADMIN_USERNAME = var.admin_username
ADMIN_PASSWORD_HASH = var.admin_password_hash
CORS_ORIGIN = var.domain_name != "" ? "https://${var.domain_name}" : "*"
CORS_ORIGIN = "*"
}
}

View File

@@ -49,9 +49,6 @@ resource "aws_amplify_app" "filamenteka" {
# Environment variables
environment_variables = {
CONFLUENCE_API_URL = var.confluence_api_url
CONFLUENCE_TOKEN = var.confluence_token
CONFLUENCE_PAGE_ID = var.confluence_page_id
NEXT_PUBLIC_API_URL = aws_api_gateway_stage.api.invoke_url
}

View File

@@ -3,10 +3,6 @@
github_repository = "https://github.com/yourusername/filamenteka"
github_token = "ghp_your_github_token_here"
confluence_api_url = "https://your-domain.atlassian.net"
confluence_token = "your_confluence_api_token"
confluence_page_id = "your_confluence_page_id"
# Admin Authentication
jwt_secret = "your-secret-key-at-least-32-characters-long"
admin_username = "admin"

View File

@@ -9,22 +9,6 @@ variable "github_token" {
sensitive = true
}
variable "confluence_api_url" {
description = "Confluence API base URL"
type = string
}
variable "confluence_token" {
description = "Confluence API token"
type = string
sensitive = true
}
variable "confluence_page_id" {
description = "Confluence page ID containing the filament table"
type = string
}
variable "domain_name" {
description = "Custom domain name (optional)"
type = string