Skip to content

Commit

Permalink
Set discription for features
Browse files Browse the repository at this point in the history
  • Loading branch information
dyatlov-a committed Sep 25, 2024
1 parent 05edc9f commit 5303a32
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 30 deletions.
8 changes: 4 additions & 4 deletions src/Inc.TeamAssistant.Gateway/wwwroot/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@
"Constructor_FeatureReviewerName": "Tasks review",
"Constructor_FeatureRandomCoffeeName": "Random coffee",
"Constructor_FeatureCheckInName": "Check in on map",
"Constructor_FeatureAppraiserDescription": "Conduct an estimate of tasks",
"Constructor_FeatureReviewerDescription": "Organize code review process",
"Constructor_FeatureRandomCoffeeDescription": "Collect a random coffee meetings",
"Constructor_FeatureCheckInDescription": "Manage distributed development teams",
"Constructor_FeatureAppraiserDescription": "Evaluate tasks using the planning poker method. Fibonacci numbers and degrees of two, as well as T-shirt sizes, are available for evaluation.",
"Constructor_FeatureReviewerDescription": "Organization of the code review process: passing tasks for review, notifying participants, and reviewing statistics.",
"Constructor_FeatureRandomCoffeeDescription": "Holding informal meetings over a cup of coffee, with random pairing of participants selected at intervals.",
"Constructor_FeatureCheckInDescription": "Manage a distributed development team by marking your location on the map and finding the locations of your colleagues.",
"Constructor_FeatureAdd": "Add",
"Constructor_FeatureRemove": "Remove",
"Constructor_FormSectionFeaturesAvailableEmptyText": "No available features",
Expand Down
8 changes: 4 additions & 4 deletions src/Inc.TeamAssistant.Gateway/wwwroot/langs/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@
"Constructor_FeatureReviewerName": "Код ревью",
"Constructor_FeatureRandomCoffeeName": "Проведение кофейных перерывов",
"Constructor_FeatureCheckInName": "Отметки на карте",
"Constructor_FeatureAppraiserDescription": "Проведите оценку задач",
"Constructor_FeatureReviewerDescription": "Организуйте процесс рецензирования кода",
"Constructor_FeatureRandomCoffeeDescription": "Собирайте случайные встречи за чашкой кофе",
"Constructor_FeatureCheckInDescription": "Управляйте распределенными командами разработчиков",
"Constructor_FeatureAppraiserDescription": "Проведение оценки задач при помощи planning poker. Для оценки доступны числа Фибоначчи, майки, степени двойки.",
"Constructor_FeatureReviewerDescription": "Организация процесса code review. Передача задачи на ревью, оповещения участников, статистика по ревью.",
"Constructor_FeatureRandomCoffeeDescription": "Проведение неформальных встреч за чашкой кофе. Случайное формирование пар участников с выбранной периодичностью.",
"Constructor_FeatureCheckInDescription": "Управление распределенной командой разработчиков. Отмечайте свое местоположение на карте и узнавайте местоположение коллег.",
"Constructor_FeatureAdd": "Добавить",
"Constructor_FeatureRemove": "Удалить",
"Constructor_FormSectionFeaturesAvailableEmptyText": "Нет доступных функций",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@inherits InputBase<IEnumerable<Guid>>

@inject DragAndDropService<Guid> DragAndDropService
@inject ResourcesManager ResourcesManager
@inject ResourcesManager Resources
@inject FeaturesFactory FeaturesFactory

<div class="input-features">
Expand All @@ -24,15 +24,15 @@
Description="@FeaturesFactory.CreateDescription(feature.Name)">
<Buttons>
<button type="button" class="button button_light" @onclick="() => ToggleFeature(feature.Id)">
@AddText
@Resources[Messages.Constructor_FeatureAdd]
</button>
</Buttons>
</FeatureCard>
}
}
else
{
<p class="input-features__text">@FeaturesAvailableEmptyText</p>
<p class="input-features__text">@Resources[Messages.Constructor_FormSectionFeaturesAvailableEmptyText]</p>
}
</div>
<div
Expand All @@ -52,15 +52,15 @@
Description="@FeaturesFactory.CreateDescription(feature.Name)">
<Buttons>
<button type="button" class="button button_light" @onclick="() => ToggleFeature(feature.Id)">
@RemoveText
@Resources[Messages.Constructor_FeatureRemove]
</button>
</Buttons>
</FeatureCard>
}
}
else
{
<p class="input-features__text">@FeaturesSelectedEmptyText</p>
<p class="input-features__text">@Resources[Messages.Constructor_FormSectionFeaturesSelectedEmptyText]</p>
}
@if (Validation is not null)
{
Expand All @@ -73,21 +73,9 @@
[Parameter, EditorRequired]
public IReadOnlyCollection<FeatureDto> Features { get; set; } = default!;

[Parameter, EditorRequired]
public string AddText { get; set; } = default!;

[Parameter, EditorRequired]
public string RemoveText { get; set; } = default!;

[Parameter, EditorRequired]
public EventCallback<IEnumerable<Guid>> ValuesChanged { get; set; }

[Parameter]
public string? FeaturesAvailableEmptyText { get; set; }

[Parameter]
public string? FeaturesSelectedEmptyText { get; set; }

[Parameter]
public RenderFragment? Validation { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
Value="_formModel.FeatureIds"
ValueExpression="@(() => _formModel.FeatureIds)"
ValuesChanged="(IEnumerable<Guid> v) => _formModel.SetFeatures(v)"
Features="StagesState.AvailableFeatures"
AddText="@Resources[Messages.Constructor_FeatureAdd]"
RemoveText="@Resources[Messages.Constructor_FeatureRemove]"
FeaturesAvailableEmptyText="@Resources[Messages.Constructor_FormSectionFeaturesAvailableEmptyText]"
FeaturesSelectedEmptyText="@Resources[Messages.Constructor_FormSectionFeaturesSelectedEmptyText]">
Features="StagesState.AvailableFeatures">
<Validation>
<ValidationMessage For="@(() => _formModel.FeatureIds)" />
</Validation>
Expand Down

0 comments on commit 5303a32

Please sign in to comment.