Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

corporate: Update for/education screenshots for canonical Elena.

Lauryn Menardd53f75d0a987
diff --git a/static/images/landing-page/education/interactive_messaging_day_1.png b/static/images/landing-page/education/interactive_messaging_day_1.png
index 7b288c6d8c9..d3825fa1939 100644
Binary files a/static/images/landing-page/education/interactive_messaging_day_1.png and b/static/images/landing-page/education/interactive_messaging_day_1.png differ
diff --git a/static/images/landing-page/education/interactive_messaging_day_2.png b/static/images/landing-page/education/interactive_messaging_day_2.png
index 2cf7b637428..b1ca9096adb 100644
Binary files a/static/images/landing-page/education/interactive_messaging_day_2.png and b/static/images/landing-page/education/interactive_messaging_day_2.png differ
diff --git a/static/images/landing-page/education/interactive_messaging_day_3.png b/static/images/landing-page/education/interactive_messaging_day_3.png
index 2fc9a32544b..36b0534ce79 100644
Binary files a/static/images/landing-page/education/interactive_messaging_day_3.png and b/static/images/landing-page/education/interactive_messaging_day_3.png differ
diff --git a/static/images/landing-page/education/message_formatting_day_1.png b/static/images/landing-page/education/message_formatting_day_1.png
index 5739377eb0b..d48a908bde7 100644
Binary files a/static/images/landing-page/education/message_formatting_day_1.png and b/static/images/landing-page/education/message_formatting_day_1.png differ
diff --git a/static/images/landing-page/education/message_formatting_day_2.png b/static/images/landing-page/education/message_formatting_day_2.png
index 12585be58a8..c11d982194e 100644
Binary files a/static/images/landing-page/education/message_formatting_day_2.png and b/static/images/landing-page/education/message_formatting_day_2.png differ
diff --git a/tools/screenshots/for-education.json b/tools/screenshots/for-education.json
index 074992d06d1..ea7acfbe039 100644
--- a/tools/screenshots/for-education.json
+++ b/tools/screenshots/for-education.json
@@ -13,7 +13,7 @@
"sender": "John Lin",
"content": "I'm confused -- why does the code for this one say: \n\n```python\nint my_array[] = {0, 1, 2, 3}\n```\nBut in 2b it's:\n\n```python\nint my_array[4] = {0, 1, 2, 3}\n```\nis it a typo?",
"edited": true,
- "date": {"year": 2024, "month": 6, "day": 19, "hour": 18, "minute": 0}
+ "date": {"year": 2025, "month": 6, "day": 19, "hour": 18, "minute": 0}
},
{
"sender": "Dal Kim",
@@ -21,12 +21,12 @@
"reactions": {
"+1": ["John Lin"]
},
- "date": {"year": 2024, "month": 6, "day": 19, "hour": 18, "minute": 37}
+ "date": {"year": 2025, "month": 6, "day": 19, "hour": 18, "minute": 37}
},
{
"sender": "Notification Bot",
"content": "@_**Dal Kim** has marked this topic as resolved.",
- "date": {"year": 2024, "month": 6, "day": 19, "hour": 19, "minute": 0}
+ "date": {"year": 2025, "month": 6, "day": 19, "hour": 19, "minute": 0}
}
],
"screenshot": "static/images/landing-page/education/message_formatting_day_1.png"
@@ -37,7 +37,7 @@
"color": "#A6DCBF",
"topic": "lecture notes and recording",
"users": {
- "Elena Gracia": {},
+ "Elena García": {},
"Dal Kim": {},
"John Lin": {},
"Maxy Stert": {},
@@ -45,13 +45,13 @@
},
"messages": [
{
- "sender": "Elena Gracia",
+ "sender": "Elena García",
"content": "Here are the notes for today's class: [lecture3.pdf](#). You can also [watch the recording](#) if you missed it.",
"reactions": {
"+1": ["Dal Kim", "John Lin", "Maxy Stert", "Kevin Lin"]
},
"starred": true,
- "date": {"year": 2024, "month": 5, "day": 21, "hour": 11, "minute": 3}
+ "date": {"year": 2025, "month": 5, "day": 21, "hour": 11, "minute": 3}
}
],
"screenshot": "static/images/landing-page/education/interactive_messaging_day_1.png"
@@ -70,7 +70,7 @@
{
"sender": "Dal Kim",
"content": "Can someone double-check my solution for problem 4? The run time is $$O(\\log n)$$, right?",
- "date": {"year": 2024, "month": 5, "day": 19, "hour": 14, "minute": 40}
+ "date": {"year": 2025, "month": 5, "day": 19, "hour": 14, "minute": 40}
},
{
"sender": "Zoe Davis",
@@ -78,7 +78,7 @@
"reactions": {
"+1": ["Iago"]
},
- "date": {"year": 2024, "month": 5, "day": 19, "hour": 15, "minute": 43}
+ "date": {"year": 2025, "month": 5, "day": 19, "hour": 15, "minute": 43}
}
],
"screenshot": "static/images/landing-page/education/message_formatting_day_2.png"
@@ -89,18 +89,18 @@
"color": "#A6C7E5",
"topic": "homework reminders",
"users": {
- "Elena Gracia": {}
+ "Elena García": {}
},
"messages": [
{
- "sender": "Elena Gracia",
- "content": "@**everyone** Please remember to submit your assignments before <time:2024-05-12T00:00:00+05:30>! You will lose **at least 25%** of the credit if your assignment is late.",
- "date": {"year": 2024, "month": 5, "day": 21, "hour": 13, "minute": 10}
+ "sender": "Elena García",
+ "content": "@**everyone** Please remember to submit your assignments before <time:2025-05-12T00:00:00+05:30>! You will lose **at least 25%** of the credit if your assignment is late.",
+ "date": {"year": 2025, "month": 5, "day": 21, "hour": 13, "minute": 10}
},
{
- "sender": "Elena Gracia",
+ "sender": "Elena García",
"content": "It sounds like many of you are stuck at the bonus problem, so here's a hint. Please think about the question first before you view it\n\n```spoiler Hint for bonus problem\nHint\n```",
- "date": {"year": 2024, "month": 5, "day": 21, "hour": 14, "minute": 11}
+ "date": {"year": 2025, "month": 5, "day": 21, "hour": 14, "minute": 11}
}
],
"screenshot": "static/images/landing-page/education/interactive_messaging_day_2.png"
@@ -123,12 +123,12 @@
{
"sender": "Dal Kim",
"content": "@*section 1* I need to reschedule my office hours this week. Which time works better?",
- "date": {"year": 2024, "month": 5, "day": 20, "hour": 15, "minute": 15}
+ "date": {"year": 2025, "month": 5, "day": 20, "hour": 15, "minute": 15}
},
{
"sender": "Dal Kim",
"content": "/poll Section 1 office hours\nThursday 1-2 PM\nFriday 10-11 AM",
- "date": {"year": 2024, "month": 5, "day": 20, "hour": 15, "minute": 20}
+ "date": {"year": 2025, "month": 5, "day": 20, "hour": 15, "minute": 20}
}
],
"screenshot": "static/images/landing-page/education/interactive_messaging_day_3.png"
diff --git a/tools/screenshots/generate-user-messages-screenshot b/tools/screenshots/generate-user-messages-screenshot
index d9839a112fc..2eeeb9529cd 100755
--- a/tools/screenshots/generate-user-messages-screenshot
+++ b/tools/screenshots/generate-user-messages-screenshot
@@ -62,7 +62,7 @@ message_thread_ids: list[int] = []
USER_AVATARS_MAP = {
"Ariella Drake": "tools/screenshots/user_avatars/AriellaDrake.png",
- "Elena Garcia": "tools/screenshots/user_avatars/ElenaGarcia.jpg",
+ "Elena García": "tools/screenshots/user_avatars/ElenaGarcia.jpg",
"Kevin Lin": "tools/screenshots/user_avatars/KevinLin.png",
"Zoe Davis": "tools/screenshots/user_avatars/ZoeDavis.png",
"Bo Williams": "tools/screenshots/user_avatars/BoWilliams.png",
@@ -86,7 +86,7 @@ class MessageThread(BaseModel):
def create_user(full_name: str, avatar_filename: str | None) -> None:
- email = f"{full_name.replace(' ', '')}@zulip.com"
+ email = f"{full_name.replace(' ', '').replace('í', 'i')}@zulip.com"
try:
user = UserProfile.objects.get(realm=realm, full_name=full_name)
except UserProfile.DoesNotExist:
diff --git a/tools/screenshots/thread-screenshot.js b/tools/screenshots/thread-screenshot.js
index 04942e2f148..3471bedbdc0 100644
--- a/tools/screenshots/thread-screenshot.js
+++ b/tools/screenshots/thread-screenshot.js
@@ -41,7 +41,7 @@ async function run() {
try {
const page = await browser.newPage();
// deviceScaleFactor:2 gives better quality screenshots (higher pixel density)
- await page.setViewport({width: 530, height: 1024, deviceScaleFactor: 2});
+ await page.setViewport({width: 580, height: 1024, deviceScaleFactor: 2});
await page.goto(`${realmUrl}/devlogin`);
// wait for Iago devlogin button and click on it.
await page.waitForSelector('[value="[email protected]"]');
@@ -52,6 +52,11 @@ async function run() {
page.click('[value="[email protected]"]'),
]);
+ // Close any banner at the top of the app before taking any screenshots.
+ const top_banner_close_button_selector = ".banner-close-action";
+ await page.waitForSelector(top_banner_close_button_selector);
+ page.click(top_banner_close_button_selector);
+
// Navigate to message and capture screenshot
await page.goto(`${narrowUri}`, {
waitUntil: "networkidle2",
@@ -83,9 +88,12 @@ async function run() {
}
}, background_selectors);
+ // This is done so that the message control buttons are not visible.
+ await page.hover(".compose_new_conversation_button");
+
// Compute screenshot area, with some padding around the message group
const clip = {...(await messageListBox.boundingBox())};
- clip.width -= 64;
+ clip.width -= 70;
clip.y += 10;
clip.height -= 8;
const imageDir = path.dirname(imagePath);