Commit Graph

139 Commits

Author SHA1 Message Date
David F 88a29a0aff Turn checkbox filters into toggle switch. wp/74380 2026-05-26 08:14:56 +02:00
David F 2fa7ce3ae8 Remove filters specific-attributes from date pickers. wp/74380 2026-05-26 08:14:56 +02:00
David F 8403bb74f2 Generalize datetime helper for advanced filters. wp/74380 2026-05-26 08:14:56 +02:00
David F f22771f5fc Replace old select with toggle with autocompleter. wp/74380 2026-05-26 08:14:56 +02:00
David F fe39ccec97 Improve input group markup for advanced filters. wp/74380 2026-05-26 08:14:56 +02:00
David F 1ce489a2e0 Turn partials into form components. wp/74380 2026-05-26 08:14:56 +02:00
David F 68f3d335fa Add optional hidden sentinel field for Primer’s checkbox groups. wp/74398 2026-04-30 11:10:28 +02:00
Henriette Darge 66cae3a519 Merge remote-tracking branch 'origin/dev' into feature/65404-combine-and-redesign-notification-settings-and-email-reminders-pages-in-myaccount-area 2026-04-07 09:08:43 +02:00
Kabiru Mwenja 8272768057 Remove test-mode fallback, require HocuspocusProvider, add context-aware error messages
Extract non-IndexedDB refinements from PR #22125 so they can ship
independently while IndexedDB offline persistence is evaluated separately.

- Gate collaboration on Setting.real_time_text_collaboration_enabled?
  instead of hardcoding it to true
- Remove the test-mode fallback that created a standalone Y.Doc without
  a provider; HocuspocusProvider is now required for document editing
- Refactor useCollaboration hooks: callback-based timeout with proactive
  cancel on sync, extracted useProviderAuthError hook, JSDoc comments
- Add read/write context-aware connection error messages (readonly users
  see "real-time updates will resume" vs writers see "changes will sync")
- Add blocked offline mode: when the server is unreachable and there is
  no local cache, hide the editor entirely to prevent an empty Y.Doc
  from being synced as authoritative content on reconnect
- Update feature specs to use real hocuspocus shared context instead of
  stubbing collaboration_enabled, add offline blocking tests
