Skip to content

🔧 Update package.json Scripts for Production Deployment - #1

Open
antonioap101 wants to merge 58 commits into
masterfrom
dev
Open

🔧 Update package.json Scripts for Production Deployment #1
antonioap101 wants to merge 58 commits into
masterfrom
dev

Conversation

@antonioap101

Copy link
Copy Markdown
Member

This PR updates the scripts section in package.json to ensure proper deployment in a production environment. The key changes include:

  • Modified start script to use production configuration

Website translated to english and spanish, enabling an option to select the desired language.

Must add a cookie to permanently select a language within a browsers context.
Added centralized const routes for backend endpoints and internal app routes, to avoid hardcoding.
@antonioap101 antonioap101 self-assigned this Mar 2, 2025
@antonioap101 antonioap101 added the fix Something got fixed label Mar 2, 2025
# Conflicts:
#	src/app/components/cards/card/card.component.ts
…ations

- Refactored WebSocket service to dynamically handle incoming notifications.
- Improved type checking and parsing of WebSocket messages.
- Updated notification handling to properly display different notification types.
- Ensured real-time updates work seamlessly with the new backend WebSocket implementation.
- Improved error handling and logging for WebSocket disconnections.

This update improves the real-time notification experience, ensuring correct message handling and better UI responsiveness.
- Replaced `setTimeout(invalidateSize, 100)` with `ResizeObserver` for automatic resizing.
- Moved map initialization to `ngAfterViewInit()` to ensure DOM is fully loaded before rendering.
- Removed unnecessary `ChangeDetectorRef.detectChanges()` since it was not needed.
- Improved performance by ensuring Leaflet's `invalidateSize()` is only triggered when the container resizes.

This fix ensures that the map properly resizes and renders correctly in all scenarios.
- Replaced `setTimeout(invalidateSize, 100)` with `ResizeObserver` for automatic resizing.
- Moved map initialization to `ngAfterViewInit()` to ensure DOM is fully loaded before rendering.
- Removed unnecessary `ChangeDetectorRef.detectChanges()` since it was not needed.
- Removed unnecessary field intervalId.
- Improved performance by ensuring Leaflet's `invalidateSize()` is only triggered when the container resizes.

This fix ensures that the map properly resizes and renders correctly in all scenarios.
# Conflicts:
#	src/app/components/map-site/map-geo/map-geo.component.ts
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 16:00 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 16:11 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 16:14 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 16:25 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 17:03 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 17:12 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 17:16 Inactive
@koyeb
koyeb Bot temporarily deployed to production-acousea-frontend/acousea-frontend March 5, 2025 17:19 Inactive
antonioap101 and others added 30 commits March 7, 2025 19:47
…o monitor panels.

feat(rtc-monitor-panel): Added new component for RTC Module.

feat(operation-modes-graph): Created `OperationModesGraphComponent` for visualizing and managing operation modes.
- Integrated `cytoscape.js` for interactive graph rendering.
- Added right-click context menu for editing nodes, deleting nodes, and adding edges.
…ix event binding issues and improve type safety

- Fixed incorrect type assertion in (input) event binding
- Wrapped `$event.target` in parentheses for proper casting
- Used safe navigation (`?.value`) to prevent potential null errors
- Ensured numeric conversion in `updateLoRaReporting` and `updateIridiumReporting`
- Improved robustness by handling undefined values safely
- Implemented `window.innerWidth` to dynamically adjust `main-content` width
- Added `@HostListener('window:resize')` to update layout on window resize and zoom changes
- Removed reliance on `vw` and `calc()` to ensure proper recalculations
- Ensured `main-content` adapts smoothly when the side menu expands or collapses
- Improved overall UI responsiveness and synchronization

This update ensures that the main content area properly adjusts without overlap or layout inconsistencies.
Created NodeContextService as a facade to unify access to node-related services:
- Integrated SelectedNodeService for node selection and diff tracking
- Integrated NodeConfigurationService for fetching, updating nodes and reporting periods
- Exposed public API methods for components to interact with nodes via a single entry point

Maintains separation of concerns while simplifying consumption from UI components.
…ant fetches. Refactored settings-site.component.ts to use the nodeContext appropriately
…ant fetches. Refactored settings-site.component.ts to use the nodeContext appropriately
# Conflicts:
#	src/app/sites/settings-site/settings-site.component.ts
…Config components to extend the monitorPanel class.

feat(warning-component): Added modular/reusable warning component that receives a message as Input and displays it next to a warning icon
…d operationmodes. Removed deprecated popup for changing operation modes.
… into mutable and readonly variants to split inheritance and avoid passing boolean parameters through constructor
…like ExtModule interface) with ICListenHFDto and preparing support for VemcoVR2CDto subclasses
…on to divide into subsections of device information, like in settings section, leaving new room for VR2C Device Information

update(translations): Updated translations to integrate with the previous refactor
…eners with dynamic grow/shrink behavior. Moved dashboard subsections to the sites folder inside dashboard-site
…ce methods post-execution

This decorator allows wrapping any class method so a provided callback is executed
after the method finishes. It supports both synchronous and asynchronous methods,
and is ideal for calling `emitChange(this.data)` in `MutableNodeMonitorPanelComponent`
children without repeating logic.
Refactored ICListenStreamingConfigMonitorPanelComponent to use @EmitAfter decorator
for all data mutations. All ngModel bindings now route through dedicated setter methods
to ensure emitChange(this.data) is called automatically after changes.

This improves maintainability and ensures consistent update emissions.
…al movement when showing the enter/leave popup animation, instead of only vertical movement
…eparated backend.route.paths from app.route.paths in different files.

fix(settings/information view): Fixed settings and information view not resetting subsection when changing selected node.

fix(device-cards-list): Fixed device-cards-list directly using the nodeContext service instead of eventEmitter for parent component to manage.
…global alert system

- Refactored Notification namespace for cleaner structure and better defaults
- Removed AlertPopupComponent and AlertPopupService
- Integrated local notifications via NotificationListComponent and NotificationService
…m settings

- Ensured compatibility between checkbox input and model type
- Updated setWavLoggingMode to map boolean to numeric values (1/0)
- Prevented type mismatch when toggling waveform logging mode
…and Pam) from interfaces to classes

 - Added a static field to all NodeDevice-Modules for their name.
 - Added NodeConfigurationService method to request an updated version of a given modules (Ext || Pam) list
…mplementation with methods using the previously added module names to request updated statuses of their configuration and/or value.
…es and aggregated all of them into SerializableModules only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something got fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant