Skip to content

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

Remove some deprecated lookbook previews

Henriette Darge11e55e6b6fce
diff --git a/lookbook/docs/patterns/deprecated/modals.md.erb b/lookbook/docs/patterns/deprecated/modals.md.erb
deleted file mode 100644
index 44e21733e95..00000000000
--- a/lookbook/docs/patterns/deprecated/modals.md.erb
+++ /dev/null
@@ -1,92 +0,0 @@
-<%= embed OpenProject::Deprecated::ModalPreview, :danger_zone %>
-
-> Example of modal with two buttons: Cancel and Continue (danger)
-
-The modal dialogue is used to to provide actions that require the user’s attention. They interrupt the user’s regular navigation in that they cover the screen and make interaction behind it not possible whilst it is displayed.
-
-The most common use-case are alert dialogues (before deleting a file, for example), but the modal is also used for in a number of other places (see “Where it’s used”).
-
-## Composition
-
-This pattern is composed of these components:
-
-**Modal header**
-This consists of the top header, with text and an optional horizontal divider. The text is ideally short and serves to clarify the context of the modal to the user.
-
-**Modal body**
-This part contains all the elements that form the modal: text, form elements, videos, images, work package cards. The user normally is invited to perform actions or view something.
-
-**Modal footer**
-The footer of a modal dialogue is always an [action bar](?path=/docs/blocks-action-bar--default-story).
-
-## Container
-
-The modal is contained in frame with a white background, rounded corners (4px). The footer, being an action bar, can either have a grey (default) or a white background.
-
-## Modal body content
-
-In its simplest form, the modal’s content is simply text (as in the example above). However, the modal can contain a range of other components, including images, video, tables, work package cards, checkbox and scrollable areas.
-
-This component does not by itself define the types of content it can contain. Some Dos and Don’ts are nevertheless to be respected.
-
-## Behaviour
-
-The modal is launched by user action and displayed in a lightbox (a semi-transparent grey background).
-
-The action bar always has only two actions, one of which is always “Cancel” (secondary) and the other one usually an confirmational action like “Apply” or “Save”. As with any action bar, a third action (usually a checkbox) can optionally be displayed on the left corner.
-
-Clicking outside the modal, in the grey area, is the equivalent of pressing the cancel button.
-
-## Dos and Dont's
-
-**Do**
-
-- Do try to keep the modal as simple as possible. The goal is to direct user attention to something specific in the context of another action or place. If a feature requires a lot of configuration options and that itself has different modes, consider a full page.
-
-**Don't**
-
-- Don’t nest modals into modals, simple drop-downs are fine.
-- Customise the modal with variations (like colours) unless they are absolutely necessary, In which case, the modal component can be expanded to allow for them.
-- Make titles very long (avoid having them span more than a line)
-
-**Margins, Padding and Styling**
-
-The container has 4px rounded corners.
-
-The modal (in desktop form) has two acceptable widths: 40 REM and 60 REM.
-
-The header has 16px padding (left and right) and a 16px top margin.
-
-Note that the optional divider in the header a 16px top margin but no additional margin/padding, and must take 100% of the width of the modal.
-
-The content area has has 16px margins all around it.
-The action bar has no margins relative to the container (but does have its own internal margins defined in the action bar component).
-
-## Options
-
-**Header divider**
-
-The header can have an optional divider at the bottom (Grey-5 #E0E0E0, 1px).
-
-**Header icon**
-
-The header can have an optional icon (24px square) on the left side.
-
-## Where it's used
-
-- Filepicker / location picker
-- Alert dialogue
-- Delete file links
-- Remove file
-- Work package deletion
-- Invite user
-- Log time
-- Add widget
-- New Board
-- Work package table settings
-- Help text
-- Help > Introduction video
-- My account > Two-factor authentication > Backup codes password
-- My account > Two-factor authentication > Delete authentication
-- Administration > Attribute help texts > Preview help text
-- Administration > Enterprise Edition > Delete token
diff --git a/lookbook/previews/open_project/deprecated/contextual_info_text_preview.rb b/lookbook/previews/open_project/deprecated/contextual_info_text_preview.rb
deleted file mode 100644
index 7bfb83004f5..00000000000
--- a/lookbook/previews/open_project/deprecated/contextual_info_text_preview.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-module OpenProject
- module Deprecated
- # @logical_path OpenProject/deprecated
- class ContextualInfoTextPreview < Lookbook::Preview
- def default; end
- end
- end
-end
diff --git a/lookbook/previews/open_project/deprecated/contextual_info_text_preview/default.html.erb b/lookbook/previews/open_project/deprecated/contextual_info_text_preview/default.html.erb
deleted file mode 100644
index afbcd45291e..00000000000
--- a/lookbook/previews/open_project/deprecated/contextual_info_text_preview/default.html.erb
+++ /dev/null
@@ -1,4 +0,0 @@
-<p>
- Some text here
- <span class="contextual-info -small">(Some contextual information for the text)</span>
-</p>
diff --git a/lookbook/previews/open_project/deprecated/links_preview.rb b/lookbook/previews/open_project/deprecated/links_preview.rb
deleted file mode 100644
index b98bfb71027..00000000000
--- a/lookbook/previews/open_project/deprecated/links_preview.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-module OpenProject
- module Deprecated
- # @logical_path OpenProject/deprecated
- class LinksPreview < Lookbook::Preview
- def default; end
- end
- end
-end
diff --git a/lookbook/previews/open_project/deprecated/links_preview/default.html.erb b/lookbook/previews/open_project/deprecated/links_preview/default.html.erb
deleted file mode 100644
index 4181d30d686..00000000000
--- a/lookbook/previews/open_project/deprecated/links_preview/default.html.erb
+++ /dev/null
@@ -1,12 +0,0 @@
-<a href="#">A normal link</a>
-
-<div>
- <a href="#" class="sort asc">Sort link</a>
- <a href="#" class="sort desc">Sort link</a>
-</div>
-
-<a href="#" class="issue">#2999 open issue</a>
-<a href="#" class="issue closed">#2999 closed issue</a>
-
-<a href="#" class="icon">&nbsp;</a>
-<a href="#" class="icon-context">&nbsp;</a>
diff --git a/lookbook/previews/open_project/deprecated/news_preview.rb b/lookbook/previews/open_project/deprecated/news_preview.rb
deleted file mode 100644
index 6f6cd647e30..00000000000
--- a/lookbook/previews/open_project/deprecated/news_preview.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-module OpenProject
- module Deprecated
- # @logical_path OpenProject/deprecated
- class NewsPreview < Lookbook::Preview
- def default; end
-
- def detailed_view; end
- end
- end
-end
diff --git a/lookbook/previews/open_project/deprecated/news_preview/default.html.erb b/lookbook/previews/open_project/deprecated/news_preview/default.html.erb
deleted file mode 100644
index bf491daddb3..00000000000
--- a/lookbook/previews/open_project/deprecated/news_preview/default.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="news">
- <h3 class="news--header">
- <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">
- <a href="/news/5-important-news">More news</a>
- </h3>
- <p class="author additional-information">Added by <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <a title="10/31/2018 09:15 AM" href="/projects/demo-project/activity?from=2018-10-31">3 months</a> ago
- </p>
- <div class="wiki">
- <p>
- Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.
- </p>
- </div>
-
- <h3 class="news--header">
- <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">
- <a href="/news/4-terrible-news">News</a>
- </h3>
- <p class="author">Added by <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <a title="06/31/2018 09:15 AM" href="">7 months</a> ago
- </p>
- <div class="wiki">
- <p>
- Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.
- Cu nam fabellas apeirian patrioque. Has cu indoctum consulatu, nam invidunt nominati id.
- </p>
- </div>
-</div>
diff --git a/lookbook/previews/open_project/deprecated/news_preview/detailed_view.html.erb b/lookbook/previews/open_project/deprecated/news_preview/detailed_view.html.erb
deleted file mode 100644
index a7c3c942eb6..00000000000
--- a/lookbook/previews/open_project/deprecated/news_preview/detailed_view.html.erb
+++ /dev/null
@@ -1,62 +0,0 @@
-<div class="toolbar-container">
- <div class="toolbar">
- <div class="title-container">
- <h2>
- <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">
- Latest news
- </h2>
- </div>
- <ul class="toolbar-items"></ul>
- </div>
-</div>
-
-<p>
- Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.
- Cu nam fabellas apeirian patrioque. Has cu indoctum consulatu, nam invidunt nominati id.
-</p>
-<p class="author additional-information">Added by
- <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <a title="10/31/2018 09:15 AM" href="">3 months</a> ago
-</p>
-
-<div class="comments">
- <h3 class="icon-context icon-quote">Comments</h3>
-
- <div class="comment">
- <div class="contextual">
- <a data-confirm="Are you sure?" class="no-decoration-on-hover" title="Delete" alt="Delete" href="">
- <i class="icon-context icon-delete"></i>
- </a>
- </div>
- <h4 class="author additional-information">
- <img class="avatar-mini" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">Added by
- <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <a title="01/28/2019 01:15 PM" href="/projects/demo-project/activity?from=2019-01-28">1 minute</a> ago
- </h4>
- <p>
- Lorem ipsum dolor sit amet, his ei propriae suscipit.
- Sit in atqui accumsan ponderum, eum ut luptatum lobortis, has ei tota illud detraxit.
- </p>
- </div>
-
- <div class="comment">
- <div class="contextual">
- <a data-confirm="Are you sure?" class="no-decoration-on-hover" title="Delete" alt="Delete" href="">
- <i class="icon-context icon-delete"></i>
- </a>
- </div>
- <h4 class="author additional-information">
- <img class="avatar-mini" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">Added by
- <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <a title="01/28/2019 01:15 PM" href="/projects/demo-project/activity?from=2019-01-28">1 minute</a> ago
- </h4>
- <p>
- Lorem ipsum dolor sit amet, his ei propriae suscipit.
- </p>
- </div>
-
- <p>
- <a href="">Add a comment</a>
- </p>
-
-</div>
diff --git a/lookbook/previews/open_project/deprecated/progress_bar_preview.rb b/lookbook/previews/open_project/deprecated/progress_bar_preview.rb
deleted file mode 100644
index 3809c5e192a..00000000000
--- a/lookbook/previews/open_project/deprecated/progress_bar_preview.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-module OpenProject
- module Deprecated
- # @logical_path OpenProject/deprecated
- class ProgressBarPreview < Lookbook::Preview
- def default; end
- end
- end
-end
diff --git a/lookbook/previews/open_project/deprecated/progress_bar_preview/default.html.erb b/lookbook/previews/open_project/deprecated/progress_bar_preview/default.html.erb
deleted file mode 100644
index 23db8a1f77a..00000000000
--- a/lookbook/previews/open_project/deprecated/progress_bar_preview/default.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<span>
- <span style="width: 100px" class="progress-bar">
- <span style="width: 40%" class="inner-progress closed"></span>
- <span style="width: 20%" class="inner-progress done"></span>
- </span>
- <span class="progress-bar-legend">60% Total progress</span>
-</span>
diff --git a/lookbook/previews/open_project/deprecated/toolbar_component_preview.rb b/lookbook/previews/open_project/deprecated/toolbar_component_preview.rb
deleted file mode 100644
index 98c951082a4..00000000000
--- a/lookbook/previews/open_project/deprecated/toolbar_component_preview.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-module OpenProject
- module Deprecated
- # @logical_path OpenProject/deprecated
- class ToolbarComponentPreview < Lookbook::Preview
- # A toolbar that can and should be used for actions on the current view.
- # Initially designed for the Work package list, this can be reused throughout the application.
- def default; end
-
- def with_form_elements; end
-
- def with_labelled_form_elements; end
- end
- end
-end
diff --git a/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb b/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb
deleted file mode 100644
index 6eb85e9d7fe..00000000000
--- a/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb
+++ /dev/null
@@ -1,21 +0,0 @@
-<div class="toolbar-container">
- <div class="toolbar">
- <div class="title-container">
- <h2>Title of the page</h2>
- </div>
- <ul class="toolbar-items">
- <li class="toolbar-item">
- <a href="#" class="button -primary">An important button</a>
- </li>
- <li class="toolbar-item">
- <button class="button">Normal button</button>
- </li>
- <li class="toolbar-item">
- <button class="button">
- <i class="button--icon icon-star"></i>
- <span class="button--text">Favourite button</span>
- </button>
- </li>
- </ul>
- </div>
-</div>
diff --git a/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb b/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb
deleted file mode 100644
index 8fd73c4e7cf..00000000000
--- a/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="toolbar-container">
- <div class="toolbar">
- <div class="title-container">
- <h2>Dragonball Z characters</h2>
- </div>
- <ul class="toolbar-items">
- <li class="toolbar-item">
- <select name="attribute">
- <option value="" selected></option>
- <option value="super">Super</option>
- </select>
- </li>
- <li class="toolbar-item">
- <input type="text" name="race" placeholder="Race">
- </li>
- <li class="toolbar-item">
- <input type="number" id="level" placeholder="Level">
- </li>
- <li class="toolbar-item">
- <select>
- <option value="" selected></option>
- <option value="vegeta">Vegeta</option>
- <option value="kakarotto">Kakarotto</option>
- <option value="gohan">Gohan</option>
- <option value="piccolo">Piccolo</option>
- <option value="oob">Boo</option>
- </select>
- </li>
- <li class="toolbar-item -icon-only">
- <a href="#" class="button -primary" aria-label="Add" title="Add">
- <i class="button--icon icon-add"></i>
- <span class="button--text">Add</span>
- </a>
- </li>
- </ul>
- </div>
- <p class="subtitle">now with extremely long subtitle: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste consequatur doloribus suscipit nemo temporibus deserunt alias incidunt doloremque officia rerum, nobis fuga, recusandae voluptatibus voluptatem tenetur repellendus itaque et. Eum.</p>
-</div>
diff --git a/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_labelled_form_elements.html.erb b/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_labelled_form_elements.html.erb
deleted file mode 100644
index 982dd29c8c1..00000000000
--- a/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_labelled_form_elements.html.erb
+++ /dev/null
@@ -1,36 +0,0 @@
-<div class="toolbar-container">
- <div class="toolbar">
- <div class="title-container">
- <h2>Dragonball Z characters</h2>
- </div>
- <ul class="toolbar-items">
- <li class="toolbar-item toolbar-input-group">
- <div>
- <label for="name">Name</label>
- </div>
- <select name="name">
- <option value="" selected></option>
- <option value="vegeta">Vegeta</option>
- <option value="kakarotto">Kakarotto</option>
- <option value="gohan">Gohan</option>
- <option value="piccolo">Piccolo</option>
- <option value="oob">Boo</option>
- </select>
- </li>
- <li class="toolbar-item toolbar-input-group">
- <div>
- <label for="haircolor">Hair color</label>
- </div>
- <select name="haircolor">
- <option value="" selected></option>
- <option value="black">black</option>
- <option value="green">green</option>
- <option value="red">red</option>
- <option value="yellow">yellow</option>
- <option value="grey">grey</option>
- </select>
- </li>
- </ul>
- </div>
- <p class="subtitle">now with extremely long subtitle: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste consequatur doloribus suscipit nemo temporibus deserunt alias incidunt doloremque officia rerum, nobis fuga, recusandae voluptatibus voluptatem tenetur repellendus itaque et. Eum.</p>
-</div>
diff --git a/lookbook/previews/open_project/deprecated/widget_component_preview.rb b/lookbook/previews/open_project/deprecated/widget_component_preview.rb
deleted file mode 100644
index 1bd178c6a4c..00000000000
--- a/lookbook/previews/open_project/deprecated/widget_component_preview.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# frozen_string_literal: true
-
-module OpenProject
- module Deprecated
- # @logical_path OpenProject/deprecated
- # @label Widget boxes
- class WidgetComponentPreview < Lookbook::Preview
- def default; end
- end
- end
-end
diff --git a/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb b/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb
deleted file mode 100644
index 79302436324..00000000000
--- a/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb
+++ /dev/null
@@ -1,100 +0,0 @@
-<section class="widget-boxes -flex">
-
- <!-- Widget box with arrows: Single-line -->
- <div class="widget-box">
- <h3 class="widget-box--header">
- <div class="widget-box--header-title title-container">
- <h2 class="editable-toolbar-title--fixed">Widget Box</h2>
- </div>
- </h3>
- <p class="widget-box--additional-info">This widget box can be used to display content belonging to one subject.</p>
- <ul class="widget-box--arrow-links">
- <li>
- <a>Go to Link 1</a>
- </li>
- <li>
- <a>Go to link 2</a>
- </li>
- </ul>
- </div>
-
- <!-- Widget box with arrows: Multiline -->
- <div class="widget-box">
- <h3 class="widget-box--header">
- <div class="widget-box--header-title title-container">
- <h2 class="editable-toolbar-title--fixed">Widget Box 2</h2>
- </div>
- </h3>
- <ul class="widget-box--arrow-links">
- <li class="-widget-box--arrow-multiline">
- <div>
- <img class="avatar-mini" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">
- <a href="">Demo project</a>:
- <a href="">Important news</a>
- <br>
- <p class="widget-box--additional-info">Added by
- <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <time title="10/31/2018 09:15 AM" class="timestamp">3 months</time> ago
- </p>
- </div>
- </li>
- <li class="-widget-box--arrow-multiline">
- <div>
- <img class="avatar-mini" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">
- <a href="">Demo project</a>:
- <a href="">Great news !!!</a>
- <br>
- <p class="widget-box--additional-info">Added by
- <a title="User OpenProject Admin" href="">OpenProject Admin</a>
- <time title="08/14/2018 11:04 AM" class="timestamp">5 months</time> ago
- </p>
- </div>
- </li>
- </ul>
- </div>
-
- <!-- Widget box with button -->
- <div class="widget-box">
- <h3 class="widget-box--header">
- <div class="widget-box--header-title title-container">
- <h2 class="editable-toolbar-title--fixed">Widget Box 3</h2>
- </div>
- </h3>
- <div class="overview">
- <p>
- Lorem ipsum dolor sit amet, his ei propriae suscipit.
- Sit in atqui accumsan ponderum, eum ut luptatum lobortis, has ei tota illud detraxit.
- </p>
- </div>
- <div class="widget-box--buttons">
- <a class="button -primary" href="">
- <span class="spot-icon spot-icon_edit"></span>
- <span>Edit</span>
- </a>
- </div>
- </div>
-
- <!-- Widget box with enumeration and multiple buttons -->
- <div class="widget-box">
- <h3 class="widget-box--header">
- <div class="widget-box--header-title title-container">
- <h2 class="editable-toolbar-title--fixed">Widget Box 4</h2>
- </div>
- </h3>
- <ul class="widget-box--enumeration">
- <li>Enum1</li>
- <li>Enum2</li>
- <li>Enum3</li>
- </ul>
- <div class="widget-box--buttons">
- <a class="button -primary" title="Add" href="">
- <span class="spot-icon spot-icon_add"></span>
- <span>Add</span>
- </a>
- <a class="button -highlight-inverted" title="View all" href="">
- <span class="button--text">View all</span>
- </a>
- </div>
- </div>
-
-</section>