Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old checklists and related code. #1499

Merged
merged 4 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions webapp/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"+/x2FM": "Select a playbook",
"+6DCr9": "As a participant, you can post status updates, assign and complete tasks, and perform retrospectives.",
"+8G9qr": "Default text for the retrospective.",
"+PMJAg": "Begin following for {followers, plural, =1 {one user} other {# users}}",
"+QgvjN": "Assign the owner role to",
"+Tmpup": "You automatically receive updates when this playbook is run.",
"+hddg7": "Add to run timeline",
"+qDKgW": "View all updates",
Expand All @@ -13,8 +11,6 @@
"/MaJux": "Start retrospective",
"/RnCQb": "Send outgoing webhook",
"/YZ/sw": "Start trial",
"/ZsEUy": "Are you sure you want to delete this checklist? It will be removed from this run but will not affect the playbook.",
"/fU9y/": "You can check out different sections of the playbook in detail on this page.",
"/gbqA6": "{duration} before run started",
"/jUtaM": "ACTIVE RUNS per day over the last 14 days",
"/qDObA": "Browse Runs",
Expand Down Expand Up @@ -61,7 +57,6 @@
"4ltHYh": "Go to playbook",
"4mCpAv": "It was not possible to change the owner",
"4vuNrq": "{duration} after run started",
"5A46pW": "Add a slash command",
"5AJmOz": "When a user joins the channel",
"5BUxvl": "Everyone in this team can view this playbook.",
"5CI3KH": "Contact support",
Expand All @@ -75,10 +70,8 @@
"69nlA3": "Please enter a duration in the format: dd:hh:mm (e.g., 12:00:00).",
"6CGo3o": "Status / Last update",
"6D6ffM": "Please enter a duration in the format: dd:hh:mm (e.g., 12:00:00), or leave the target blank.",
"6GTzTR": "See what’s in this playbook at any time",
"6uhSSw": "Select a channel",
"7P5T3W": "Restore checklist",
"8hDbW6": "Send an outgoing webhook",
"8n24G2": "View run details in a side panel",
"9+Ddtu": "Next",
"91Hr5f": "Drag me to reorder",
Expand Down Expand Up @@ -116,15 +109,13 @@
"CSts8B": "Team Icon",
"CUhlqp": "tutorial tour tip product image",
"CV1ddt": "Participate in the run",
"CjNrqO": "Retrospective report template",
"CkYhdY": "Add the channel to a sidebar category",
"CwwzAU": "Add checklist name",
"Cy1AK/": "View run details",
"CyGaem": "Run name",
"D2CE02": "Enter webhook",
"D55vrs": "Your license could not be generated",
"DCl7Vv": "inline code",
"DPj6DM": "Select <strong>Run</strong> to see it in action.",
"DSVJjB": "Currently running the <strong>{playbookTitle}</strong> playbook",
"DXACD6": "Publish retrospective report and access the timeline",
"DaHpK1": "Search for a channel",
Expand Down Expand Up @@ -155,7 +146,6 @@
"HXvk56": "Post status updates",
"HhLp57": "quote",
"HvAcYh": "{text}{rest, plural, =0 {} one { and other} other { and {rest} others}}",
"Hzwzgs": "Broadcast updates in the {oneChannel, plural, one {channel} other {channels}}",
"I2zEie": "Celebrate success and learn from mistakes with retrospective reports. Filter timeline events for process review, stakeholder engagement, and auditing purposes.",
"I5NMJ8": "More",
"I7+d55": "Specify date/time (“in 4 hours”, “May 1”...)",
Expand All @@ -170,17 +160,13 @@
"JeqL8w": "Retrospective canceled by {name}",
"JqKASQ": "Add @{displayName} to Channel",
"JrZ2th": "Add Metric",
"K3r6DQ": "Delete",
"KUr+sG": "Update run summary",
"KXVV4+": "Welcome to the playbook preview page!",
"KeO51o": "Channel",
"KiXNvz": "Run",
"KjNfA8": "Invalid time duration",
"KzHQCQ": "There are no finished runs matching those filters.",
"L6k6aT": "…or start with a template",
"LDYFkN": "Duration (in dd:hh:mm)",
"LI7YlB": "Add details on what this metric is about and how it should be filled in. This description will be available on the retrospective page for each run where values for these metrics will be input.",
"LRFvqz": "Announce in the {oneChannel, plural, one {channel} other {channels}}",
"LcC/pi": "Send a welcome message…",
"LfhTNW": "Browse or create Playbooks and Runs",
"Lg3I1b": "@{targetUsername}, please provide a status update.",
Expand All @@ -201,15 +187,13 @@
"MyIJbr": "Contents",
"N1U/QR": "Task state changes",
"N2IrpM": "Confirm",
"NA7Cw1": "Copy link to playbook",
"NFyWnZ": "Work more effectively",
"NJ9uPu": "Key metrics",
"NLeFGn": "to",
"NMxVd+": "Please fill in the metric value.",
"NYTGIb": "Got it",
"Nh91Us": "{from, number}–{to, number} of {total, number} total",
"NiAH1z": "Target value",
"OINwWS": "Create a {isPublic, select, true {public} other {private}} channel",
"OK8u0r": "Create a playbook to prescribe the workflow that your teams and tools should follow, including everything from checklists, actions, templates, and retrospectives.",
"OQplDX": "A status update is expected every <duration></duration>. New updates will be posted to <channels>{channelCount, plural, =0 {no channels} one {# channel} other {# channels}}</channels> and <webhooks>{webhookCount, plural, =0 {no outgoing webhooks} one {# outgoing webhook} other {# outgoing webhooks}}</webhooks>.",
"Ob5cSv": "Changes that you made will not be saved if you leave this page. Are you sure you want to discard changes and leave?",
Expand Down Expand Up @@ -239,7 +223,6 @@
"QbGfqo": "Broadcast to stakeholders in multiple places and keep a paper trail for retrospective with just one post.",
"QegBKq": "Join playbook",
"QiKcO7": "Enter retrospective template",
"QnZAit": "Add optional description",
"QpUBDr": "{members, plural, =0 {No one} =1 {One person} other {# people}} can access this playbook.",
"Qrl6bQ": "Streamline your processes with playbooks",
"QywYDe": "Also mark the run as finished",
Expand All @@ -248,7 +231,6 @@
"RCT0Px": "Add {displayName} to Channel",
"RO+BaS": "Copy link to run",
"RQl8IW": "Snooze for…",
"RUlvbf": "Test your new playbook out!",
"RnOiCg": "It was not possible to {isFollowing, select, true {unfollow} other {follow}} the run",
"RoGxij": "Runs active on {date}",
"RrCui3": "Summary",
Expand Down Expand Up @@ -293,7 +275,6 @@
"WIxhrv": "Run name must have at least two characters",
"WTQpnI": "Take action now using playbooks",
"X/koAN": "Invalid entry: the maximum number of webhooks allowed is 64",
"X2K92H": "Checklist name",
"XF8rrh": "Copy link to ''{name}''",
"XRyRzf": "Status updates are not expected.",
"XS4umx": "{name} snoozed a status update",
Expand All @@ -303,12 +284,10 @@
"XnICdK": "It wasn't possible to join the run",
"XpDetT": "Opt out of these tips.",
"Xx0WZV": "Send message",
"Y4MU/9": "Select <strong>Start a test run</strong> to see it in action.",
"YDuW/T": "{num_runs, plural, =0 {Not run yet} one {# run} other {# total runs}}",
"YKn+7s": "This channel is not running any playbook.",
"YORRGQ": "Post update",
"YQOmSf": "Enter one webhook per line",
"Z/hwEf": "The channel will be reminded to perform the retrospective {reminderEnabled, select, true {every} other {}}",
"Z2Hfu4": "Add a run summary",
"Z3ybv/": "Add the channel to a sidebar category for the user",
"Z7vWDQ": "There was an error",
Expand All @@ -330,9 +309,7 @@
"b+DwLA": "Request to participate in this run.",
"b/QBNs": "Update due",
"b3TdyZ": "By clicking <b>Start trial</b>, I agree to the <AgreementLink>Mattermost Software Evaluation Agreement</AgreementLink>, <PrivacyLink>Privacy Policy</PrivacyLink>, and receiving product emails.",
"b5FaCc": "Add the channel to the sidebar category",
"bE1Cro": "My runs only",
"bGhCLX": "When an update is posted",
"bLK+Kr": "Reminds the channel at a specified interval to fill out the retrospective.",
"bPLen5": "Runs finished in the last 30 days",
"bTgMQ2": "This playbook is archived.",
Expand All @@ -348,10 +325,8 @@
"d4g2r8": "Deleted: {timestamp}",
"d8KvXJ": "Your trial license expires on {expiryDate}. You can purchase a license at any time through the <PortalLink>Customer Portal</PortalLink> to avoid any disruption.",
"d9epHh": "Export channel log",
"dCtjdj": "Ready to run your playbook?",
"dSC1YD": "Skip task",
"dZmYk6": "Successfully duplicated playbook",
"djALPR": "{activeRuns, number} {activeRuns, plural, one {run} other {runs}} in progress",
"dvhvum": "(Optional) Describe how this playbook should be used",
"dxyZg3": "Let me explore for myself",
"e/AZL5": "Your 30-day trial has started",
Expand All @@ -378,7 +353,6 @@
"gt6BhE": "Run details",
"guunZt": "Assign",
"gy/Kkr": "(edited)",
"hO9EdA": "Invite {numInvitedUsers, plural, =0 {no members} =1 {one member} other {# members}} to the channel",
"hVFgh4": "Include finished",
"hXIYHG": "Install and enable the Channel Export plugin to support exporting the channel",
"hfrrC7": "Team Initials",
Expand All @@ -401,13 +375,10 @@
"j940pJ": "This update will be saved to <OverviewLink>overview page</OverviewLink>.",
"jIIWN+": "preformatted",
"jIgqRa": "Owner / Participants",
"jS/UOn": "Update template",
"jnmORb": "In this playbook",
"jvo0vs": "Save",
"jwimQJ": "Ok",
"k1djnL": "Delete checklist",
"k5EChD": "Are you sure you want to restart the run?",
"kDcpd/": "{numKeywords, plural, other {# keywords}}",
"kEMvwX": "There are no runs matching those filters.",
"kV5GkX": "When a status update is posted",
"kXFojL": "You can also create a playbook ahead of time so it’s available when you need it.",
Expand All @@ -429,7 +400,6 @@
"lkv547": "Due date (Available in the Professional plan)",
"lr1CUA": "Browse Playbooks",
"lrbrjv": "Yes, start retrospective",
"lxfpbh": "The owner will {reminderEnabled, select, true {be prompted to provide a status update every} other {not be prompted to provide a status update}}",
"lyXljU": "Duplicate task",
"m/KtHt": "You have no permissions to change the owner",
"m/Q4ye": "Rename checklist",
Expand All @@ -439,7 +409,6 @@
"mVpO8u": "Seen this before?",
"mkLeuq": "Broadcast update to selected channels",
"mm5vL8": "Only invited members",
"mvZUm3": "This is where you can explore your playbook components in detail. Select Edit to customize your playbook to fit your processes and models.",
"mw9jVA": "Add a title",
"nc8QpJ": "Recent Activity",
"nkCCM2": "You will not be reminded again.",
Expand All @@ -461,7 +430,6 @@
"pKLw8O": "Are you sure you want to delete this event? Deleted events will be permanently removed from the timeline.",
"pzTOmv": "Followers",
"q/Qo8l": "Private playbooks are only available in Mattermost Enterprise",
"q0cpUe": "Add checklist",
"q6f8x9": "Change since last update",
"qGlwfc": "Start run",
"qyJtWy": "Show less",
Expand Down Expand Up @@ -518,7 +486,6 @@
"waVyVY": "Participants currently active",
"wbdGb5": "Assign, check off, or skip tasks to ensure the team is clear on how to move toward the finish line together.",
"wbsq7O": "Usage",
"wbwhbH": "Task name",
"wcWpGs": "Invalid webhook URLs",
"wylJpv": "Everyone in {team} can view this playbook.",
"x1phlu": "No time frame",
Expand Down
5 changes: 0 additions & 5 deletions webapp/src/components/backstage/main_body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';

