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

Show basic Board for community edition in onboarding tour

Henriette Darged3d4e6c861aa
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 854cd63a0bf..e0ee4a3050f 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -545,7 +545,8 @@ en:
task_board: "The task board visualizes the <b>progress for this sprint</b>. Click on the plus (+) icon next to a user story to add new tasks or impediments. <br> The status can be updated by drag and drop."
boards:
overview: 'Select <b>boards</b> to shift the view and manage your project using the agile boards view.'
- lists: 'Here you can create multiple lists (columns) within your board. This feature allows you to create a <b>Kanban board</b>, for example.'
+ lists_kanban: 'Here you can create multiple lists (columns) within your board. This feature allows you to create a <b>Kanban board</b>, for example.'
+ lists_basic: 'Here you can create multiple lists (columns) within your agile board.'
add: 'Click on the plus (+) icon to <b>create a new card</b> or <b>add an existing card</b> to the list on the board.'
drag: 'Drag and drop your cards within a given list to reorder them, or to move them to another list. <br> You can click the info (i) icon in the upper right-hand corner or double-click a card to open its details.'
wp:
diff --git a/frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts
index 5e7b4e12ef4..24420c236bb 100644
--- a/frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts
@@ -88,13 +88,15 @@ function mainTour() {
// ... and available seed data of boards.
// Then add boards to the tour, otherwise skip it.
if (boardsDemoDataAvailable && moduleVisible('board')) {
- steps = steps.concat(boardTourSteps());
+ steps = steps.concat(boardTourSteps('enterprise'));
}
// ... same for team planners
if (teamPlannerDemoDataAvailable && moduleVisible('team-planner')) {
steps = steps.concat(teamPlannerTourSteps());
}
+ } else if (boardsDemoDataAvailable && moduleVisible('board')) {
+ steps = steps.concat(boardTourSteps('basic'));
}
steps = steps.concat(menuTourSteps());
diff --git a/frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts b/frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts
index dcda279a528..36e7e4757f1 100644
--- a/frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts
@@ -1,7 +1,10 @@
import { waitForElement } from 'core-app/core/setup/globals/onboarding/helpers';
import { OnboardingStep } from 'core-app/core/setup/globals/onboarding/onboarding_tour';
-export function boardTourSteps():OnboardingStep[] {
+export function boardTourSteps(edition:'basic'|'enterprise'):OnboardingStep[] {
+ const boardName = edition === 'basic' ? 'Basic board' : 'Kanban';
+ const listExplanation = edition === 'basic' ? 'basic' : 'kanban';
+
return [
{
'next .board-view-menu-item': I18n.t('js.onboarding.steps.boards.overview'),
@@ -10,12 +13,12 @@ export function boardTourSteps():OnboardingStep[] {
onNext() {
jQuery('.board-view-menu-item ~ .toggler')[0].click();
waitForElement('.op-sidemenu--items', '#main-menu', () => {
- jQuery(".op-sidemenu--item-action:contains('Kanban')")[0].click();
+ jQuery(`.op-sidemenu--item-action:contains(${boardName})`)[0].click();
});
},
},
{
- 'next [data-qa-selector="op-board-list"]': I18n.t('js.onboarding.steps.boards.lists'),
+ 'next [data-qa-selector="op-board-list"]': I18n.t(`js.onboarding.steps.boards.lists_${listExplanation}`),
showSkip: false,
nextButton: { text: I18n.t('js.onboarding.buttons.next') },
containerClass: '-dark -hidden-arrow',
diff --git a/modules/boards/spec/features/support/onboarding_steps.rb b/modules/boards/spec/features/support/onboarding_steps.rb
index f2440fe40d9..50d9ce9c018 100644
--- a/modules/boards/spec/features/support/onboarding_steps.rb
+++ b/modules/boards/spec/features/support/onboarding_steps.rb
@@ -33,7 +33,7 @@ module OnboardingSteps
next_button.click
expect(page)
- .to have_text sanitize_string(I18n.t('js.onboarding.steps.boards.lists')), normalize_ws: true
+ .to have_text sanitize_string(I18n.t('js.onboarding.steps.boards.lists_kanban')), normalize_ws: true
next_button.click
expect(page).to have_text sanitize_string(I18n.t('js.onboarding.steps.boards.add')), normalize_ws: true