Skip to content

Conversation

@magicxor
Copy link
Owner

No description provided.

magicxor and others added 28 commits April 11, 2025 04:01
Changes the CreatePostAsync and CreateThreadAsync methods to return a `OneOf` result, either the created post id or a domain error, depending on whether posting restrictions are active for the user.

This allows the web layer to display appropriate error messages to the user if they are banned or otherwise restricted from posting.
Ensures a newline character is added before quoting a post if the textarea isn't empty and doesn't already end with a newline.
Also, focuses the textarea after quoting.
Improves category creation and update processes by using mapping profiles.
This reduces code duplication and enhances maintainability.
Modifies the thread creation process to handle potential errors during category retrieval.
Instead of throwing an exception, returns a domain error, allowing for more graceful error handling in the application layer.
This ensures that the application can respond appropriately to invalid category aliases.

fix
…stead of ExecuteUpdateAsync for better tracking and data consistency.
Adds a check to prevent the banning of users with private IP addresses.
This enhances security and avoids unintended consequences of banning internal network addresses.

The implementation includes an `IsPrivate` method within the IP address calculator service.
The ban creation prerequisite service is updated to check for private IPs before proceeding.
A new status is added to reflect this condition.

fix
Adds the display of the banned IP address to the ban administration index and display template.
This enhancement improves the clarity and manageability of ban records.
Improves the ban creation process by preventing the banning of local or private IP addresses.
This change adds a specific error message when an attempt is made to ban such an address, enhancing user experience and preventing unintended consequences.
Additionally, enables SS018 analyzer to catch missing enum cases.
Makes thread titles clickable, linking to the thread details page.
Also adds title attributes to the pin, lock, and infinity icons for accessibility.
Updates the thread details URL generation to correctly include the thread ID.

This ensures that the generated URL properly links back to the intended thread details page.
Improves accessibility by adding tooltips to the 'IsSageEnabled' and 'ModifiedAt' fields in the post details view.

The tooltips display the display name of the model properties, providing users with more context about the fields.
Implements role-based user management in the admin panel.

Introduces role listing and assignment to users, enhancing administrative control.
Also, refactors user management to include role information and assignment during creation and editing.

Updates validation and identity configuration to improve security and data integrity.
@magicxor magicxor merged commit d9d2e0f into master Apr 14, 2025
2 checks passed
@magicxor magicxor deleted the develop branch April 14, 2025 06:30
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