description.summary=(<span>saved a question about <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Database -> "+item.topic}className="link text-dark">{item.table.display_name}</Link></span>);
description.summary=(<span>{t`saved a question about`}<Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Database -> "+item.topic}className="link text-dark">{item.table.display_name}</Link></span>);
}else{
description.summary="saved a question";
description.summary=t`saved a question`;
}
break;
case"card-delete":
description.summary="deleted a question";
description.summary=t`deleted a question`;
break;
case"dashboard-create":
description.summary="created a dashboard";
description.summary=t`created a dashboard`;
break;
case"dashboard-delete":
description.summary="deleted a dashboard";
description.summary=t`deleted a dashboard`;
break;
case"dashboard-add-cards":
if(item.model_exists){
description.summary=(<span>added a question to the dashboard - <Linkto={Urls.dashboard(item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Dashboard -> "+item.topic}className="link text-dark">{item.details.name}</Link></span>);
description.summary=(<span>{t`added a question to the dashboard`} - <Linkto={Urls.dashboard(item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Dashboard -> "+item.topic}className="link text-dark">{item.details.name}</Link></span>);
}else{
description.summary=(<span>added a question to the dashboard - <spanclassName="text-dark">{item.details.name}</span></span>);
description.summary=(<span>{t`added a question to the dashboard`} - <spanclassName="text-dark">{item.details.name}</span></span>);
}
break;
case"dashboard-remove-cards":
if(item.model_exists){
description.summary=(<span>removed a question from the dashboard - <Linkto={Urls.dashboard(item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Dashboard -> "+item.topic}className="link text-dark">{item.details.name}</Link></span>);
description.summary=(<span>{t`removed a question from the dashboard`} - <Linkto={Urls.dashboard(item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Dashboard -> "+item.topic}className="link text-dark">{item.details.name}</Link></span>);
}else{
description.summary=(<span>removed a question from the dashboard - <spanclassName="text-dark">{item.details.name}</span></span>);
description.summary=(<span>{t`removed a question from the dashboard`} - <spanclassName="text-dark">{item.details.name}</span></span>);
}
break;
case"database-sync":
// NOTE: this is a relic from the very early days of the activity feed when we accidentally didn't
// capture the name/description/engine of a Database properly in the details and so it was
// possible for a database to be deleted and we'd lose any way of knowing what it's name was :(
description.summary=(<span>added the metric <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Metric -> "+item.topic}className="link text-dark">{item.details.name}</Link> to the <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link> table</span>);
description.summary=(<span>{t`added the metric`}<Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Metric -> "+item.topic}className="link text-dark">{item.details.name}</Link> to the <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link>{t`table`}</span>);
}else{
description.summary=(<span>added the metric <spanclassName="text-dark">{item.details.name}</span></span>);
description.summary=(<span>{t`added the metric`}<spanclassName="text-dark">{item.details.name}</span></span>);
}
break;
case"metric-update":
if(item.model_exists){
description.summary=(<span>made changes to the metric <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Metric -> "+item.topic}className="link text-dark">{item.details.name}</Link> in the <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link> table</span>);
description.summary=(<span>{t`made changes to the metric`}<Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Metric -> "+item.topic}className="link text-dark">{item.details.name}</Link> in the <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link>{t`table`}</span>);
}else{
description.summary=(<span>made changes to the metric <spanclassName="text-dark">{item.details.name}</span></span>);
description.summary=(<span>{t`made changes to the metric`}<spanclassName="text-dark">{item.details.name}</span></span>);
}
break;
case"metric-delete":
description.summary="removed the metric "+item.details.name;
description.summary=t`removed the metric `+item.details.name;
break;
case"pulse-create":
description.summary="created a pulse";
description.summary=t`created a pulse`;
break;
case"pulse-delete":
description.summary="deleted a pulse";
description.summary=t`deleted a pulse`;
break;
case"segment-create":
if(item.model_exists){
description.summary=(
<span>
added the filter <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,null,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Segment -> "+item.topic}className="link text-dark">{item.details.name}</Link> to the <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link> table
description.summary=(<span>added the filter <spanclassName="text-dark">{item.details.name}</span></span>);
description.summary=(<span>{t`added the filter`}<spanclassName="text-dark">{item.details.name}</span></span>);
}
break;
case"segment-update":
if(item.model_exists){
description.summary=(<span>made changes to the filter <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,null,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Segment -> "+item.topic}className="link text-dark">{item.details.name}</Link> in the <Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link> table</span>);
description.summary=(<span>{t`made changes to the filter`}<Linkto={Urls.tableRowsQuery(item.database_id,item.table_id,null,item.model_id)}data-metabase-event={"Activity Feed;Header Clicked;Segment -> "+item.topic}className="link text-dark">{item.details.name}</Link>{t`in the`}<Linkto={Urls.tableRowsQuery(item.database_id,item.table_id)}data-metabase-event={"Activity Feed;Header Clicked;Table -> "+item.topic}className="link text-dark">{item.table.display_name}</Link>{t`table`}</span>);
}else{
description.summary=(<span>made changes to the filter <spanclassName="text-dark">{item.details.name}</span></span>);
description.summary=(<span>{t`made changes to the filter`}<spanclassName="text-dark">{item.details.name}</span></span>);
}
break;
case"segment-delete":
description.summary=t`removed the filter {item.details.name}`;
description.summary=t`removed the filter ${item.details.name}`;