Skip to content

refactor: improve URL validation in NavigationUrlHelper#807

Merged
Qinyouzeng merged 9 commits intomainfrom
feature/sapp-global-nav
Mar 26, 2026
Merged

refactor: improve URL validation in NavigationUrlHelper#807
Qinyouzeng merged 9 commits intomainfrom
feature/sapp-global-nav

Conversation

@wzh425
Copy link
Copy Markdown
Contributor

@wzh425 wzh425 commented Mar 26, 2026

  • Added checks to ensure URLs start with "http://" or "https://" before processing.
  • Enhanced the overall robustness of the URL building logic by validating input URLs.

wzh425 added 9 commits March 25, 2026 16:58
…onents

- Added Sapp client references and services in various components.
- Enhanced navigation components to support Sapp-specific features, including maintenance status display and icon handling.
- Updated localization files to include "InMaintenance" messages for multiple languages.
- Adjusted layout and styling for Sapp navigation integration.
- Improved I18nCache to handle Sapp navigation configurations.
- Updated exception handling to log warnings when remote data retrieval fails, ensuring the popover remains renderable.
- Changed method signature of ConvertForNav to static for better performance and clarity.
…gationSapp component

- Replaced direct favorite fetching and recent visit retrieval methods with helper methods from GlobalNavigationInteractionHelper for improved code clarity and maintainability.
- Updated the logic for adding and removing favorites to utilize the new helper methods, enhancing consistency across the component.
…tack.Components into feature/sapp-global-nav
… streamline favorite management in GlobalNavigationSapp

- Added logic to parse navigation types in ExpansionAppWrapper for improved type validation.
- Updated GlobalNavigationSapp to utilize helper methods for fetching favorites and recent visits, enhancing code clarity and maintainability.
…igationUrlHelper

- Replaced the existing URL building logic with a call to NavigationUrlHelper.BuildHref for improved clarity and maintainability.
- This change enhances the handling of navigation URLs by leveraging existing helper methods.
- Added checks to ensure URLs start with "http://" or "https://" before processing.
- Enhanced the overall robustness of the URL building logic by validating input URLs.
@sonarqubecloud
Copy link
Copy Markdown

@Qinyouzeng Qinyouzeng merged commit ea8350b into main Mar 26, 2026
2 checks passed
@Qinyouzeng Qinyouzeng deleted the feature/sapp-global-nav branch March 26, 2026 06:05
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