Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#54453] Attribute help texts are missing for the Overview sidebar

Dombi Attilaf08a4c0950cc
diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts
index 0f48578fe0c..31994a02083 100644
--- a/frontend/src/app/app.module.ts
+++ b/frontend/src/app/app.module.ts
@@ -148,6 +148,9 @@ import {
import {
DraggableAutocompleteComponent,
} from 'core-app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component';
+import {
+ AttributeHelpTextComponent,
+} from 'core-app/shared/components/attribute-help-texts/attribute-help-text.component';
export function initializeServices(injector:Injector) {
return () => {
@@ -330,5 +333,6 @@ export class OpenProjectModule {
registerCustomElement('opce-macro-wp-quickinfo', WorkPackageQuickinfoMacroComponent, { injector });
registerCustomElement('opce-ckeditor-augmented-textarea', CkeditorAugmentedTextareaComponent, { injector });
registerCustomElement('opce-draggable-autocompleter', DraggableAutocompleteComponent, { injector });
+ registerCustomElement('opce-attribute-help-text', AttributeHelpTextComponent, { injector });
}
}
diff --git a/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb
index cfe116a4181..060e2ed501b 100644
--- a/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb
+++ b/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb
@@ -7,7 +7,16 @@
}) do |custom_field_value_container|
# temporarily using inline styles in order to align the content as desired
custom_field_value_container.with_row(mb: 1) do
- render(Primer::Beta::Text.new(font_weight: :bold)) { @project_custom_field.name }
+ render(Primer::Beta::Text.new(font_weight: :bold)) do
+ concat(@project_custom_field.name + " ")
+ concat(
+ helpers.angular_component_tag("opce-attribute-help-text",
+ inputs: {
+ attribute: @project_custom_field.attribute_name(:camel_case),
+ attributeScope: "Project"
+ })
+ )
+ end
end
custom_field_value_container.with_row(w: :full) do