import PlaybookRun from 'src/components/backstage/playbook_runs/playbook_run/playbook_run';

import Playbook from 'src/components/backstage/playbooks/playbook';

import PlaybookList from 'src/components/backstage/playbook_list';
import PlaybookEditor from 'src/components/backstage/playbook_editor/playbook_editor';
import {ErrorPageTypes} from 'src/constants';
Expand Down Expand Up @@ -84,9 +82,6 @@ const MainBody = () => {

return (
<Switch>
<Route path={`${match.url}/playbooks/:playbookId/preview`}>
<Playbook/>
</Route>
<Route
path={`${match.url}/playbooks/:playbookId`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import styled from 'styled-components';
import {Duration} from 'luxon';
import {FormattedNumber, useIntl} from 'react-intl';

import BarGraph from 'src/components/backstage/bar_graph';

import {Metric, MetricType} from 'src/types/playbook';
import {HorizontalSpacer} from 'src/components/backstage/styles';
import {NullNumber, PlaybookStats} from 'src/types/stats';
import {formatDuration} from 'src/components/formatted_duration';
import BarGraph from 'src/components/backstage/playbooks/bar_graph';

interface Props {
playbookMetrics: Metric[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import styled from 'styled-components';

import {FormattedMessage} from 'react-intl';

import {MetricsInfo} from 'src/components/backstage/metrics/metrics_run_list';

import {PlaybookRun} from 'src/types/playbook_run';
import {formatDuration} from 'src/components/formatted_duration';
import {navigateToPluginUrl} from 'src/browser_routing';
import {MetricType} from 'src/types/playbook';
import {MetricsInfo} from 'src/components/backstage/playbooks/metrics/metrics_run_list';

interface Props {
metricsInfo: MetricsInfo[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import {FetchPlaybookRunsParams, PlaybookRun} from 'src/types/playbook_run';
import Spinner from 'src/components/assets/icons/spinner';
import Filters from 'src/components/backstage/runs_list/filters';
import {Metric, MetricType} from 'src/types/playbook';
import MetricsRow from 'src/components/backstage/playbooks/metrics/metrics_row';
import MetricsRunListHeader from 'src/components/backstage/playbooks/metrics/metrics_run_list_header';

import MetricsRunListHeader from './metrics_run_list_header';
import MetricsRow from './metrics_row';

export interface MetricsInfo {
type: MetricType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import React from 'react';
import styled from 'styled-components';
import {useIntl} from 'react-intl';

import {MetricsInfo} from 'src/components/backstage/metrics/metrics_run_list';

import {SortableColHeader} from 'src/components/sortable_col_header';
import {MetricType} from 'src/types/playbook';
import {MetricsInfo} from 'src/components/backstage/playbooks/metrics/metrics_run_list';
import {FetchPlaybookRunsParams} from 'src/types/playbook_run';

interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import React from 'react';
import styled from 'styled-components';

import MetricsCard from 'src/components/backstage/playbooks/metrics/metrics_card';
import {PlaybookStats} from 'src/types/stats';
import {Metric, MetricType} from 'src/types/playbook';
import {ClockOutline, DollarSign, PoundSign} from 'src/components/backstage/playbook_edit/styles';

import MetricsCard from './metrics_card';

interface Props {
playbookMetrics: Metric[];
stats: PlaybookStats;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ import styled from 'styled-components';

import {PlaybookStats} from 'src/types/stats';
import {useAllowPlaybookAndRunMetrics, useRunsList} from 'src/hooks';
import UpgradeKeyMetricsPlaceholder from 'src/components/backstage/playbooks/metrics/upgrade_key_metrics_placeholder';
import MetricsStatsView from 'src/components/backstage/playbooks/metrics/metrics_stats_view';

import {BACKSTAGE_LIST_PER_PAGE} from 'src/constants';
import {PlaybookRunStatus} from 'src/types/playbook_run';
import MetricsRunList from 'src/components/backstage/playbooks/metrics/metrics_run_list';
import NoMetricsPlaceholder from 'src/components/backstage/playbooks/metrics/no_metrics_placeholder';

import {Metric} from 'src/types/playbook';
import {usePlaybookViewTelemetry} from 'src/hooks/telemetry';
import {PlaybookViewTarget} from 'src/types/telemetry';

import NoMetricsPlaceholder from './no_metrics_placeholder';
import MetricsRunList from './metrics_run_list';
import MetricsStatsView from './metrics_stats_view';
import UpgradeKeyMetricsPlaceholder from './upgrade_key_metrics_placeholder';

const defaultPlaybookFetchParams = {
page: 0,
per_page: BACKSTAGE_LIST_PER_PAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {FormattedMessage, useIntl} from 'react-intl';

import {useAllowRetrospectiveAccess} from 'src/hooks';

import {Card} from 'src/components/backstage/playbooks/playbook_preview_cards';
import {Card} from 'src/components/backstage/playbook_preview_cards';
import {FullPlaybook, Loaded, useUpdatePlaybook} from 'src/graphql/hooks';

import {Metric, PlaybookWithChecklist} from 'src/types/playbook';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import {
import {telemetryEventForPlaybook} from 'src/client';
import {ErrorPageTypes} from 'src/constants';

import PlaybookUsage from 'src/components/backstage/playbooks/playbook_usage';
import PlaybookKeyMetrics from 'src/components/backstage/playbooks/metrics/playbook_key_metrics';
import PlaybookUsage from 'src/components/backstage/playbook_usage';
import PlaybookKeyMetrics from 'src/components/backstage/metrics/playbook_key_metrics';

import {SemiBoldHeading} from 'src/styles/headings';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
import styled from 'styled-components';
import React, {useEffect, useState, ReactNode, HTMLAttributes} from 'react';

import StatsView from 'src/components/backstage/stats_view';

import {BACKSTAGE_LIST_PER_PAGE} from 'src/constants';
import {PlaybookStats} from 'src/types/stats';
import StatsView from 'src/components/backstage/playbooks/stats_view';
import {useRunsList} from 'src/hooks';
import RunList from '../runs_list/runs_list';

import {PlaybookRunStatus} from 'src/types/playbook_run';
import {usePlaybookViewTelemetry} from 'src/hooks/telemetry';
import {PlaybookViewTarget} from 'src/types/telemetry';

import RunList from './runs_list/runs_list';

const defaultPlaybookFetchParams = {
page: 0,
per_page: BACKSTAGE_LIST_PER_PAGE,
Expand Down
Loading