Skip to content

Conversation

@Hijanhv
Copy link

@Hijanhv Hijanhv commented Nov 14, 2025

📌 Summary

This PR refactors the frontend codebase to replace shortened or abbreviated variable/function names with longer, expressive, and self-documenting names.
The goal is to improve readability, maintainability, and consistency across the project.

No logic or behavioral changes were made.


✨ Changes Included

🔤 Variable & Function Renames

Old Name | New Name | Notes -- | -- | -- currNamespace | currentNamespace | 2 occurrences nsSub | namespaceSubscription | 3 occurrences pollSub | pollingSubscription | 9 occurrences svc | inferenceService | 100+ occurrences svcPrv | inferenceServicePrivate | Private backing fields config | dialogConfig | Dialog config (4 occurrences) config | snackConfig | Snackbar config (2 occurrences) res | dialogResponse | Dialog responses (6 occurrences) currLogs | currentLogs | 1 occurrence

📁 Files Updated (15 Files)

TypeScript

  • index.component.ts

  • config.ts

  • server-info.component.ts

  • events.component.ts

  • overview.component.ts

  • details.component.ts

  • logs.component.ts

  • yamls.component.ts

  • backend.service.ts

HTML Templates

  • server-info.component.html

  • logs.component.html

Tests

  • details.component.spec.ts

  • overview.component.spec.ts


✅ Verification & Safety

  • ✔️ All references updated correctly

  • ✔️ No TypeScript errors

  • ✔️ HTML bindings updated

  • ✔️ Test files updated and passing

  • ✔️ No logic changes

  • ✔️ Backwards-compatible


🧠 Motivation

This PR addresses Issue #133 – Improve Code Readability with More Descriptive Naming by ensuring the codebase uses clear, pronounceable names instead of ambiguous abbreviations.

This empowers future contributors, reduces onboarding friction, and makes the codebase more self-documenting.


📝 Notes

Only naming changes have been made.
No behavioral, architectural, or UI changes are included.

- 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]>
@LogicalGuy77
Copy link
Contributor

this looks good and clean, one thing tho, you can expand Config -> Configuration.
@juliusvonkohout please approve the workflows

@Hijanhv
Copy link
Author

Hijanhv commented Nov 14, 2025

this looks good and clean, one thing tho, you can expand Config -> Configuration. @juliusvonkohout please approve the workflows

done !

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