Skip to content

Conversation

@zechtz
Copy link
Owner

@zechtz zechtz commented Oct 15, 2025

No description provided.

zechtz added 12 commits August 20, 2025 20:10
- Remove platform-specific syscall import that fails on Linux CI/CD
- Replace syscall.Stat_t usage with portable 'ls -la' command parsing
- Maintain same functionality for detecting root-owned PID files
- Ensures compatibility across macOS, Linux, and CI/CD environments

Resolves build failures in CI/CD pipelines while preserving the nginx
permission fix functionality for first-run installations.
…pper validation

- Add JAVA_HOME environment variable check in wrapper validation functions
- Prevent API hanging by failing fast when JAVA_HOME is not set
- Create JavaHomeErrorDisplay component with detailed setup instructions
- Add CopyButton component for easy copying of shell configuration commands
- Provide platform-specific Java detection commands (macOS, Linux)
- Include examples and step-by-step instructions for bash, zsh, and fish shells
- Replace generic error display with comprehensive JAVA_HOME troubleshooting UI
…inux commands

- Add platform-specific JAVA_HOME configuration for macOS and Linux
- Include proper PATH setup alongside JAVA_HOME export
- Provide macOS-specific commands using /usr/libexec/java_home utility
- Add support for specific Java version selection (e.g., Java 21)
- Include Linux commands using readlink and alternatives
- Organize instructions by platform with visual indicators
- Add comprehensive examples for both general and specific Java versions
- Each command now properly sets both JAVA_HOME and updates PATH
- All commands are individually copyable with dedicated copy buttons
- Convert sidebar to flexbox layout with flex-col direction
- Make navigation area scrollable with overflow-y-auto and flex-1
- Keep footer fixed at bottom with flex-shrink-0
- Maintain existing responsive behavior and animations
- Prevents menu items from being hidden when sidebar content exceeds viewport height
- Ensures all 12 navigation items remain accessible regardless of screen height
…al uniqueness

- Remove global UNIQUE constraint on service names in database schema
- Add database migration to handle existing installations safely
- Implement ValidateServiceNameUniquenessInProfile function for profile-scoped validation
- Update RenameService to use profile-scoped validation instead of global check
- Add name conflict validation in AddServiceToProfile to prevent duplicates within profiles
- Service names are now unique within each profile, allowing different profiles to have services with same names
- Maintains backward compatibility with automatic migration for existing databases

This resolves the issue where different profiles couldn't have services with the same logical names
like "frontend", "backend", "database" etc.
…wing all services

Backend changes:
- Update getUptimeStatisticsHandler to filter services by active profile
- Extract user from JWT token to determine active profile
- Filter services list to only include those in the active profile
- Maintain backward compatibility by falling back to all services if no active profile

Frontend changes:
- Add Authorization Bearer token to uptime statistics API call
- Include proper authentication headers for profile-scoped data access
- Maintain consistent authentication pattern with other API calls

Now uptime statistics only show services from the user's currently active profile,
providing a focused view relevant to the current working context.
…ents

New Components:
- UptimeProgressBar: Visual progress bars with color-coded uptime percentages and trend indicators
- ServiceDetailModal: Detailed drill-down view with comprehensive service metrics and analytics
- ServiceUptimeCard: Mobile-optimized card layout with key metrics and visual indicators
- UptimeFilters: Advanced filtering and sorting controls with search, status, and uptime filters

Enhanced Dashboard Features:
- Grid/Table view toggle for better user experience and mobile responsiveness
- Real-time filtering by service name, status, and uptime thresholds
- Multi-criteria sorting (name, uptime, restarts, downtime) with ascending/descending order
- Time range selector (1h, 6h, 24h, 7d, 30d) for flexible data viewing
- Interactive service cards and table rows with click-to-detail functionality

Visual Enhancements:
- Color-coded progress bars for instant uptime assessment (green ≥99%, yellow ≥95%, red <95%)
- Trend indicators showing uptime improvements/degradations
- Availability ratings (Excellent, Good, Fair, Poor) based on 7-day uptime
- Updated summary cards with filtered counts and contextual information
- Responsive design optimized for mobile, tablet, and desktop

User Experience Improvements:
- Modal-based service details with comprehensive metrics breakdown
- Advanced filtering with reset functionality
- Visual feedback for loading states and empty results
- Improved mobile navigation and touch-friendly interfaces
- Profile-scoped data display with service count indicators

The uptime statistics now provide a comprehensive, visually appealing, and highly interactive
interface for monitoring service reliability and availability metrics.
- Change default viewMode from 'grid' to 'table' for better data density
- Reorder view toggle buttons to show List icon first (as default)
- Reorganize JSX sections to place table view before grid view for consistency
- Table view provides more comprehensive data at a glance compared to cards
- Users can still switch to grid view for a more visual/mobile-friendly experience
- Add JWT authentication checks to all log-related API endpoints
- Scope log operations to current user's active profile services only
- Fix frontend API calls to include Authorization headers
- Update log search to use serviceIds instead of serviceNames
- Fix variable redeclaration errors in utility handlers
- Ensure log cleanup, search, export, and clear operations respect profile boundaries
- Add onClose() call after successful environment variables save
- Improves user experience by automatically closing the modal
- Maintains existing success toast notification
@zechtz zechtz merged commit 858ab71 into main Oct 15, 2025
7 checks passed
@zechtz zechtz deleted the uptime-stats branch October 15, 2025 23:06
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