chore(Scheduling): add i18n [YTFRONT-5069]#1557
Draft
ma-efremoff wants to merge 1 commit intomainfrom
Draft
Conversation
Reviewer's GuideIntroduces internationalization for the Scheduling UI by replacing hard-coded strings with i18n keys, centralizing column header logic, and wiring localized messaging into dialogs, toolbars, toasters, and helpers across scheduling-related components and actions. Class diagram for scheduling table headers and i18n-based captionsclassDiagram
class SchedulingTable {
+useSchedulingTableColumns()
+makeNumberColumn(id, options)
+makeReadableFieldColumn(id, options)
}
class SchedulingColumnHeader {
+column: SchedulingColumn
+title: string
+shortTitle: string
+allowUnordered: boolean
+options: ColumnHeaderOption[]
+loading: boolean
+onSort(column, order, meta)
}
class ColumnHeader {
+column: string
+title: string
+shortTitle: string
+order: string
+onSort(column, order, meta)
}
class childTableItems {
<<object>>
+user.caption: string
+owner.caption: string
+mode.caption: string
+view_mode.caption: string
+guaranteed.caption: string
+FI.caption: string
+weight.caption: string
+min_share.caption: string
+max_share.caption: string
+fair_share.caption: string
+usage.caption: string
+demand.caption: string
+operation_count.caption: string
+max_operation_count.caption: string
+running_operation_count.caption: string
+max_running_operation_count.caption: string
+duration.caption: string
+burst_cpu.caption: string
+flow_cpu.caption: string
+sort(item)
}
class format {
+ReadableField(column): string
}
class i18n_scheduling_overview {
<<i18n>>
+i18n(key): string
}
SchedulingTable --> SchedulingColumnHeader : uses
SchedulingColumnHeader --> ColumnHeader : wraps
SchedulingColumnHeader --> childTableItems : reads_caption_and_title
SchedulingColumnHeader --> format : fallback_title_from_column
SchedulingTable --> childTableItems : per_column_config
childTableItems --> i18n_scheduling_overview : caption_via_i18n
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
Storybook is ready. |
Contributor
|
Playwright components report is ready. |
Contributor
|
Statoscope report is ready. |
Contributor
|
E2E-local report is ready. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://nda.ya.ru/t/33XIdLxL7axQQx
## Summary by SourceryInternationalize scheduling UI and related actions by replacing hardcoded text with i18n keys and centralizing column titles and labels.
New Features:
Enhancements: