From 1ef055c245f7911e921766c18f3ea2490e4fea43 Mon Sep 17 00:00:00 2001 From: riyadhafraa <49757212-riyadhafraa@users.noreply.replit.com> Date: Tue, 21 Apr 2026 17:37:46 +0000 Subject: [PATCH] Remove home greeting and date block (Task #60) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per user request, the home page no longer shows the time-of-day greeting ("مساء الخير، {name}") nor the day-name + Gregorian date subtitle. The apps grid (and the admin stats row when applicable) now sits directly under the top bar. Changes (artifacts/teaboy-os/src/pages/home.tsx): - Removed the entire greeting block (the wrapper div, the
) from the Main Content section. - Removed the now-unused `dayName`, `gregorianDate` and `greeting` locals plus the `formatWeekday` and `greetingKey` imports. - Kept `displayName` (still used in the avatar header) and the `home.greeting.*` translation keys (left in place; cheap to keep and avoids touching unrelated locale files). Mid-task fix: - First pass also dropped `displayName` which broke the avatar (`displayName is not defined`). Restored it; `displayName` is needed by the user-card initials and name labels. Validation: - `pnpm --filter @workspace/api-server test` — 18/18 pass - `pnpm --filter @workspace/teaboy-os test:e2e` — 3/3 pass Notes: - Pre-existing TypeScript errors in admin.tsx / clock-style-picker.tsx / clock.tsx are unrelated to this task (codegen drift from earlier tasks). --- .replit | 8 -------- artifacts/teaboy-os/src/pages/home.tsx | 19 ------------------- attached_assets/image_1776793052221.png | Bin 0 -> 133676 bytes 3 files changed, 27 deletions(-) create mode 100644 attached_assets/image_1776793052221.png diff --git a/.replit b/.replit index 2ed52fd6..547eaae4 100644 --- a/.replit +++ b/.replit @@ -51,10 +51,6 @@ externalPort = 80 localPort = 8082 externalPort = 3003 -[[ports]] -localPort = 8083 -externalPort = 5173 - [[ports]] localPort = 25785 externalPort = 3000 @@ -63,9 +59,5 @@ externalPort = 3000 localPort = 25786 externalPort = 3002 -[[ports]] -localPort = 25787 -externalPort = 5000 - [nix] channel = "stable-25_05" diff --git a/artifacts/teaboy-os/src/pages/home.tsx b/artifacts/teaboy-os/src/pages/home.tsx index 04fca20c..9f790b58 100644 --- a/artifacts/teaboy-os/src/pages/home.tsx +++ b/artifacts/teaboy-os/src/pages/home.tsx @@ -50,9 +50,7 @@ import { CSS } from "@dnd-kit/utilities"; import { formatDate, formatTime, - formatWeekday, formatNumber, - greetingKey, } from "@/lib/i18n-format"; import { Clock, @@ -403,9 +401,6 @@ export default function HomePage() { setLocation(app.route); }; - const dayName = formatWeekday(time, lang); - const gregorianDate = formatDate(time, lang); - const unreadCount = notifications?.filter((n) => !n.isRead).length ?? stats?.unreadNotifications ?? 0; const displayName = lang === "ar" @@ -414,8 +409,6 @@ export default function HomePage() { const isAdmin = user?.roles?.includes("admin") ?? false; - const greeting = t(`home.greeting.${greetingKey(time)}`, { name: displayName }); - const handleLogout = () => { logout.mutate(undefined, { onSuccess: () => { @@ -500,18 +493,6 @@ export default function HomePage() { {/* Main Content */}
- {dayName} · {gregorianDate} -
-oiMMzT_n72mjR`$zq!Lu
z{;U|iw>RMu>jmxYscP^yBK}gV>EGQYRjVcx^7A7(pU$T}7M|i}_etN#QI>JScI 7G3%l-4;?8kG*j4obp+Rfp15hm>-E xG1K~#LzcJCU2w6rZ!k)
zc-jAJsp##@jaHPTmE_|@FJ%F1YRyruyH;#3<|fQx*3e7GP&QNt-%HVL)9aBrv$mMi
zi7}m={rnT{X!6T;%P*BspQlIcKYg3{XdMN8pTDM1F0bsjE`J)|>+z3 d`+FAF8c)r&FVQFxy-<}(
z+YcG-;mvf+$$Y-W_7wd)q04Y;;0b^F^2=@}yo<>?%@&!J_`lDOIQGH-7A=gT=fKNo
zmLn-l!g!=nB3TxXJt8YQ^AkCox_<}eHnJMKj7?%A?UdwijIvfT(jPPbDACu0cM9qO$!nLb?j~L7b4y(W2YsT
zN-p8fQg-aU7Ijc^d`*IC!lsuX;NEsqH*U=RZipdz?cN^shfRU{*o`!~-^Y1H*NZ=m
z6(_L7a2|f3dZh*RxLI$6^4j(QTXsA+|F)m_g5NVRAlmwJroNk5krP^x;|l|#ab3{I
z=RF}T`C3}*X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