fix(webapp): update template selector text (#3468)

* fix(webapp): update template selector text

* chore: appease the linter by removing unused vars
This commit is contained in:
Paul Esch-Laurent 2022-07-28 16:47:54 -05:00 committed by GitHub
parent f241fc19da
commit c4a90169aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 22 deletions

View file

@ -19,10 +19,10 @@
"BoardTemplateSelector.add-template": "New template",
"BoardTemplateSelector.create-empty-board": "Create empty board",
"BoardTemplateSelector.delete-template": "Delete",
"BoardTemplateSelector.description": "Choose a template to help you get started. Easily customize the template to fit your needs, or create an empty board to start from scratch.",
"BoardTemplateSelector.description": "Add a board to the sidebar using any of the templates defined below or start from scratch.",
"BoardTemplateSelector.edit-template": "Edit",
"BoardTemplateSelector.plugin.no-content-description": "Add a board to the sidebar using any of the templates defined below or start from scratch.{lineBreak} Members of \"{teamName}\" will have access to boards created here.",
"BoardTemplateSelector.plugin.no-content-title": "Create a Board in {teamName}",
"BoardTemplateSelector.plugin.no-content-description": "Add a board to the sidebar using any of the templates defined below or start from scratch.",
"BoardTemplateSelector.plugin.no-content-title": "Create a board",
"BoardTemplateSelector.title": "Create a board",
"BoardTemplateSelector.use-this-template": "Use this template",
"BoardsSwitcher.Title": "Find Boards",
@ -344,6 +344,10 @@
"register.login-button": "or log in if you already have an account",
"register.signup-title": "Sign up for your account",
"rhs-boards.add": "Add",
"rhs-boards.dm": "DM",
"rhs-boards.gm": "GM",
"rhs-boards.header.dm": "this Direct Message",
"rhs-boards.header.gm": "this Group Message",
"rhs-boards.last-update-at": "Last update at: {datetime}",
"rhs-boards.link-boards-to-channel": "Link boards to {channelName}",
"rhs-boards.linked-boards": "Linked boards",
@ -351,19 +355,15 @@
"rhs-boards.no-boards-linked-to-channel-description": "Boards is a project management tool that helps define, organize, track and manage work across teams, using a familiar kanban board view.",
"rhs-boards.unlink-board": "Unlink board",
"rhs-channel-boards-header.title": "Boards",
"rhs-boards.dm": "DM",
"rhs-boards.header.dm": "this Direct Message",
"rhs-boards.gm": "GM",
"rhs-boards.header.gm": "this Group Message",
"share-board.publish": "Publish",
"share-board.share": "Share",
"shareBoard.channels-select-group": "Channels",
"shareBoard.confirm-link-public-channel": "You're adding a public channel",
"shareBoard.confirm-link-public-channel-button": "Yes, add public channel",
"shareBoard.confirm-link-public-channel-subtext": "Anyone who joins that public channel will now get “Editor” access to the board, are you sure you want to proceed?",
"shareBoard.confirm-unlink.title": "Unlink channel from board",
"shareBoard.confirm-unlink.body": "When you unlink a channel from a board, all members of the channel (existing and new) will loose access to it unless they are given permission separately. {lineBreak} Are you sure you want to unlink it?",
"shareBoard.confirm-unlink.confirmBtnText": "Yes, unlink",
"shareBoard.confirm-unlink.title": "Unlink channel from board",
"shareBoard.lastAdmin": "Boards must have at least one Administrator",
"shareBoard.members-select-group": "Members",
"tutorial_tip.finish_tour": "Done",
@ -371,4 +371,4 @@
"tutorial_tip.ok": "Next",
"tutorial_tip.out": "Opt out of these tips.",
"tutorial_tip.seen": "Seen this before?"
}
}

View file

@ -29,7 +29,7 @@ exports[`components/boardTemplateSelector/boardTemplateSelector a focalboard Plu
<p
class="description"
>
Choose a template to help you get started. Easily customize the template to fit your needs, or create an empty board to start from scratch.
Add a board to the sidebar using any of the templates defined below or start from scratch.
</p>
</div>
<div
@ -307,7 +307,7 @@ exports[`components/boardTemplateSelector/boardTemplateSelector a focalboard Plu
<p
class="description"
>
Choose a template to help you get started. Easily customize the template to fit your needs, or create an empty board to start from scratch.
Add a board to the sidebar using any of the templates defined below or start from scratch.
</p>
</div>
<div
@ -456,7 +456,7 @@ exports[`components/boardTemplateSelector/boardTemplateSelector not a focalboard
<p
class="description"
>
Choose a template to help you get started. Easily customize the template to fit your needs, or create an empty board to start from scratch.
Add a board to the sidebar using any of the templates defined below or start from scratch.
</p>
</div>
<div

View file

@ -147,7 +147,7 @@ const BoardTemplateSelector = (props: Props) => {
{description || (
<FormattedMessage
id='BoardTemplateSelector.description'
defaultMessage='Choose a template to help you get started. Easily customize the template to fit your needs, or create an empty board to start from scratch.'
defaultMessage='Add a board to the sidebar using any of the templates defined below or start from scratch.'
/>
)}
</p>

View file

@ -4,7 +4,6 @@ import React, {useCallback, useEffect, useState} from 'react'
import {generatePath, useRouteMatch, useHistory} from 'react-router-dom'
import {FormattedMessage} from 'react-intl'
import {getCurrentTeam} from '../store/teams'
import {getCurrentBoard, isLoadingBoard, getTemplates} from '../store/boards'
import {refreshCards, getCardLimitTimestamp, getCurrentBoardHiddenCardsCount, setLimitTimestamp, getCurrentViewCardsSortedFilteredAndGrouped, setCurrent as setCurrentCard} from '../store/cards'
import {
@ -33,7 +32,6 @@ type Props = {
}
function CenterContent(props: Props) {
const team = useAppSelector(getCurrentTeam)
const isLoading = useAppSelector(isLoadingBoard)
const match = useRouteMatch<{boardId: string, viewId: string, cardId?: string, channelId?: string}>()
const board = useAppSelector(getCurrentBoard)
@ -115,18 +113,13 @@ function CenterContent(props: Props) {
title={
<FormattedMessage
id='BoardTemplateSelector.plugin.no-content-title'
defaultMessage='Create a Board in {teamName}'
values={{teamName: team?.title}}
defaultMessage='Create a board'
/>
}
description={
<FormattedMessage
id='BoardTemplateSelector.plugin.no-content-description'
defaultMessage='Add a board to the sidebar using any of the templates defined below or start from scratch.{lineBreak} Members of "{teamName}" will have access to boards created here.'
values={{
teamName: <b>{team?.title}</b>,
lineBreak: <br/>,
}}
defaultMessage='Add a board to the sidebar using any of the templates defined below or start from scratch.'
/>
}
channelId={match.params.channelId}