From ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 14 Jun 2022 15:04:17 -0400 Subject: Add salary transparency page (#492) * Move dhall data and types into `/dhall` folder * Reformat salary transparency data into Dhall * Wire up the old salary transparency page with a custom element * Wire up a new salary transparency page * Expose raw data as JSON * Make dhall types more portable * Remove gallery from the navbar * Make signal boost page point to the new data location * Add salary transparency page to the footer of the site * Add site update post for this Signed-off-by: Xe --- dhall/types/Author.dhall | 19 +++++++++++++++++++ dhall/types/Job.dhall | 23 +++++++++++++++++++++++ dhall/types/Person.dhall | 9 +++++++++ dhall/types/Salary.dhall | 3 +++ 4 files changed, 54 insertions(+) create mode 100644 dhall/types/Author.dhall create mode 100644 dhall/types/Job.dhall create mode 100644 dhall/types/Person.dhall create mode 100644 dhall/types/Salary.dhall (limited to 'dhall/types') diff --git a/dhall/types/Author.dhall b/dhall/types/Author.dhall new file mode 100644 index 0000000..dc0b1c3 --- /dev/null +++ b/dhall/types/Author.dhall @@ -0,0 +1,19 @@ +{ Type = + { name : Text + , handle : Text + , picUrl : Optional Text + , link : Optional Text + , twitter : Optional Text + , default : Bool + , inSystem : Bool + } +, default = + { name = "" + , handle = "" + , picUrl = None Text + , link = None Text + , twitter = None Text + , default = False + , inSystem = False + } +} diff --git a/dhall/types/Job.dhall b/dhall/types/Job.dhall new file mode 100644 index 0000000..a079d3c --- /dev/null +++ b/dhall/types/Job.dhall @@ -0,0 +1,23 @@ +let Salary = ./Salary.dhall + +in { Type = + { company : Text + , title : Text + , startDate : Text + , endDate : Optional Text + , daysWorked : Optional Natural + , daysBetween : Optional Natural + , salary : Salary.Type + , leaveReason : Optional Text + } + , default = + { company = "Unknown" + , title = "Unknown" + , startDate = "0000-01-01" + , endDate = None Text + , daysWorked = None Natural + , daysBetween = None Natural + , salary = Salary::{=} + , leaveReason = None Text + } + } diff --git a/dhall/types/Person.dhall b/dhall/types/Person.dhall new file mode 100644 index 0000000..b1628eb --- /dev/null +++ b/dhall/types/Person.dhall @@ -0,0 +1,9 @@ +{ Type = + { name : Text + , tags : List Text + , gitLink : Optional Text + , twitter : Optional Text + } +, default = + { name = "", tags = [] : List Text, gitLink = None Text, twitter = None Text } +} diff --git a/dhall/types/Salary.dhall b/dhall/types/Salary.dhall new file mode 100644 index 0000000..37dfce7 --- /dev/null +++ b/dhall/types/Salary.dhall @@ -0,0 +1,3 @@ +{ Type = { amount : Natural, currency : Text, per : Text } +, default = { amount = 0, currency = "USD", per = "year" } +} -- cgit v1.2.3