92 Commits

Author SHA1 Message Date
e384635da5 Refactor last updated handling and add tooltips for timestamps
Moved `lastUpdated` assignment to appropriate API call logic and replaced `lastUpdatedSeconds` with a computed property driven by a reactive `now` value. Added tooltips to display localized date formats for "Last updated" and "Last Mirror sync" timestamps, enhancing UX.
2025-05-05 13:53:33 +02:00
145de73133 Add separate loading and error states for currently building
Introduced `loadingCurrentlyBuilding` and `errorCurrentlyBuilding` states to manage the fetching of currently building packages independently. Updated the logic in `fetchCurrentlyBuilding` and related UI bindings to reflect this change, ensuring clearer state handling and improved error tracking.
2025-05-04 23:57:45 +02:00
35806589f0 Rename .env.example and update .gitignore for consistency
Renamed the frontend `.env.example` to `example.env` for naming clarity. Updated `.gitignore` to include `.env` and `.idea/codeStyles` to ensure unnecessary files are excluded from version control.
2025-05-04 23:39:15 +02:00
7445919003 Refactor package types and improve filter handling
Switch to API schema-defined types for package properties, replacing custom typings for consistency. Streamline filter initialization, validation, and URL parameter handling, while adding safeguards for null values. Simplify components by removing unused exports and types.
2025-05-04 23:32:51 +02:00
3886c7bcbd Refactor StatItem to use required color prop without defaults
Replaced optional `color` prop with a required one and removed default value handling. Simplified template binding by directly applying inline styles for color. This improves clarity and ensures consistent color usage.
2025-05-04 22:19:06 +02:00
075c246710 Migrate data management to OpenAPI-based approach
Replaced manual data handling and filtering logic with an auto-generated OpenAPI client. Introduced new modular Pinia stores for stats and packages, improving maintainability and decoupling data management. Removed outdated custom implementations to streamline the codebase.
2025-05-04 22:18:02 +02:00
555feddabf Add type-safe API client with utility functions
Introduce a type-safe API client using OpenAPI types for ALHP. Implement utility functions `getPackages` and `getStats` for common API usage, and add comprehensive documentation with examples for ease of integration.
2025-05-04 22:18:02 +02:00
83debac064 Update example env file with full API_BASE_URL
This change replaces the placeholder `API_URL` with a full URL in the `VITE_BASE_URL` field of the example `.env` file. It ensures a clearer default configuration for developers setting up the environment. Other values remain unchanged.
2025-05-04 22:18:02 +02:00
24c3463c86 Add OpenAPI integration and generate API types
This commit adds `openapi-typescript` and `openapi-fetch` dependencies to enable OpenAPI integration. A new `generate-api-types` script is introduced to generate TypeScript types from the OpenAPI spec, and it runs prior to the `build` process via the `prebuild` script. Finally, updates to `yarn.lock` reflect the addition of these dependencies.
2025-05-04 22:18:02 +02:00
6f861798ba update deps 2025-04-20 17:32:14 +02:00
7ab90d4af6 add building to general stats 2025-04-20 17:30:30 +02:00
d5f24feb9e add last_mirror_ts to general stats 2025-04-20 17:21:43 +02:00
ad5ce609fc Improve URL parameter handling and add error handling in filters
Refactored the `initFromUrl` function to handle edge cases, including invalid or malformed URL parameters, and added a fallback to default filter options in case of errors. Improved validation for `page`, `status`, and `repo` parameters, ensuring robust behavior and logging errors for debugging.
2025-04-14 21:58:54 +02:00
c458b564ce Update dependencies and fix watch logic in usePackageFilters
Adjusted the watcher in `usePackageFilters` to track the correct reactive object and call `applyFilters` when necessary. Updated various dependencies in `yarn.lock` to their latest versions for compatibility and improved functionality.
2025-04-14 21:52:13 +02:00
bcb9569b26 Refactor package filtering and display components
Replaced inline package filtering and table logic with dedicated reusable components: `PackageFilters` and `PackageTable`. Introduced a composable (`usePackageFilters`) for managing filtering logic and state, and optimized display logic with a new `usePackageDisplay` composable. This improves maintainability, readability, and separation of concerns.
2025-04-14 21:43:18 +02:00
90be95afda Refactor CurrentlyBuilding to use centralized data store
Replaced local state and fetching logic with a Vuex-like data store for better state management. Updated import paths, removed redundant code, and ensured reactive updates using computed properties and watchers. This enhances maintainability and reduces code duplication.
2025-04-14 21:42:52 +02:00
c864664536 Refactor iframe height computation for responsiveness
Replaces the hard-coded iframe height logic with a computed property to dynamically adjust height based on screen width. This simplifies the code and improves maintainability while ensuring proper responsive design behavior.
2025-04-14 21:41:55 +02:00
9762505a24 Refactor BuildStats and MainNav components
Modularize BuildStats by splitting it into smaller components (StatsListSection, StatItem) for better code reusability and readability. Update MainNav to reflect this restructuring and improve the handling of dynamic styles, computed properties, and data binding.
2025-04-14 21:41:28 +02:00
9adeaa4483 Update UI to handle loading and error states for data fetch
Introduced conditional UI components to display loading and error messages during data fetching. Integrated the data store to manage state and added lifecycle hooks for starting and stopping auto-refresh. These changes improve user experience and ensure better feedback during data operations.
2025-04-14 21:39:20 +02:00
43ce135fc6 Add Pinia for state management and API data handling.
Introduced Pinia as the state management library and integrated it with the app. Implemented an `ApiClient` utility and a `dataStore` to fetch, categorize, and manage packages and stats data. Updated application entry to include Pinia and adjusted dependencies in `package.json`.
2025-04-14 21:38:48 +02:00
4e722e5e60 Add type definitions and example .env file for environment vars
Introduce `env.d.ts` to define types for VITE environment variables, ensuring better type safety and development experience. Provide a sample `.env.example` file to guide configuration setup.
2025-04-14 21:37:32 +02:00
265bfac74a Handle package data fetch errors and improve UI feedback.
Added error handling for package data fetches with visual cues to indicate failures (e.g., red pulsating circle). Updated UI text to prompt retries on failures and refactored timers for better synchronization. Improved code readability by removing redundant URL formatting.
2025-04-10 22:48:13 +02:00
8fe8f1e122 Refactor and modularize queued packages handling
Extract queued packages logic into a dedicated `QueuedPackagesList` component for better code modularity and maintainability. Streamline API fetch functions with reusable `fetchPackages` utility and improve code readability by adopting async/await syntax.
2025-04-07 21:06:10 +02:00
db9c7ee523 Refactor Packages component for better readability and maintainability
Simplified logic by extracting helper functions and constants, and improved state management with more descriptive variable names. Enhanced URL parameter handling and adjusted watchers to dynamically update based on changes, ensuring cleaner and more modular code.
2025-04-07 20:51:32 +02:00
d8f52cea61 Refactor Gitea link styling in MainNav component
Moved inline styles to a scoped CSS class for better maintainability and readability. Added hover effect and smooth transition to enhance user interface consistency.
2025-04-07 19:04:49 +02:00
06d868dcfa Refactor BuildStats for dynamic rendering and reuse
Replaced hardcoded items with dynamically generated lists for stats and LTO sections. Introduced reusable styles and refactored the `getStats` function to use async/await, ensuring better readability and maintainability. Enhanced code structure for easier updates and scalability.
2025-04-07 18:58:29 +02:00
3c8f8546cc Refactor "Currently Building" component for improved clarity
Simplified template structure and improved readability by consolidating conditional rendering logic. Added an expandable queue view and a message for empty queues, enhancing the UI/UX. Introduced reusable styles for circular indicators.
2025-04-07 18:53:42 +02:00
a64f296ebe Update iframe height logic for responsive graph display
Replaced hardcoded iframe height with a dynamically calculated value based on graph count and individual graph height. This improves maintainability and ensures consistent resizing across different device widths.
2025-04-07 18:53:16 +02:00
c633ceb3ee Use @use instead of @import in base.scss
Replaced `@import` with `@use` for improved modularity and compatibility with modern Sass practices. This change ensures better scoping and avoids potential conflicts with styles from other files.
2025-04-07 18:53:01 +02:00
147673cdda fix module path, correctly this time 2025-03-23 13:47:35 +01:00
098bb41035 fix module path 2025-03-23 13:46:59 +01:00
20ccb7c441 frontend: update deps & yarn 2025-03-23 12:51:36 +01:00
2af3c9822c fixed pagination breaking on tablets 2025-03-23 03:18:29 +01:00
d67d9e82a7 removed console logging 2025-03-23 03:00:35 +01:00
020cbd3a79 refactor of filtering code 2025-03-23 02:59:00 +01:00
c122252768 Fixed bug on offset url param 2025-03-23 02:18:53 +01:00
727b90a396 Updated filter options 2025-03-23 02:12:13 +01:00
ed3b6b6bb4 added 'exact search' to filtering 2025-03-23 01:11:14 +01:00
4440a86c05 add exact; add multiple status matching; update deps 2025-03-23 01:04:22 +01:00
ee2d17ad3d update deps 2025-01-22 23:14:39 +01:00
4e0aa93edf update deps 2024-09-19 21:33:28 +02:00
8ccaf83b0b update deps; adjusted API for build -> built change 2024-06-23 13:17:26 +02:00
6746d08304 fix only showing one queued & building package 2024-01-26 12:16:00 +01:00
81efe8b62a fixes #3 2024-01-25 23:17:40 +01:00
62541a2549 minor adjustments to margins and paddings 2024-01-25 23:14:40 +01:00
27218d6841 fixed packages for mobile 2024-01-25 22:54:44 +01:00
4994f6aa4f fixed currently-building for mobile 2024-01-25 22:44:09 +01:00
0a0f41bad4 fixed nav for mobile 2024-01-25 22:15:59 +01:00
f3d4b6d5b9 fixed currently-building for mobile 2024-01-25 22:00:28 +01:00
2257072d97 fixed build-server-stats for mobile 2024-01-25 21:42:02 +01:00