Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions assets/css/sidebar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
color: black;
background-color: #7fee91;
}
&:global(.dev-blue) {
color: black;
background-color: #36acd3;
}
}

.environmentName {
Expand Down
8 changes: 7 additions & 1 deletion assets/js/components/Dashboard/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ const Sidebar = () => {
style={{ width: 32 }}
/>
<span className={sidebarStyles.environmentName}>
{{ dev: "Dev", "dev-green": "Dev-Green" }[environment]}
{
{
dev: "Dev",
"dev-green": "Dev-Green",
"dev-blue": "Dev-Blue",
}[environment]
}
</span>
</a>
<SidebarLink to="/dashboard" icon={GeoAlt} activeIcon={GeoAltFill}>
Expand Down
5 changes: 2 additions & 3 deletions scripts/pull_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if [ $# -eq 0 ]; then
fi

case $1 in
prod | dev | dev-green) true;;
prod | dev | dev-green | dev-blue) true;;
* )
echo "Environment should be: prod | dev | dev-green" >&2
echo "Environment should be: prod | dev | dev-green | dev-blue" >&2
exit 2
;;
esac
Expand All @@ -31,6 +31,5 @@ maybe_cp() {
fi
}

maybe_cp s3://mbta-ctd-config/screenplay/"$1".json priv/local/alerts.json
maybe_cp s3://mbta-ctd-config/screenplay/"$1"/paess_labels.json priv/local/paess_labels.json
maybe_cp s3://mbta-ctd-config/screenplay/"$1"/place_descriptions.json priv/local/place_descriptions.json
Loading