Skip to content

Commit ec2122d

Browse files
authored
Release/3.14.0 (#140)
* refactoring workflow list screen * fixing spinner * removing settings cog and workflows from breadcrumb * eslint and small refactor for criteria * fixing tests * 3.14.0-beta.0 * Adding history archival and visibility archival to domain settings sc… (#113) * Adding history archival and visibility archival to domain settings screen. adding unit tests * fixing integration tests * lint fixes * PR comments * Feature/archival disabled (#115) * Adding history archival and visibility archival to domain settings screen. adding unit tests * fixing integration tests * lint fixes * starting work on archival screen * starting work on archival screen. Got async working in a vue component. * adding helpers to extract enabled flags * disabled messaging working * adding unit tests * adding more unit tests * splitting disabled messaging into new component. adding more unit tests. fixing webpack to point to new babel config file. * 3.14.0-beta.1 * fixing lint * Feature/archives disabled link (#116) * Adding history archival and visibility archival to domain settings screen. adding unit tests * adding link for copy * 3.14.0-beta.2 * adding support for multiple links * 3.14.0-beta.3 * fixing styling * 3.14.0-beta.4 * Feature/update idl (#120) * updating idl to latest * updating to latest idl. Fixing napa install to clear directory before copying * fixing tests * button-fill (#121) * button-fill * end file return * error-message (#122) * error-message * end file return * grid (#123) * grid * renaming component to flex grid * renaming flex grid column to flex grid item * loading spinner (#125) * no results (#126) * renaming archives to archival. breaking out helpers into separate files * removing unused file * more replacing archives * deleting unused file * text input (#127) * split out functions into reusable helpers (#128) * Feature/rename archives archival (#129) * renaming archives to archival. breaking out helpers into separate files * removing unused file * more replacing archives * deleting unused file * archival endpoint (#130) * archival endpoint * PR comments * Feature/archival service (#134) * archival service * PR comments * adding unit tests for workflow archival service * components and style updates to use in workflow archival screen. (#132) * components and style updates to use in workflow archival screen. * final style changes to help with scrolling table * helpers used on archival screen (#133) * Feature/archival screen (#135) * Adding history archival and visibility archival to domain settings screen. adding unit tests * renaming archives to archival for consistancy * 3.14.0-beta.5 * missed some references for rename * 3.14.0-beta.6 * adding basic screen and starting work on it. * got basic screen working with mocked data. need to hook up API. * making table into component to be reused on advanced screen. * moving search bar to grid. refactoring reusable helpers. removing advanced view for now. adding in date picker to archival screen. adding status. * fixing helpers. finished UI for archival view * formatting start time and end time * styling and fixing up potential errors * adding more protections * adding nextPageToken to query. fixing bug with next page token on workflow list screen. * moving hardcoded code into service. working on getting pagination working. * creating loading spinner component to help with loading paging. * got scrolling on table mostly working. got sticky headers working. * fixing spinner scroll bar issue. * got pagination working * hooking up archival API * adding error handling * adding advanced button to toggle between basic and advanced archival views. creating button component. * completed advanced archival screen. * removing consoles * lint fixes * splitting out basic vue functions into helpers * moving helpers into separate files * splitting out helper tests * updating spec to contain describe * using getErrorMessage common helper * adding tests for global helpers. * adding unit tests for get query params. renaming statusName to statusValue. * adding tests for get range. * getStatusValue tests * adding tests for getStatus * adding test for map response * adding tests for update query from range * lint fixes * updating idl to latest * updating to latest idl. Fixing napa install to clear directory before copying * fixing tests * 3.14.0-beta.7 * fixing bug with completed status not being set correctly. allowing workflow request to be cancellable when stacking requests. * fixing unit tests * small change from PR updates * removing grid and grid-column. these are now renamed to flex grid and flex grid item * fix lint * Feature/workflow history archival (#136) * Adding history archival and visibility archival to domain settings screen. adding unit tests * renaming archives to archival for consistancy * 3.14.0-beta.5 * missed some references for rename * 3.14.0-beta.6 * adding basic screen and starting work on it. * got basic screen working with mocked data. need to hook up API. * making table into component to be reused on advanced screen. * moving search bar to grid. refactoring reusable helpers. removing advanced view for now. adding in date picker to archival screen. adding status. * fixing helpers. finished UI for archival view * formatting start time and end time * styling and fixing up potential errors * adding more protections * adding nextPageToken to query. fixing bug with next page token on workflow list screen. * moving hardcoded code into service. working on getting pagination working. * creating loading spinner component to help with loading paging. * got scrolling on table mostly working. got sticky headers working. * fixing spinner scroll bar issue. * got pagination working * hooking up archival API * adding error handling * adding advanced button to toggle between basic and advanced archival views. creating button component. * completed advanced archival screen. * removing consoles * lint fixes * splitting out basic vue functions into helpers * moving helpers into separate files * splitting out helper tests * updating spec to contain describe * using getErrorMessage common helper * adding tests for global helpers. * adding unit tests for get query params. renaming statusName to statusValue. * adding tests for get range. * getStatusValue tests * adding tests for getStatus * adding test for map response * adding tests for update query from range * lint fixes * updating idl to latest * updating to latest idl. Fixing napa install to clear directory before copying * fixing tests * 3.14.0-beta.7 * fixing bug with completed status not being set correctly. allowing workflow request to be cancellable when stacking requests. * fixing unit tests * small change from PR updates * removing grid and grid-column. these are now renamed to flex grid and flex grid item * fix lint * got part of summary information from archival record. * adding extra data points for summary endpoint fallback * fixing list overflow * Got summary information working with archived workflows * 3.14.0-beta.8 * removing archival call as it wont work when deployed to environment. * 3.14.0-beta.9 * Feature/archival tweaks (#138) * Adding history archival and visibility archival to domain settings screen. adding unit tests * renaming archives to archival for consistancy * 3.14.0-beta.5 * missed some references for rename * 3.14.0-beta.6 * adding basic screen and starting work on it. * got basic screen working with mocked data. need to hook up API. * making table into component to be reused on advanced screen. * moving search bar to grid. refactoring reusable helpers. removing advanced view for now. adding in date picker to archival screen. adding status. * fixing helpers. finished UI for archival view * formatting start time and end time * styling and fixing up potential errors * adding more protections * adding nextPageToken to query. fixing bug with next page token on workflow list screen. * moving hardcoded code into service. working on getting pagination working. * creating loading spinner component to help with loading paging. * got scrolling on table mostly working. got sticky headers working. * fixing spinner scroll bar issue. * got pagination working * hooking up archival API * adding error handling * adding advanced button to toggle between basic and advanced archival views. creating button component. * completed advanced archival screen. * removing consoles * lint fixes * splitting out basic vue functions into helpers * moving helpers into separate files * splitting out helper tests * updating spec to contain describe * using getErrorMessage common helper * adding tests for global helpers. * adding unit tests for get query params. renaming statusName to statusValue. * adding tests for get range. * getStatusValue tests * adding tests for getStatus * adding test for map response * adding tests for update query from range * lint fixes * updating idl to latest * updating to latest idl. Fixing napa install to clear directory before copying * fixing tests * 3.14.0-beta.7 * fixing bug with completed status not being set correctly. allowing workflow request to be cancellable when stacking requests. * fixing unit tests * small change from PR updates * removing grid and grid-column. these are now renamed to flex grid and flex grid item * fix lint * got part of summary information from archival record. * adding extra data points for summary endpoint fallback * fixing list overflow * Got summary information working with archived workflows * 3.14.0-beta.8 * removing archival call as it wont work when deployed to environment. * 3.14.0-beta.9 * adjusting default time range to last 24 hours to help with performance. * adding isArchived flag and presenting in UI * adding lag message. moving constant out of helper and into constants file. need to add to advanced screen * refactoring into reusable loading-message component. added to basic and advanced screen. * 3.14.0-beta.10 * Fix/lint and test (#139) * lint fixes * fixing unit test * 3.14.0-beta.11 * 3.14.0
1 parent d615f5c commit ec2122d

File tree

76 files changed

+2279
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2279
-98
lines changed

.babelrc renamed to babel.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
module.exports = {
22
"plugins": [
33
[
44
"module-resolver",
@@ -9,7 +9,8 @@
99
"~helpers": "./client/helpers"
1010
}
1111
}
12-
]
12+
],
13+
["@babel/plugin-transform-regenerator"]
1314
],
1415
"presets": [
1516
[
@@ -22,4 +23,4 @@
2223
],
2324
"@babel/preset-env"
2425
]
25-
}
26+
};

