* Reduce spacing per level in op-project-autocompleter
This used to be 20px per level, but is now reduced to 16px, or 1rem, to
align with `spot-list`
* Fix op-project-autocompleter appendTo and disabled reason
The disabled reason text was shown even if the item was not disabled.
This is fixed here. Also, the op-project-autocompleter appended the
results modal to `body` by default, but that screws up scrolling
oftentimes, so here it is changed back to open in-context by default.
* Disable parent projects of search results
In project-include, parent projects of search results were still
clickable. This behaviour was not to spec, so we now disable projects
that were not directly search results.
* Disable projects that are not search results
In the global project select drop-modal,
all projects were clickable before this.
However, when a project was shown only because
child projects matched the search criteria, it
should be disabled. This commit fixes that.
* Always open project select on top in notification settings
* Fix styling issues in op-project-autocompleter
* Fix text color for list items in project drop modals
* Auto-open project dropdown in work package table
* Fix tooltip being cut off by overflow: auto in project list
* Fix failing spec
* Fix failing spec
* Fix linting errors
* Fix onchange for empty project select on work package move page
* Fix linting errors
* Fix the way focus works in inline create
* Adapt spec to match disabled item
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
* Fix project selectors being stuck without results
Both project-include and the global project menu blocked themselves
into the loading state when no results were returned. This was caused
by a faulty "loaded" check.
Closes https://community.openproject.org/work_packages/42908/activity
* Clean up project include changes
Removes an unnecessary setTimeout that was added for debugging purposes,
and adds an explanatory comment to cryptic loading booleans.
* Add regression test
* Add new query attribute include_subprojects
* Set include_subprojects in factories
* Replace create_query helper with default endpoint
* Adapt spec to new query create service
* Add spec for changed subproject behavior
* Extend project filter with replaced values and add spec
* Fix spec trying to save default query
* Fix ordered_work_packages now that we're base service compatible
* Basic frontend for include all subprojects
* Fix disabled state, update button colors
* Add new query attribute include_subprojects
* Set include_subprojects in factories
* Replace create_query helper with default endpoint
* Adapt spec to new query create service
* Add spec for changed subproject behavior
* Extend project filter with replaced values and add spec
* Add a ParserStruct overriding Enumerable#group_by
* Fix ordered_work_packages now that we're base service compatible
* Add tooltip
* Add tooltips to include projects
* Add is parameter to query props for query space
* Fix specs, add i18n strings
* Correctly parse and update the query with includeSubprojects
* FIx most spec
* Fix badge count for team planner spec, fix duplicated where def in project filter
* Only load project list if opening drop modal
* Expect that sub_sub_bug is also present
* I18nify the strings
* Fix typo
* Fix specs
* Fix linting errors
* Fix specs
* Fix linting errors
* Fix linting errors
* Fix failing specs
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
* Add SPOT foundation styles
* Initial work on buttons
* Implement basic examples page
* Improve spot-checkbox
* Add outline buttons in HTML
* Checkbox works
* Add filter chips
* Initial text field implementation
* Chip field initial implementation, add filter-chip component
* Keep old styleguide page
* Add drop modal component
* Finish checkbox list
* Improve action bar
* Add drop modal alignment options
* Fix drop modal zindex
* Make sure clicks do not close the drop modal, add escape closing event for drop modal
* Add spot-body
* Don't hide drop modal body via display
* Start work on project select
* Add basic form
* Switch to FormGroup
* Generate project data structure
* Basic selecting and unselecting works
* Update buttons and colors
* Add basic button type
* Start work on project select
* Add basic form
* Switch to FormGroup
* Generate project data structure
* Basic selecting and unselecting works
* Increase specificity of toolbar button styles
* Set line height for typography styles
* Fix buttons
* Filtering works
* Add basic toggle component
* Work on better sorting
* Set to query space filters
* Better docs
* Fix disabling current project
* Select and deselect works
* Don't use reactive forms
* Fix heading styles
* Fix toggle font size
* Add number of projects to button
* Change the position of the project include modal in th ework packages table
* Add project include tp spec file, also search for assignees in other projects in tp
* Add current date color
* Rename project-select, initial specs working
* Fix names for form components
* Fix lst add assignee spec
* Add specs for calendar
* Add specs for calendar and wp, refactor specs
* i18nify the strings, remove button to select subprojects
* Fix import to typogrpahy after DS got merged
This otherwise raises an error
* Fix filtering for projects
* Show badge content only when loaded
* Linting
* Move duplicated specs into a shared example
* Improve selectors with retry_blocks
Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>