Skip to content

Conversation

@Hijanhv
Copy link
Contributor

@Hijanhv Hijanhv commented Nov 17, 2025

PR #144 — Summary

Refactored frontend TypeScript and Angular templates to use clearer, more descriptive identifier names across components, services, and tests.

Key Changes

  • Variables & Services

    • Renamed svcinferenceService
    • Renamed svcPrvinferenceServicePrivate
    • Updated state variables: currentNamespace, currentLogs
  • UI Configuration Objects

    • Renamed dialogConfigdialogConfiguration
    • Renamed snackConfigsnackConfiguration
  • Subscriptions

    • Updated subscription fields:
      • namespaceSubscription
      • pollingSubscription
  • Callbacks & HTML Bindings

    • Updated callback parameters: dialogResponse instead of res
    • Updated Angular HTML template bindings and @Input properties to match new names
  • Code Quality

    • Applied Prettier formatting for consistent style across the codebase

Impact

Improved code readability and maintainability with no functional changes.
All TypeScript files, HTML templates, and unit tests were updated consistently.

@juliusvonkohout
Copy link
Contributor

Hello @Hijanhv , please try to stay in one PR and set a proper PR title. CC @LogicalGuy77

@juliusvonkohout juliusvonkohout linked an issue Nov 17, 2025 that may be closed by this pull request
@Hijanhv Hijanhv changed the title xyzFeature/my changes Refactor: Use More Descriptive, Expressive Naming Across Frontend Nov 17, 2025
@juliusvonkohout
Copy link
Contributor

Please rebase (not merge, never ever merge) to master to fix the conflict.

@Hijanhv
Copy link
Contributor Author

Hijanhv commented Nov 18, 2025

Please rebase (not merge, never ever merge) to master to fix the conflict.

ok

- Rename currNamespace → currentNamespace
- Rename nsSub → namespaceSubscription
- Rename pollSub → pollingSubscription
- Rename svc → inferenceService throughout codebase
- Rename svcPrv → inferenceServicePrivate
- Rename config → dialogConfig/snackConfig (context-specific)
- Rename res → dialogResponse
- Rename currLogs → currentLogs

Updated 13 files including TypeScript components, HTML templates, and test specs to use more expressive and pronounceable variable names while maintaining all functionality.

Signed-off-by: Hijanhv <[email protected]>
- Replace test() with it() in utils.jest.spec.ts for Karma/Jasmine compatibility
- Remove Jest-specific beforeEach code (jest.clearAllMocks)
- Update package-lock.json with kubeflow dependency setup
- All 57 tests now pass successfully

Signed-off-by: Hijanhv <[email protected]>
@LogicalGuy77
Copy link
Contributor

all checks are passing, good work @Hijanhv , let me test it once locally otherwise it looks good to merge

@Hijanhv
Copy link
Contributor Author

Hijanhv commented Nov 19, 2025

Thanks a lot @LogicalGuy77 . Could never do this without your guidance and support while I made all mess . :) now no mess ever , only awareness and professionalism.

ActionIconValue,
DateTimeValue,
DialogConfig,
DialogConfig as DialogConfiguration,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't make sense introducing extra variable as alias, keep it as DialogConfig

@LogicalGuy77
Copy link
Contributor

I've tested it looks good, just make that one change then good to merge! @Hijanhv

@juliusvonkohout juliusvonkohout merged commit a234321 into kserve:master Nov 20, 2025
9 checks passed
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.

Improve Code Readability with More Descriptive Naming Body

3 participants