2026-03-30 16:43:48 +03:00
Henriette Darge 35d481edb7 Pimerize the reminders form 2026-03-26 14:41:54 +01:00
Wieland Lindenthal 60e63674e8 [#70191] Allow searching for work package types and status when selecting work package for time entries (#21522) 2026-03-25 19:31:09 +01:00
Dombi Attila bc5ff90ddc Merge branch 'dev' into merge-release/17.1-20260213121048 2026-02-13 22:20:57 +02:00
Kabiru Mwenja e124eb7dbd Extract primer form browser overried to reusable mixin 2026-02-13 14:44:18 +03:00
Kabiru Mwenja a9ec95f83c Propage browser specific classes to shadow dom root
By default, those browser specific classes exist in <body> (light DOM) while .block-note-editor-container is inside the shadow tree.
2026-02-13 14:44:18 +03:00
Henriette Darge c82f493c9f [71069] Use autocompleters in Admin/Backlogs page (#21841)
* Replace selectPanel with autocompleters

* Fix specs for updated autocompleter

* Attempt to fix test

* Replace ng.getComponent by ViewChild API
2026-02-11 13:57:03 +01:00
Alexander Brandon Coles ab76984c5b Make datepicker_options optional
Default `datepicker_options` to `{}` in `SingleDatePickerInput`
(inherited by `RangeDatePickerInput`), and remove now-redundant
empty hash arguments from callsites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 16:28:43 -03:00
Alexander Brandon Coles 04e6dff4c0 [#71351] Add placeholder to date pickers
Add `placeholder` `@Input` to both `OpBasicSingleDatePickerComponent`
and `OpBasicRangeDatePickerComponent`, and pass it through from the
server-rendered ERB template via `angular_component_tag`.

For the range picker on mobile, the same placeholder is used for
both start and end date fields.

Default `placeholder` to an empty string when not provided, to
avoid `angular_component_tag` serializing `nil` as `"null"`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 16:25:35 -03:00
Behrokh Satarnejad e29a1f8798 Replace fieldset form component 2026-01-23 17:12:51 +01:00
Alexander Brandon Coles c5a165bf2e Increase section bottom margin to 24px
Harmonizes spacing with other pages, e,g. Project Settings.

See 1ba634434d
See opf/openproject#21520
2026-01-14 05:43:57 -03:00
copilot-swe-agent[bot] 9fe7df892a Improve YARD documentation with @option tags for Hash parameters
Co-authored-by: myabc <755+myabc@users.noreply.github.com>
2026-01-14 05:43:57 -03:00
copilot-swe-agent[bot] 68b3041b50 Add YARD documentation to FieldsetGroup#initialize
Co-authored-by: myabc <755+myabc@users.noreply.github.com>
2026-01-14 05:43:57 -03:00
Alexander Brandon Coles 5436a27358 [#70200] Introduce Fieldset component, input group
Introduces both an unstyled, low-level `FieldsetComponent` and the
`fieldset_group` input group for use with the Primer Forms DSL.

https://community.openproject.org/work_packages/70200
2026-01-14 05:43:56 -03:00
Alexander Brandon Coles dfbf5f0f6c Implement select panel form control/input
Makes `SelectPanel` easily usable via the Forms DSL. Based on upstream
`ActionMenuInput` implementation.
2026-01-09 15:48:32 -03:00
Kabiru Mwenja a283c1402a Link existing frontend styles bundle into shadow dom
Instead of creating a dedicated bundle that is duplicated, just provide the stylesheet used in the app to the shadow context
2025-12-17 15:18:12 +03:00
Kabiru Mwenja 2fd0d436ff Create dedicated shadow-dom-primer.scss bundle as a linked stylesheet
Import primer styles into the shadow dom context
2025-12-17 09:35:25 +03:00
Bruno Pagno ff1b957e31 use BlockNote as a custom element under a shadow dom root
- updated blocknote version
- updated op-blocknote-extensions version
- injecting CSS into the shadow dom
2025-12-12 09:32:54 +01:00
Henriette Darge 6185664675 Merge pull request #21186 from opf/feature/69405-remove-border-box-in-project-creation-form
[69405] Remove border box in project creation form
2025-11-26 12:33:54 +01:00
Bruno Pagno d75aa36613 Merge pull request #21184 from opf/impl/68699-readonly-on-blocknote
Make BlockNote editor read only when the user cannot edit a document
2025-11-26 11:54:46 +01:00
Henriette Darge 0a7dcfafc3 Fine tune UI of project creation wizard 2025-11-26 11:19:32 +01:00
Bruno Pagno 90f2ee4380 make BlockNote editor read only when the user cannot edit a document 2025-11-26 08:53:52 +01:00
Oliver Günther 3552df22a6 Implement attribute help text caption 2025-11-25 22:06:38 +01:00
Bruno Pagno b8564ca1fe Merge pull request #21025 from opf/impl/68764-awareness-live-updates
Impl/68764 awareness live updates
2025-11-20 12:16:56 +01:00
Bruno Pagno 7a1112eea8 fix specs 2025-11-19 14:31:07 +01:00
Bruno Pagno 1c2d38f385 show live list of connected users on documents 2025-11-19 14:31:07 +01:00
Mir Bhatia ee42e49ae6 Update form and only show email text area when checked 2025-11-18 17:36:42 +01:00
Henriette Darge 79bf18cae2 Move component specific styles to an own file 2025-11-18 11:48:24 +01:00
Alexander Brandon Coles 6f69140470 Indent caption, aligning with label text
This aligns caption styling closer with standard Primer radio button and
checkbox groups.
2025-11-17 00:06:00 -03:00
Alexander Brandon Coles 2c3a84df04 Implement advanced check, radio form controls 2025-11-17 00:05:59 -03:00
Kabiru Mwenja 1b963659f9 Update editor layout design
Hide scrollbar for documents main and sidebar
2025-11-12 20:47:56 +03:00
Judith Roth d311809ad2 [#68710] Add Files section to existing document edit view
https://community.openproject.org/work_packages/68710

In addition to adding the files section to the document edit view,
this commit makes it optional to be able to attach files to blocknote.
This is, for example, not necessary when blocknote is rendered in
read-only mode (that's not happening yet, but planned).
2025-11-04 14:22:06 +01:00
Judith Roth 459c55aef5 [#67403] Basic file upload from blocknote (to server or storage)
https://community.openproject.org/wp/67403

Working, but not yet polished
2025-10-24 09:32:31 +02:00
Bruno Pagno 23a632107b use oauth token instead of custom JWT for auth 2025-10-20 13:40:27 +02:00
Bruno Pagno 35f9c0b069 fix lint errors and fix unused parameter 2025-10-20 13:40:27 +02:00
Bruno Pagno 7c389738d0 blocknote editor use ydoc when collaboration is disabled 2025-10-20 13:40:27 +02:00
Bruno Pagno d17415aed3 send both document id and name 2025-10-20 13:40:26 +02:00
Christophe Bliard 55017bffbe Merge branch 'dev' into merge-release/16.5-20251015034226 2025-10-15 14:55:16 +02:00
Bruno Pagno 86ff4a3e3b remove unnecessary query for avatar urls 2025-10-14 10:23:42 +02:00
Henriette Darge 2eb2c84b59 Merge remote-tracking branch 'origin/release/16.5' into housekeeping/merge-release-into-dev 2025-10-01 11:02:10 +02:00
Pavel Balashou 30de04dfc5 Preload user attachments before creating avatar_url list.
To avoid n+1 attachment queries.
Problem exists on `documents/new` and `documents/:id/edit` when document category is Experimental
and BlockNoteJS editor is enabled.
2025-10-01 09:15:10 +02:00
Alexander Brandon Coles b966007f4c Fix RichTextArea namespace handling
- Fixes namespace handling when passed an explicit `id:`.
- Updates `RichTextArea` spec for Action View fixes:

  ActionView 8.0.3 fixes generation of label `for` values, so that the
  namespace:` option on the Form Builder is now respected.

  See rails/rails#51237
2025-09-25 09:32:57 +01:00