-
Notifications
You must be signed in to change notification settings - Fork 64
Refactor: Use More Descriptive, Expressive Naming Across Frontend #144
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
Conversation
|
Hello @Hijanhv , please try to stay in one PR and set a proper PR title. CC @LogicalGuy77 |
|
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]>
Signed-off-by: Hijanhv <[email protected]>
Signed-off-by: Hijanhv <[email protected]>
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]>
039af10 to
846b828
Compare
|
all checks are passing, good work @Hijanhv , let me test it once locally otherwise it looks good to merge |
|
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, |
There was a problem hiding this comment.
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
|
I've tested it looks good, just make that one change then good to merge! @Hijanhv |
Signed-off-by: Hijanhv <[email protected]>
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
svc→inferenceServicesvcPrv→inferenceServicePrivatecurrentNamespace,currentLogsUI Configuration Objects
dialogConfig→dialogConfigurationsnackConfig→snackConfigurationSubscriptions
namespaceSubscriptionpollingSubscriptionCallbacks & HTML Bindings
dialogResponseinstead ofres@Inputproperties to match new namesCode Quality
Impact
Improved code readability and maintainability with no functional changes.
All TypeScript files, HTML templates, and unit tests were updated consistently.