14 Commits

Author SHA1 Message Date
Oliver Günther b06e1d4f1b Keep and comment html_safe usages we need 2026-03-20 08:53:15 +01:00
Ivan Kuchin 43a1df6684 replace formatted argument with format for attribute component
It was unclear whether formatted means already formatted or that it
should be, hopefully naming it as an action will be clearer
2026-02-05 14:15:12 +01:00
Alexander Brandon Coles 65dc1dd2fe Fix super calls in component #initialize methods
`ViewComponent::Base` previously inherited from `ActionView::Base` but
defined a catch-all `#initialize` to allow passing arbitary arguments.

See: https://github.com/ViewComponent/view_component/pull/2293
See: https://github.com/ViewComponent/view_component/pull/2287
2025-09-01 08:30:30 +01:00
Alexander Brandon Coles 04eefed350 Freeze string literals in app/components
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/components
2025-07-22 13:06:59 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
ulferts 1f8a2d8335 increase stability on shortened text and macros 2024-04-10 08:57:01 +02:00
Dombi Attila 95a0b0825d Introduce optional formatting for the AttributeComponent in order to pass pre-formatted values to it. 2024-04-03 18:39:11 +03:00
ulferts 99b1ac15d9 apply text attribute component to overview page - using text expander 2024-03-28 08:33:45 +01:00
Dombi Attila 89ce735d23 Merge branch 'dev' into epic/49688-custom-set-of-project-attributes-grouped-in-sections 2024-03-19 20:42:54 +02:00
ulferts 63e6918ae4 handle line break only long text field in project list 2024-03-19 13:58:04 +01:00
ulferts 4bdba9a792 consider only the first child when calculating the preview 2024-03-06 18:27:25 +01:00
ulferts 9307d0942f styling of text when preview is not available 2024-03-06 17:22:56 +01:00
Aaron Contreras 62f7cc3088 Run rubocop -a on app/components 2024-03-01 18:14:07 -05:00
Behrokh Satarnejad a5ee5ca606 [52127] project list truncate long text fields and disable expand action (#14838)
* remove unnecessary code

* remove column for collapsing in table

* truncate project status description and add dialog to the end of it

* change dialog title for project status description

* change dialog title for custom fields of long text

* add dialog and truncation for project description

* add a test for it

* change element for long text and add divider for modal header

* show the expand link for the long text with table

* move styes from table sass file to projects list style sheet

* change class names

* Update _table.sass

* show expand button when there is a macro in a long text field

* change size of modal to large

* remove divider of modal header

* create a separate component to be used for attribute dialog

* create a new stimulus controller for cell changes

* create a new component for showing a long text in a cell

* remove unnecessary classes

* use attribute component to show long text value on list

* check if the attribute value is multi type then show a specific text for it

* delete project controller

* add more test cases

* remove margin from text element

* remove duplicated code

* remove gear icon from table header

* use targetConnected callback instead of connect
2024-02-29 17:29:00 +01:00