Skip to content

Commit

Permalink
Deploy to protosaur.dev (fixes #60)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed Jan 22, 2021
1 parent 4e17f03 commit 4ad6373
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 7 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1
orbs:
node: circleci/node@2.0.1
python: circleci/python@0.2.1
gcs: t3n/gcs@0.1.3
jobs:
build-and-test:
executor:
Expand All @@ -14,6 +15,12 @@ jobs:
- run: npm run build
- run: npm run build-storybook
- run: npm test
- run: mkdir /tmp/workspace
- run: cp -r public /tmp/workspace
- persist_to_workspace:
root: /tmp/workspace
paths:
- public/*
python-build-and-test:
executor: python/default
steps:
Expand All @@ -22,8 +29,33 @@ jobs:
- run:
name: Run lint
command: make lint
- run: scripts/build-glean-metadata.py
- run: mkdir /tmp/workspace-data
- run: cp -r public/data/* /tmp/workspace-data
- persist_to_workspace:
root: /tmp/workspace-data
paths:
- ./*
upload:
docker:
- image: google/cloud-sdk
working_directory: /tmp
steps:
- attach_workspace:
at: /tmp/workspace
- attach_workspace:
at: /tmp/workspace-data
- run: cp -r /tmp/workspace-data/* /tmp/workspace/public/data
- gcs/gcs-rsync:
bucket: glean-dictionary-dev
source: /tmp/workspace/public
options: -r
workflows:
build-and-test:
jobs:
- build-and-test
- python-build-and-test
- upload:
requires:
- build-and-test
- python-build-and-test
3 changes: 3 additions & 0 deletions src/GlobalStyles.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<style global>
@import "@mozilla-protocol/core/protocol/css/protocol.scss";
html, body {
min-height: 100vh;
}
</style>
10 changes: 10 additions & 0 deletions src/data/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ export default {
text: "Defines which pings the metric is sent in.",
link: OPTIONAL_METRIC_PARAMS_DOCS,
},
timeUnit: {
text: "The smallest unit of resolution that the metric will record.",
link:
"https://mozilla.github.io/glean/book/user/metrics/datetime.html#configuration",
},
bucketCount: {
text: 'The number of "buckets" to store histogram values.',
link:
"https://mozilla.github.io/glean/book/user/metrics/custom_distribution.html#configuration",
},
};
23 changes: 16 additions & 7 deletions src/pages/MetricDetail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,33 @@
{#if metric.time_unit}
<tr>
<td>
<a
href="https://mozilla.github.io/glean/book/user/metrics/timing_distribution.html"
target="_blank">
Time unit
</a>
Time unit
<HelpHoverable
content={helpText.timeUnit.text}
link={helpText.timeUnit.link} />
</td>
<td>{metric.time_unit}</td>
</tr>
{/if}
{#if metric.bucket_count}
<tr>
<td>Bucket count</td>
<td>
Bucket count
<HelpHoverable
content={helpText.bucketCount.text}
link={helpText.bucketCount.link} />
</td>
<td>{metric.bucket_count}</td>
</tr>
{/if}
{#if metric.histogram_type}
<tr>
<td>Histogram type</td>
<td>
Histogram type
<HelpHoverable
content={helpText.bucketCount.text}
link={helpText.bucketCount.link} />
</td>
<td>{metric.histogram_type}</td>
</tr>
{/if}
Expand Down

0 comments on commit 4ad6373

Please sign in to comment.