integrations: Add screenshot configs for productivity integrations.

that do not have fixtures.
This commit is contained in:
Niloth P
2025-07-30 14:22:38 +05:30
committed by Tim Abbott
parent 433f43a9b4
commit d70b099644
2 changed files with 22 additions and 0 deletions

View File

@@ -70,9 +70,11 @@ FIXTURELESS_INTEGRATIONS_WITH_SCREENSHOTS: list[str] = [
"codebase",
"discourse",
"github-actions",
"google-calendar",
"jenkins",
"mastodon",
"mercurial",
"notion",
"openshift",
"perforce",
"puppet",
@@ -884,6 +886,7 @@ for integration, screenshots_contents in FIXTURELESS_SCREENSHOT_CONTENT.items():
FIXTURELESS_SCREENSHOT_CONFIG_OPTIONAL_FIELDS = {
"mercurial": {"image_dir": "hg"},
"jenkins": {"image_name": "004.png"},
"google-calendar": {"image_name": "003.png", "image_dir": "google/calendar"},
}
for integration, fields in FIXTURELESS_SCREENSHOT_CONFIG_OPTIONAL_FIELDS.items():

View File

@@ -47,9 +47,12 @@ TICKET_NUMBER = THREE_DIGIT_NUMBER
# Example datetime content
_DT = datetime(2025, 5, 30, 2, 0, 0, tzinfo=timezone.utc)
DATETIME_STAMP = _DT.strftime("%Y-%m-%d %H:%M:%S")
DATETIME_GLOBAL = f"<time:{_DT.strftime('%Y-%m-%dT%H:%M:%S%z')}>"
DATE_ISO_8601 = _DT.strftime("%Y-%m-%d")
DATE_LONG = _DT.strftime("%A, %B %d, %Y")
class ScreenshotContent(TypedDict):
@@ -88,6 +91,14 @@ GITHUB_ACTIONS = ScreenshotContent(
> Unable to connect.""",
)
GOOGLE_CALENDAR = ScreenshotContent(
topic="Team reminders",
content=f"""The [Development Sync]() event is scheduled from 2 PM - 3 PM on {DATE_LONG} at Conference Room B.
> Let's align on our current sprint progress, address any blockers, and share updates. Your input is crucial!
[Join call]().""",
)
JENKINS = ScreenshotContent(
topic=PROJECT_NAME,
content=f"**Build:** [#{REVISION_NUMBER}](): FAILURE :cross_mark:",
@@ -108,6 +119,14 @@ MERCURIAL = ScreenshotContent(
""",
)
NOTION = ScreenshotContent(
topic=f"{PROJECT_NAME} Release {VERSION_NUMBER}",
content=f"""**{BO_NAME}** [commented]() on:
> project demo scheduled
Can we reschedule this to next week?""",
)
OPENSHIFT = ScreenshotContent(
topic=PROJECT_NAME,
content=f"""Deployment [{REVISION_NUMBER}]() triggered by a push to **{BRANCH_GIT}** by commit [{COMMIT_HASH_A[:7]}]() at {DATETIME_STAMP} has **failed**.""",