Skip to content

Commit e6fdb38

Browse files
authored
Merge pull request #227 from caktus/develop
Prepare production release v1.10.0
2 parents 78f7cf0 + a9bef73 commit e6fdb38

40 files changed

+2083
-237
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ RUN groupadd --gid $USER_GID $USERNAME \
113113
# openssh-client -- for git over SSH
114114
# sudo -- to run commands as superuser
115115
# vim -- enhanced vi editor for commits
116-
ENV KUBE_CLIENT_VERSION="v1.22.15"
117-
ENV HELM_VERSION="3.8.2"
116+
ENV KUBE_CLIENT_VERSION="v1.25.10"
117+
ENV HELM_VERSION="3.12.0"
118118
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
119119
--mount=type=cache,mode=0755,target=/root/.cache/pip \
120120
set -ex \
@@ -124,6 +124,7 @@ RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/
124124
docker-compose-plugin \
125125
git-core \
126126
gnupg2 \
127+
jq \
127128
libpcre3 \
128129
libpq-dev \
129130
mime-support \

deploy/group_vars/all.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ k8s_install_descheduler: yes
6464
# You must set the k8s_descheduler_chart_version to match the Kubernetes
6565
# node version (0.23.x -> K8s 1.23.x); see:
6666
# https://github.com/kubernetes-sigs/descheduler#compatibility-matrix
67-
k8s_descheduler_chart_version: v0.22.1
67+
k8s_descheduler_chart_version: v0.25.2
6868
# See values.yaml for options:
6969
# https://github.com/kubernetes-sigs/descheduler/blob/master/charts/descheduler/values.yaml#L63
7070
k8s_descheduler_release_values:
@@ -96,7 +96,7 @@ k8s_iam_users: [copelco]
9696
# https://github.com/kubernetes/ingress-nginx/releases
9797
k8s_ingress_nginx_chart_version: "4.4.2"
9898
# https://github.com/jetstack/cert-manager/releases
99-
k8s_cert_manager_chart_version: "v1.7.2"
99+
k8s_cert_manager_chart_version: "v1.11.1"
100100
# AWS only:
101101
# Use the newer load balancer type (NLB). DO NOT edit k8s_aws_load_balancer_type after
102102
# creating your Service.

deploy/requirements.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
- src: https://github.com/caktus/ansible-role-django-k8s
44
name: caktus.django-k8s
5-
version: v1.5.1
5+
version: v1.6.0
66

77
- src: https://github.com/caktus/ansible-role-aws-web-stacks
88
name: caktus.aws-web-stacks
99
version: ''
1010

1111
- src: https://github.com/caktus/ansible-role-k8s-web-cluster
1212
name: caktus.k8s-web-cluster
13-
version: v1.4.0
13+
version: v1.5.0
1414

1515
- src: https://github.com/caktus/ansible-role-k8s-hosting-services
1616
name: caktus.k8s-hosting-services
17-
version: v0.9.0
17+
version: v0.11.0

frontend/package-lock.json

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
"autosuggest-highlight": "^3.3.0",
1111
"axios": "^0.27.2",
1212
"babel-eslint": "^10.1.0",
13+
"chart.js": "^4.2.1",
1314
"date-fns": "^2.28.0",
1415
"framer-motion": "^4.1.17",
16+
"lodash.clonedeep": "^4.5.0",
1517
"lodash.range": "^3.2.0",
1618
"p-min-delay": "^4.0.1",
1719
"prop-types": "^15.8.1",
1820
"react": "^18.2.0",
21+
"react-chartjs-2": "^5.2.0",
1922
"react-content-loader": "^6.2.0",
2023
"react-csv": "^2.2.2",
2124
"react-datepicker": "^4.11.0",
@@ -25,6 +28,7 @@
2528
"react-popper": "^2.3.0",
2629
"react-router-dom": "^5.3.3",
2730
"react-scripts": "5.0.1",
31+
"react-switch": "^7.0.0",
2832
"react-table": "^7.8.0",
2933
"react-tooltip": "^4.2.21",
3034
"reaktus": "^0.1.20",

frontend/src/Components/App.js

+24
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,30 @@ import FindAStopResults from './FindAStopResults/FindAStopResults';
4141
import DepartmentSearch from './Elements/DepartmentSearch';
4242
import * as S from './HomePage/HomePage.styled';
4343

