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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move the user nudging as part of the dialogs page
Henriette Darge7d9125a443d1
diff --git a/lookbook/docs/patterns/05-dialogs.md.erb b/lookbook/docs/patterns/05-dialogs.md.erbindex 1c46825bf6b..d0217e66e30 100644--- a/lookbook/docs/patterns/05-dialogs.md.erb+++ b/lookbook/docs/patterns/05-dialogs.md.erb@@ -1,8 +1,13 @@As of now, this page is still a stub. In particular, the considerations on when and where to apply Dialogs are still missing.-For now, it can be stated that OpenProject employs Dialogs for more purposes than GitHub Primer specifies.+For now, it can be stated that OpenProject employs Dialogs for more purposes than GitHub [Primer specifies](https://primer.style/components/dialog).-## Confirmation dialogs++## Special kinds of dialogs++We have multiple kind of dialogs that re-appear throughout the whole application. In order to make sure, they all look and feel alike, we further specify them here.++### Confirmation dialogsWhenever a user is about to perform an action that has a significant impact, a confirmation dialog is shown.@@ -14,7 +19,12 @@ Or it can be to ascertain the user actually wants to destroy a model.<%= embed OpenProject::Common::DialogPreview, :confirm_deletion %>-## Form dialogs++#### Where it's used++- Project list → Delete the project list++### Form dialogsWithin the OpenProject application, forms are oftentimes rendered within a dialog. It is used e.g. forthe creation of new models or for the modification of existing ones.@@ -51,3 +61,27 @@ In pseudo html, the logical format is then like this:```<%= embed OpenProject::Common::DialogPreview, :form %>+++#### Where it's used++- WorkPackage → Meeting Tab → Add meeting to WorkPackage++### User nudging modal++The idea of nudging modals is to promote users to perform actions that are not 100% mandatory but might be interesting for them. For example, after creating a type, an admin would like to add the new type to a project and configure a workflow for it. Another example is to grant personal access to a recently created storage:++<lookbook-embed+preview="OpenProject::Storages::Admin::OAuthAccessGrantNudgeModalComponentPreview"+scenario="default"+panels="">+</lookbook-embed>+++#### Accessibility considerations++To be written down..++#### Where it's used++- Admin → Storages → OAuth Grant Accessdiff --git a/lookbook/docs/patterns/10-user-nudging.md.erb b/lookbook/docs/patterns/10-user-nudging.md.erbdeleted file mode 100644index 5f801760539..00000000000--- a/lookbook/docs/patterns/10-user-nudging.md.erb+++ /dev/null@@ -1,49 +0,0 @@--<lookbook-embed- preview="OpenProject::Storages::Admin::OAuthAccessGrantNudgeModalComponentPreview"- scenario="default"- panels="">-</lookbook-embed>--> Example of modal to lead a user to a complex process--The dialog is used to guide a user through a complex process (e.g. when setting up an OAuth setting).--## Composition--This pattern is composed of these components:--**Dialog header**---**Dialog body**---**Dialog footer**---## Modal body content--TBD?--## Behaviour--TBD?--## Dos and Dont's--**Do**--- TBD?--**Don't**--- TBD?--## Options--Are there any? TBD?--## Where it's used--- Admin -> Storages -> OAuth Grant Access