Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.17.3 - Angular 17 + Quality of Life improvements #156

Merged
merged 20 commits into from
Feb 23, 2024
Merged

Conversation

SakuraIsayeki
Copy link
Owner

No description provided.

spencernaugler7 and others added 19 commits January 29, 2024 08:52
change injection for more idiomatic angular
This commit adds the development environment configuration file that went missing during commit e0e9e4c.
- Updated the template syntax to use single quotes instead of double quotes.
- Replaced the deprecated `mergeMap` and `switchMap` operators with `computed` and `firstValueFrom`.
- Removed unused imports and variables.
- Added error handling for cases where the path is not provided.
This commit fixes an issue where the minimap state  was not attached to posts, in queries for sent posts. The code changes include adding the `Include` method to include the replay in the query for both cases. This ensures that the replay is now properly retrieved along with other relevant data when querying posts by player or author.
Updated statements and signals per Angular 17 upgrades.
The dev script in package.json has been updated to include the `--ssl true` flag. This enables SSL support when running the development server using `ng serve`.
- Updated Angular and its related dependencies to version 17.2.2.
- Updated Microsoft Application Insights packages to versions 15.1.0 and 3.1.0 respectively.
- Updated Popper.js Core to version 2.11.8.
- Updated Bootstrap, Bootstrap Icons, and Bootswatch packages to their latest versions.
- Updated tslib to version 2.6.2 and zone.js to version ~0.14.4.
- Refactored the telemetry initializer in the AppInsightsService class.
- Simplified the subscription callback for authService.userInfo$.
- Modified the addTelemetryInitializer method to use item instead of envelope.
- Added missing nullish coalescing operator (||=) for item.tags array initialization.
- Set specific values for "ai.cloud.role", "ai.cloud.roleInstance", and "region" tags in item.tags.
- The `applicationUrl` in the `launchSettings.json` file has been updated from "http://localhost:5010" to "https://localhost:5010".
- This change ensures that the application is accessed securely over HTTPS.
- Improved the UI layout of the profile component by adjusting the positioning and alignment of elements.
- Moved the modal for displaying mod actions related to the player's profile. Mod actions are now displayed regardless of player's wgHidden status.
- Updated the `openModActionsModal` method to use `firstValueFrom` to ensure asynchronous behavior when opening the modal.
- Added player ID display in the modal header
- Updated card styling and layout for mod actions
- Replaced ngFor loop with a for loop directive
- Fixed player-namelink component usage
- Refactored profileId input to use input decorator
- Refactored loaded$ BehaviorSubject to use signal function
- Refactored modActions$ observable to use toObservable function
- Updated OpenModal method signature and parameter usage
The global PSA message has been commented out in the code. This change removes the display of a success alert and information alert on the web page. The success alert previously informed users about the deployment of a replay RCE detection system, while the information alert provided details about a Replay Scanner app. These alerts are no longer visible on the platform.

This commit does not introduce any functional changes but modifies the HTML file to comment out these sections of code.
- Improved the layout of the modal header by adding a gap between the title and player ID.
- Added the player ID to the modal header using a code tag.
- Adjusted the styling of the ban cards in the modal body.
- Updated table structure for ban details, including ban ID, reason, expiration date, and whether it has been reverted.
- Added banned by, banned on, and updated on information to each ban card.
- Refactored code to use input decorators instead of InputObservable decorator.
- Updated OpenModal method to accept platform bans array and profile ID as optional parameters.
- Added environment badges to the navbar component HTML file
- The badges display the current environment name (development or preview)
- Updated the navbar component TypeScript file to import the `environment` variable from the correct path
- Injected `AuthService` into the `NavbarComponent` class
This commit adds the `UseSystemd` method to the host configuration in the `Program.cs` file. This allows for better integration with systemd on Linux systems.
The button to display platform bans details has been moved in the profile component's HTML file. It is now placed inside a conditional statement that checks if there are any platform bans. This change ensures that the button is shown when there are existing platform bans, regardless if the player is pending current ban.
The `openEditor` method in the `PostsReceivedComponent` now uses `async/await` syntax for better readability and error handling. Instead of using `combineLatest` with an array, it directly assigns values to the `post.player.id` and `post.author.id` properties of the modal component instance.
@SakuraIsayeki SakuraIsayeki added API Related to API development enhancement New feature or request Web Related to Web App development labels Feb 23, 2024
@SakuraIsayeki SakuraIsayeki changed the title 0.17.2 - Angular 17 + Quality of Life improvements 0.17.3 - Angular 17 + Quality of Life improvements Feb 23, 2024
- Updated the project version to 0.17.3
- Updated various package versions, including Hangfire.AspNetCore to 1.8.11, Hangfire.PostgreSql to 1.20.6, Microsoft.AspNetCore.Authentication.JwtBearer to 8.0.2, Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson to 8.0.2, Microsoft.EntityFrameworkCore.Design to 8.0.2, Npgsql.EntityFrameworkCore.PostgreSQL to 8.0.2, Polly.Extensions to 8.3.0
- Updated the package.json version for wowskarma.app to 0.17.3
@SakuraIsayeki SakuraIsayeki marked this pull request as ready for review February 23, 2024 23:58
@SakuraIsayeki SakuraIsayeki merged commit fea7d42 into main Feb 23, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to API development enhancement New feature or request Web Related to Web App development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants