Skip to content

Enable process mode by default & improve profile label handling#1433

Open
asgharkapk wants to merge 6 commits intochen08209:mainfrom
asgharkapk:main
Open

Enable process mode by default & improve profile label handling#1433
asgharkapk wants to merge 6 commits intochen08209:mainfrom
asgharkapk:main

Conversation

@asgharkapk
Copy link
Copy Markdown

@asgharkapk asgharkapk commented Sep 21, 2025

Summary

  1. Process Mode Default
    • Previously, FindProcessMode defaulted to off.
    • Many community rulesets require process mode, causing mismatches when left disabled.
    • This PR changes the default to on for better out-of-the-box compatibility.
  2. Profile Label from URL
    • Profiles added from a URL would previously show a numeric ID because label was null.
    • This PR sets the profile label from the file name in the URL path, so the UI shows a meaningful name instead of just the ID.

Changes

  • Set @Default(FindProcessMode.off)@Default(FindProcessMode.always).
  • Updated addProfileFormURL to extract the filename from the URL and assign it as the profile label.
  • Updated UI to display profile.label instead of profile.id.

Impact

  • Process Mode: Rulesets depending on process mode now work out-of-the-box.
  • Profiles: Imported profiles from URLs display human-readable names instead of numeric IDs.
  • No breaking changes for existing explicit configs.
### Summary Previously, profiles added from a URL would display a numeric ID as their name because the label was null. This PR sets the profile `label` from the file name in the URL path. If the file name cannot be determined, it falls back to the generated numeric ID. ### Changes - addProfileFormURL now extracts filename from URL for the profile label - UI will display profile.label instead of profile.id
- Added `_getLabelFromURL` to extract profile names from raw, short, or sub-link URLs. - Replaces unsafe characters and query params with readable names. - Truncates names to a max length (default 50) to prevent UI and file system issues. - Falls back to unique ID if parsing fails.
…heuristic short link detection - Detect short links using host length, path segments, or total URL length - Preserve GitHub raw link handling - Default to host + last path segment for normal URLs - Return empty string if label cannot be determined
Change default `FindProcessMode` from `off` to `on` since many rulesets depend on process mode for correct matching and routing.
Change default `FindProcessMode` from `off` to `on` since many rulesets depend on process mode for correct matching and routing.
Change default `FindProcessMode` from `off` to `on` since many rulesets depend on process mode for correct matching and routing.
@asgharkapk asgharkapk changed the title fix: set profile label from URL instead of numeric ID Enable process mode by default & improve profile label handling Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant