Commit Graph

123 Commits

Author SHA1 Message Date
DaX
62a4891112 Remove decorative icons and update CORS configuration 2025-06-20 13:05:36 +02:00
DaX
18110ab159 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>
2025-06-20 01:12:50 +02:00
DaX
a2252fa923 Fix production environment variables
- Remove old Confluence variables
- Add NEXT_PUBLIC_API_URL for API access

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-20 00:11:36 +02:00
DaX
1a96e5eef6 Switch to static export with build-time data fetching
- Change from server-side rendering to static export
- Fetch data at build time and save as JSON
- Remove API routes and tests, use static JSON file
- Switch back to WEB platform from WEB_COMPUTE
- Update build test for static export
- Exclude out directory from security scan
- Much simpler and more reliable approach
2025-06-19 01:13:15 +02:00
DaX
2baac7be9f Add build testing and pre-commit hooks
- Add test-build.js script to verify standalone build locally
- Add pre-commit hook with security, build, and test checks
- Copy required-server-files.json to root of standalone for Amplify
- Add husky for automatic pre-commit validation

This ensures we test builds locally before pushing
2025-06-19 01:03:47 +02:00
DaX
e1f68744e7 Fix standalone build artifacts
- Remove public directory copy (doesn't exist)
- Keep static files copy for standalone build
2025-06-19 00:53:08 +02:00
DaX
62608ebb43 Fix Next.js standalone build for Amplify WEB_COMPUTE
- Set output to standalone in next.config.js
- Update build artifacts to use .next/standalone
- Copy static files to standalone directory
- Remove invalid serverActions config
2025-06-19 00:45:44 +02:00
DaX
58d91f78ab Fix Next.js API route for Amplify WEB_COMPUTE platform
- Add .env.production for Amplify environment variable mapping
- Update artifacts configuration for WEB_COMPUTE platform
- Add explicit nodejs runtime for API route
- Enable serverActions in Next.js config
- Add debugging output for environment variables

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 00:38:50 +02:00
DaX
d5f16af3b3 Fix Next.js deployment configuration
- Fix security test to properly mock fetchFromConfluence errors
- Remove test execution from build (env vars not available in build)
- Remove standalone output for Amplify compatibility
- Platform already updated to WEB_COMPUTE via Terraform

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 00:19:21 +02:00
DaX
21f6577592 Convert to Next.js with security features
- Migrate from Vite to Next.js 15 for server-side API support
- Add dynamic API route at /api/filaments that fetches from Confluence
- Implement security measures:
  - API credentials only accessible server-side
  - Security scan script to detect credential leaks
  - Tests to ensure no sensitive data exposure
  - Build-time security checks in CI/CD
- Update AWS Amplify configuration for Next.js deployment
- Update Terraform to use WEB_COMPUTE platform for Next.js
- Add Jest tests for API security
- Remove static JSON approach in favor of dynamic API

This provides real-time data updates while keeping credentials secure on the server.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 00:11:19 +02:00
DaX
4b39190251 Fix production data fetching with static JSON
- Add build-time data fetching from Confluence
- Create build-data.js script to fetch and save data at build time
- Update App.tsx to use static JSON in production, API in development
- Install tsx for running TypeScript build scripts
- Configure Amplify to fetch data during build process
- Add public directory configuration to Vite

This fixes the white page error by providing data at build time instead of runtime.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 00:00:26 +02:00
DaX
63f973ccf1 Merge branch 'dev' 2025-06-18 23:52:30 +02:00
DaX
68cb8c4bf6 Remove unused API file and update gitignore
- Delete src/pages/api/filaments.ts that was causing build failure
- Add .vite/ to gitignore

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-18 23:49:34 +02:00
DaX
606a5136dc Clean up unused code and sync Terraform state
- Remove unused Express server (server.js)
- Remove unused API route (src/pages/api/filaments.ts)
- Remove Express dependency and related scripts from package.json
- Import existing AWS domain association into Terraform
- Add domain configuration to terraform.tfvars
- Update domain association to include www and dev subdomains
- Set wait_for_verification to false to avoid timeouts

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-18 23:43:28 +02:00
DaX
d8bafae5ed dd
dd
2025-06-18 23:28:55 +02:00
DaX
d7d047d9e6 Fix client-side environment variable errors and improve column parsing
- Removed client-side environment variable usage to fix browser errors
- Added support for 'kolicina' (without diacritic) as alternative spelling
- Added debug logging for column parsing
- Simplified API endpoint for production deployment
2025-06-18 23:24:26 +02:00
DaX
f87512725b Fix TypeScript build errors
- Fixed unused variable warnings by prefixing with underscore
- Removed unused imports
- Removed test files from repository
2025-06-18 23:18:21 +02:00
DaX
7f20d342fc Fix Confluence integration and add sortable columns
- Fixed Confluence API authentication using Basic auth with email
- Added /wiki path to API URL for proper endpoint
- Improved HTML parsing with cheerio for better table extraction
- Made all table columns sortable (previously only 4 were clickable)
- Removed fallback to mock data - now always uses real Confluence data
- Only color Boja column instead of entire rows for cleaner look
- Added proper error handling and logging
2025-06-18 23:11:43 +02:00
DaX
0860686019 UI improvements
- Removed subtitle from header
- Added vertical borders to table for better readability
- Removed footer text
- Cleaner, more minimal interface
2025-06-17 23:30:27 +02:00
DaX
050292539a Add Serbian translations and dark mode support
- Translated all UI text to Serbian
- Added dark mode toggle with system preference support
- Fixed text contrast on colored table rows
- Added dark mode styles throughout the app
2025-06-17 23:18:14 +02:00
DaX
49bcca5a9b Deploy Filamenteka to AWS Amplify
- Fixed Terraform outputs
- Configured AWS Amplify deployment
- Ready for production deployment
2025-06-17 22:46:50 +02:00
DaX
c394d94bb0 Initial Filamenteka setup - Bambu Lab filament tracker
- React + TypeScript frontend with automatic color coding
- Confluence API integration for data sync
- AWS Amplify deployment with Terraform
- Support for all Bambu Lab filament colors including gradients
2025-06-17 22:39:35 +02:00
DaX
8cc137864b Initial commit 2025-06-17 18:39:09 +02:00