Skip to content

Commit 03a66c0

Browse files
committed
chore(dashboard): centering, color, style changes to version updating
1 parent 0f8f3cf commit 03a66c0

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

packages/apps/app-dashboard/src/components/user-dashboard/connect/ReturningUserConnect.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,19 @@ export function ReturningUserConnect({
197197
{/* Show Update Version button when version update is available */}
198198
{version !== appData.activeVersion && (
199199
<ActionCard
200-
icon={<RefreshCw className="w-4 h-4 text-orange-500" />}
200+
icon={<RefreshCw className="w-4 h-4" style={{ color: theme.brandOrange }} />}
201201
iconBg="bg-orange-500/20"
202202
title="Update to Latest Version"
203-
description=""
203+
description="Recommended - Get access to the latest features and improvements"
204204
onClick={handleUpdateVersion}
205205
/>
206206
)}
207207
{/* Edit Parameters Option - Show when version is enabled */}
208208
<ActionCard
209-
icon={<Settings className="w-4 h-4 text-gray-500" />}
210-
iconBg="bg-gray-500/20"
209+
icon={<Settings className="w-4 h-4" style={{ color: theme.brandOrange }} />}
210+
iconBg="bg-orange-500/20"
211211
title="Edit Permissions"
212-
description=""
212+
description="Review or modify app permissions and settings"
213213
onClick={handleEditParameters}
214214
/>
215215
</>
@@ -218,10 +218,10 @@ export function ReturningUserConnect({
218218
{/* Continue Option - Only show if version is enabled and not both versions disabled */}
219219
{!(versionData && !versionData.enabled) && (
220220
<ActionCard
221-
icon={<ArrowRight className="w-4 h-4 text-orange-500" />}
221+
icon={<ArrowRight className="w-4 h-4" style={{ color: theme.brandOrange }} />}
222222
iconBg="bg-orange-500/20"
223223
title={`Continue to ${appData.name}`}
224-
description=""
224+
description="Proceed with your current permissions"
225225
onClick={handleContinue}
226226
isLoading={isContinueLoading || isLoading || !!localSuccess}
227227
loadingStatus={localSuccess || loadingStatus}

packages/apps/app-dashboard/src/components/user-dashboard/dashboard/UpdateVersionPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function UpdateVersionPage({
163163
const error = jwtError || actionsError;
164164

165165
return (
166-
<>
166+
<div className="w-full flex flex-col">
167167
<Breadcrumb
168168
items={[
169169
{
@@ -174,7 +174,7 @@ export function UpdateVersionPage({
174174
]}
175175
/>
176176

177-
<div className="w-full max-w-md mx-auto relative z-10 flex items-center min-h-[calc(100vh-4rem)] -mt-32">
177+
<div className="w-full max-w-md mx-auto relative z-10 flex items-center justify-center flex-1 py-8">
178178
<div
179179
className={`w-full ${theme.mainCard} border ${theme.mainCardBorder} rounded-2xl shadow-2xl overflow-hidden relative z-10 origin-center`}
180180
>
@@ -236,6 +236,6 @@ export function UpdateVersionPage({
236236
</div>
237237
</div>
238238
</div>
239-
</>
239+
</div>
240240
);
241241
}

packages/apps/app-dashboard/src/components/user-dashboard/dashboard/ui/AppPermissionDashboardHeader.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,30 @@ export function AppPermissionDashboardHeader({
145145
{versionStatus.warningType === 'yellow' ? (
146146
<button
147147
onClick={() => navigate(`/user/appId/${app.appId}/update-version`)}
148-
className={`backdrop-blur-xl ${theme.itemBg} border ${theme.cardBorder} hover:border-orange-500 rounded-lg p-2.5 sm:p-3 lg:p-4 hover:${theme.itemHoverBg} transition-all w-full text-left`}
148+
className={`backdrop-blur-xl ${theme.itemBg} border-2 rounded-lg p-2.5 sm:p-3 lg:p-4 hover:${theme.itemHoverBg} transition-all w-full text-left animate-pulse hover:animate-none`}
149+
style={{ borderColor: theme.brandOrange }}
149150
>
150151
<div className="flex items-center gap-2 sm:gap-3">
151-
<div className={`p-1.5 sm:p-2 rounded-lg ${versionStatus.bgColor} flex-shrink-0`}>
152-
<TriangleAlert className={`w-4 h-4 sm:w-5 sm:h-5 ${versionStatus.statusColor}`} />
152+
<div
153+
className={`p-1.5 sm:p-2 rounded-lg flex-shrink-0`}
154+
style={{ backgroundColor: 'rgba(255, 66, 5, 0.2)' }}
155+
>
156+
<TriangleAlert
157+
className={`w-4 h-4 sm:w-5 sm:h-5`}
158+
style={{ color: theme.brandOrange }}
159+
/>
153160
</div>
154161
<div className="flex-1 min-w-0">
155162
<p
156-
className={`text-sm font-semibold ${versionStatus.statusColor} leading-tight flex items-center gap-1.5`}
157-
style={fonts.heading}
163+
className={`text-sm font-semibold leading-tight flex items-center gap-1.5`}
164+
style={{ ...fonts.heading, color: theme.brandOrange }}
158165
>
159166
{versionStatus.statusText}
160167
<span className="text-lg relative -top-1"></span>
161168
</p>
162169
<p
163-
className={`text-[10px] sm:text-xs ${theme.textMuted} mt-0.5 leading-tight line-clamp-2`}
164-
style={fonts.body}
170+
className={`text-[10px] sm:text-xs mt-0.5 leading-tight line-clamp-2`}
171+
style={{ ...fonts.body, color: theme.brandOrange, opacity: 0.8 }}
165172
title={versionStatus.detailText}
166173
>
167174
{versionStatus.detailText}

0 commit comments

Comments
 (0)