client/components/button-fill.vue

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<template>
2+
<component
3+
class="button-fill"
4+
:href="href"
5+
:is="tag"
6+
:to="to"
7+
@click="onClick"
8+
>
9+
{{ label }}
10+
</component>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: 'button-fill',
16+
props: {
17+
href: {
18+
type: String,
19+
},
20+
label: {
21+
type: String,
22+
},
23+
tag: {
24+
type: String,
25+
default: 'button',
26+
},
27+
to: {
28+
type: Object,
29+
},
30+
},
31+
methods: {
32+
onClick(...args) {
33+
this.$emit('click', ...args);
34+
},
35+
},
36+
};
37+
</script>
38+
39+
<style lang="stylus">
40+
.button-fill {
41+
cursor: pointer;
42+
display: inline-block;
43+
padding: 13px 21px;
44+
transition: all 400ms ease;
45+
font-weight: 600;
46+
color: #fff !important;
47+
background-color: #11939a;
48+
white-space: nowrap;
49+
}
50+
</style>

client/components/date-range-picker/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ sidebarWidth = sidebarColumnShortcutsWidth + sidebarColumnCustomRangeWidth;
282282
cursor: pointer;
283283
height: auto;
284284
margin: 0;
285-
padding: 9px 30px 9px 10px;
285+
padding: 8px 30px 8px 10px;
286286
width: 325px;
287287
}
288288
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div class="error-message-container" v-if="error">
3+
<span class="error">
4+
{{ error }}
5+
</span>
6+
</div>
7+
</template>
8+
9+
<script>
10+
export default {
11+
name: 'error-message',
12+
props: ['error'],
13+
};
14+
</script>
15+
16+
<style lang="stylus">
17+
.error-message-container {
18+
padding: 70px 0;
19+
}
20+
</style>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<div class="flex-grid-item" :style="{ maxWidth: width }">
3+
<slot></slot>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'flex-grid-item',
10+
props: ['width'],
11+
};
12+
</script>
13+
14+
<style lang="stylus">
15+
.flex-grid-item {
16+
flex-grow: 1;
17+
margin-right: 5px;
18+
&:last-child {
19+
margin-right: 0;
20+
}
21+
}
22+
</style>