44+
// New Charts
45+
import {
46+
ArcElement,
47+
CategoryScale,
48+
Chart as ChartJS,
49+
Legend,
50+
LinearScale,
51+
LineElement,
52+
PointElement,
53+
Title,
54+
Tooltip,
55+
} from 'chart.js';
56+
57+
ChartJS.register(
58+
ArcElement,
59+
CategoryScale,
60+
LinearScale,
61+
PointElement,
62+
LineElement,
63+
Title,
64+
Tooltip,
65+
Legend
66+
);
67+
4468
function App() {
4569
const [showCompare, setShowCompare] = React.useState(false);
4670
const [agencyId, setAgencyId] = React.useState(null);

frontend/src/Components/Charts/ChartPrimitives/Line.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function Line({
2020
dAxisProps = {},
2121
iAxisProps = {},
2222
yAxisLabel,
23+
xAxisLabel = 'Year',
2324
}) {
2425
if (loading) return <ChartLoading skeleton={BarSkeleton} />;
2526

@@ -35,7 +36,7 @@ function Line({
3536
{...dAxisProps}
3637
/>
3738
<VictoryAxis
38-
label="Year"
39+
label={xAxisLabel}
3940
style={AXIS_STYLE}
4041
tickFormat={iTickFormat}
4142
tickValues={iTickValues}

frontend/src/Components/Charts/ChartSections/ChartsCommon.styled.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { smallerThanDesktop, smallerThanTabletLandscape } from '../../../styles/
33
import { H2 } from '../../../styles/StyledComponents/Typography';
44

55
export const ChartSection = styled.div`
6+
margin-top: ${(props) => (props.marginTop ? props.marginTop : '3')}em;
67
margin-bottom: 2em;
78
`;
89

@@ -63,8 +64,10 @@ export const Spacing = styled.div`
6364
export const PieSection = styled.div`
6465
display: flex;
6566
flex-direction: column;
66-
align-items: center;
67-
width: 33%;
67+
align-items: ${(props) => (props.alignItems ? props.alignItems : 'center')};
68+
width: ${(props) => (props.zoomed ? '90%' : '33%')};
69+
margin: 0 auto;
70+
height: auto;
6871
6972
@media (${smallerThanDesktop}) {
7073
flex-direction: row;
@@ -80,12 +83,20 @@ export const PieWrapper = styled.div`
8083
display: flex;
8184
flex-direction: row;
8285
align-items: center;
86+
justify-content: center;
87+
width: ${(props) => (props.zoomed ? '100%' : 'auto')};
88+
height: ${(props) => (props.zoomed ? '100%' : 'auto')};
8389
8490
@media (${smallerThanTabletLandscape}) {
8591
flex-direction: column;
8692
}
8793
`;
8894

95+
export const PieActionsWrapper = styled.div`
96+
display: flex;
97+
flex-direction: column;
98+
`;
99+
89100
export const SectionWrapper = styled.div`
90101
margin: 1em 0;
91102
`;

frontend/src/Components/Charts/ChartSections/Legend/Legend.styled.js

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export const KeyLabel = styled.p`
5151
`;
5252

5353
export const Addendum = styled.p`
54-
margin-top: 1em;
5554
font-style: italic;
5655
color: ${(props) => props.theme.colors.textLight};
5756
font-size: 16px;

frontend/src/Components/Charts/Searches/Searches.js

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import Legend from '../ChartSections/Legend/Legend';
3030
import ChartHeader from '../ChartSections/ChartHeader';
3131
import DataSubsetPicker from '../ChartSections/DataSubsetPicker/DataSubsetPicker';
3232
import useOfficerId from '../../../Hooks/useOfficerId';
33+
import displayDefinition from '../../../util/displayDefinition';
3334

3435
function Searches(props) {
3536
const { agencyId } = props;
@@ -230,6 +231,7 @@ function Searches(props) {
230231
onChange={handleStopPurposeSelect}
231232
options={[SEARCH_TYPE_DEFAULT].concat(SEARCH_TYPES)}
232233
/>
234+
<p style={{ marginTop: '10px' }}>{displayDefinition(searchType)}</p>
233235
<S.Spacing>
234236
<Legend
235237
heading="Show on graph:"

0 commit comments

Comments
 (0)