The serve:test command was broken, because it
used an unsupported command-line option. Thus the
frontend container would not start at all, thus breaking asset
delivery during tests.
A healthcheck was introduced as well, so that a non starting frontend
container is easier to spot going forward.
It seems to be fine to have these ports settings as well as
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS envvar set in docker-compose.yml
directly. So, there is less to override to get your docker TLS dev stack working.
The latest upgrades to our frontend stack prohibited access through the
openproject.local hostname and also caused trouble with the previous setup
where the frontend stack would proxy requests to the backend.
Thus the default setup was now changed so that both frontend and backend
are exposed to the browser via different hostnames. The main service to start
will be the backend, which will redirect requests to certain assets to the frontend
service (this was already integrated into the rails routes previously).
fix: Replace unsupported repeated yaml anchors with merge
`docker compose` v2.17.2 fails with the following syntax error due to
go/yaml/v3 update.
```sh
❯ docker compose config
yaml: unmarshal errors:
line 40: mapping key "<<" already defined at line 39
line 40: mapping key "<<" already defined at line 39
line 40: mapping key "<<" already defined at line 39
```
"goyaml/v3 does not support repeated anchors (due to internal storage
using << as key during parsing) but allows use of multi-values in
anchors"
See: https://github.com/docker/compose/issues/10411#issuecomment-1488019350https://yaml.org/type/merge.html
If you have a `.env` file in the repository that specifies mal settings,
these can overwrite the default mailing settings for the testing setup.
This commit explicitly sets the appropriate env variable correctly.
Squash commit of storybook addition to aid design system documentation efforts.
The older commit titles were:
* Initial storybook commit
* Fix documentation.json links
* Don't track documentation.json in git
* Enable sass in storybook
* Initial version of a story that uses angular components
* Remove example stories, clean up button story
* More example stories
* Fix sb build
* Always use dev
* Try without auth header
* Update workflow name
* More logs
* Check if token set
* Use release/storybook branch for testing
* Send ref input to workflow
* Escape input to curl call
* Adding logging
* Different type of escaping
* Fix JOSN
* Use dev branch for opf/design-system storybook publishing
* Add plugin to message path to parent window
* Remove extraneous story
* Add a ton of docs
* Update stories
* Fix syntax error caused by multiple newlines inside of a JSX component
* Add text-field story
* Add basic html stories that don't work yet
* Try to get plain HTML examples working
* HTML Examples work, but slowly revert to components anyway
* Fix HTML examples
* Remove extraneous files
* Put storybook eslint rules back in
* Improve docs
* Show docs tab by default
* Add pullpreview for storybook
* Use the same pullpreview tag for both storybook and normal deployments
* Change name of second pullpreview workflow
* Pin node version to 16.17.0
* Initial update to docs
Added/updated:
Foundation pages:
- Colours (major update)
- Shadows (minor)
- Typography (new)
Blocks
- Checkbox (minor)
- Action bar (major)
- Buttons (new)
- Link (major)
- Modal Dialogue (new)
- Selector Field (new)
* Make sure all code is available during storybook pp build
* Change storybook pullpreview file name
* Add production target to docker-compose sb pp
* Fix acme check for sb pp
* Only run cd-storybook on dev branch
* Run without https on 8080
* Added intro and new page
- Introduction renamed to "Design System", page rewritten completely
- Added page "Devices and Accessibility"
* Remove domain from caddy
* Add port to listen command
* Remove double pullpreview workflows
* Added Divider component
* Change sorting of stories
* Update section titles and order for styles and blocks
* add extra action bar story
* Updated organising + new page
- Updated organisation into Styles, Components and Patterns.
- Added page "Using Storybook" (mostly a skeleton for now)
* Added note about colours not being implemented yet
* Minor
Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
* Add basic assignee autocompleter
* Add basic principal store
* Improve Principal typing, working principal adding in resource table
* Small improvements to comments
* Simpler handling
* Better add button
* Add assignee remove button
* Basic spec
* Working team planner assignee spec
* Spec is a little better
* Fixed work package loading and specs
* Fix linting issues
* Fix linting issues
* Fix spec
* Remove @ts-ignore usage
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
Commit e37b29b8fc updated the selenium driver and webdriver from v3 to v4, but failed to address local docker
development. This commit updatesthe docker selenium setup, and pins the docker images to a specific version, something
that wasn't done before.
* Lazy load prettier dependency
* Remove tickety-tick-formatter completely
* Also escape dollar signs
* Fix branch name formatting
* Reduce commit message transformation for git-actions service to make it more in line with the tickety-tick formatter
* Update git commit formatter
* More fixes to formatter
* Fix regexes to work globally
* Also remove quotes from branch names
* Still trying to get these specs green
* Another tyr
* Started experimenting with capabilities
* Started adding akita store
* Use current user store to filter projects
* Work on integrating capabilities
* Added capability checks
* Fix project select
* Working on ium specs
* Change ng select option list format
* Fix proejct search label
* Fix some specs
* Fix issue with principal select
* Add spec for missing placeholder user capabilities
* Add new capability specs, fix existing ones
* Fix import
* Update shrinkwrap
* Add JSDoc deprecations
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
* docker dev and test setup fixes
* added missing >
* include test instructions in quickstart
* fixed typo
Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>
* removed obsolete comment
Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>
* amendments
Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>
* [35527] Add quick add button menu in top menu
* Add quick menu item to top menu
* Refactor top_menu.sass to follow BEM
* Only render project-based path if persisted
* Render project types when in project context
* Add headline and determine if any types are visible
* Hide quick add menu for unauthorized users
* Fix login menu dropdown by adding class
* Add schematic for correctly generating components
* Add augment service for triggering invite user modal
* Fix allowed_to? check in menu
* Add spec
* Highlight types and show all
* Fix help menu overridden
* Extend spec
* Add parent_id to project in dropdown and expand advanced settings
* Reload the page if the modal returned any data
* Fix invalid url allowed check if there is no URL to check
* Basic BEM changes
* Remove old classes
* Update more classes
* Update togling logic
* Fixed menu opening and some styles
* Added op-menu
* Fix some help menu styles
* Add op-menu to help menug
* Add avatar border
* Fix auth_provider_spec
* Fix zen mode
* Fix static link help menu
* Fixed top menu specs
* Fix self registration specs
* Fix logout spec
* Fix bim revit navigation spec
* Fixed menu permissions spec
* Fix homescreen onboarding tour spec
* Fix top menu item spec
* Remove unused file
* Fix a lot of mobile styles
* Fix more mobile styles
* Fixed build
* Move quick add menu to right hand side
* Improve quick-add-button styles, fix main-menu-toggle close icon
* Remove add new project spec
* Fix spec
* Update project dropdown styles
* Fix click handler for chrome mobile, update some styles
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
* Fix some ium stylings
* Extend create service to also test with empty names
* Add PrincipalLike type to pass around non-created placeholder refs
* Add icon-context
* Move principal rendering to its own module
* Fix emit create new placeholder to principals
* Revert op-principal for now
* Add memberships form API to properly post
* Fix types for returned principals
* Move untilDestroyed in role
* Filter input if not string in role-search
* Pass correct inputs to success component
* Return principal after saving membership
* Fix small stuff around the ium
* Fix the way HalResources are selected and passed
* Move principal module to be exported by common
* Disable quotemark in tslint until eslint is enabled
* Fix image path in success
* Adapt modal to run all steps in one within the modal helper component
* Several fixes to modals
* Fix ium success component styles,
* Registration modal y-overflow
* Add SMTP parameters to .env.example
* Add disabled option to op-option-list, disabled placeholder users for non-ee instances
* Add correct ee link to placeholder user option
* Fix build
* Removed unused sass files
* Fix principal search not found indicator, added placeholder add image
* Fix enterprise edition url, use dirty instead of touched check
* Use backend class names for frontend principal types
* Fix duplicate import and principal type usage
* Also disable banners if with_ee is present in test
* Extend specs for placeholders
* Fix disabled attribute
* Extend spec WIP
* Improved inline-validation styles, fixed more PrincipalType usages
* Add group happy path test, fix more PrincipalType usage
* Fix a translation
* Revert line deletion
* Rewrite same spec examples into shared examples
* Fix name of shared example
* Dont run assets:clean to remove angular assets
* Output whether assets are there at all
* Fix placeholder path
* Revert "Output whether assets are there at all"
This reverts commit 42219c2755.
Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>