client/components/flex-grid.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<div class="flex-grid">
3+
<slot></slot>
4+
</div>
5+
</template>
6+
7+
<style lang="stylus">
8+
.flex-grid {
9+
display: flex;
10+
flex-direction: row;
11+
flex-wrap: wrap;
12+
}
13+
</style>

client/components/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
export { default as BarLoader } from './bar-loader';
2+
export { default as ButtonFill } from './button-fill';
23
export { default as Copy } from './copy';
34
export { default as DataViewer } from './data-viewer';
45
export { default as DetailList } from './detail-list';
56
export { default as DateRangePicker } from './date-range-picker';
67
export { default as DomainNavigation } from './domain-navigation';
8+
export { default as ErrorMessage } from './error-message';
9+
export { default as FlexGrid } from './flex-grid';
10+
export { default as FlexGridItem } from './flex-grid-item';
11+
export { default as LoadingMessage } from './loading-message';
12+
export { default as LoadingSpinner } from './loading-spinner';
713
export { default as NavigationBar } from './navigation-bar';
814
export { default as NavigationLink } from './navigation-link';
15+
export { default as NoResults } from './no-results';
916
export { default as NotificationBar } from './notification-bar';
17+
export { default as TextInput } from './text-input';
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<template>
2+
<div class="loading-message" v-if="showMessage">
3+
<slot></slot>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'loading-message',
10+
props: ['loading', 'delay'],
11+
data() {
12+
return {
13+
showMessage: false,
14+
timer: undefined,
15+
};
16+
},
17+
methods: {
18+
clearState() {
19+
this.stopTimer();
20+
this.showMessage = false;
21+
},
22+
startTimer() {
23+
this.clearState();
24+
this.timer = setTimeout(() => {
25+
this.showMessage = true;
26+
}, this.delay);
27+
},
28+
stopTimer() {
29+
if (this.timer) {
30+
clearTimeout(this.timer);
31+
}
32+
},
33+
},
34+
watch: {
35+
loading(loading) {
36+
if (!loading) {
37+
this.clearState();
38+
} else {
39+
this.startTimer();
40+
}
41+
},
42+
},
43+
};
44+
</script>
45+
46+
<style lang="stylus">
47+
@keyframes loadingMessageFadeIn {
48+
0% {
49+
opacity:0;
50+
}
51+
100% {
52+
opacity:1;
53+
}
54+
}
55+
56+
.loading-message {
57+
animation: loadingMessageFadeIn ease 1s;
58+
59+
text-align: center;
60+
line-height: 24px;
61+
}
62+
</style>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<div class="loading-spinner">
3+
<div class="spinner"></div>
4+
</div>
5+
</template>
6+
7+
<style lang="stylus">
8+
.loading-spinner {
9+
margin: 16px auto;
10+
height: 32px;
11+
width: 32px;
12+
13+
.spinner {
14+
animation: spin 800ms linear infinite;
15+
border: 3px solid #11939a;
16+
border-bottom-color: transparent;
17+
border-radius: 100%;
18+
height: 100%;
19+
width: 100%;
20+
}
21+
}
22+
</style>

client/components/no-results.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div class="no-results-container" v-if="results && !results.length">
3+
<div class="no-results">
4+
No Results
5+
</div>
6+
</div>
7+
</template>
8+
9+
<script>
10+
export default {
11+
name: 'no-results',
12+
props: ['results'],
13+
};
14+
</script>
15+
16+
<style lang="stylus">
17+
.no-results-container {
18+
padding: 70px 0;
19+
}
20+
</style>

0 commit comments

Comments
 (0)