Skip to content

Commit d813e14

Browse files
authored
Merge pull request #16 from browserstack/new_demo_app_fixes
New App Minor Fixes
2 parents 6c0b3cf + 6afecb9 commit d813e14

File tree

9 files changed

+8
-69
lines changed

9 files changed

+8
-69
lines changed

client/package-lock.json

Whitespace-only changes.

client/package.json

Whitespace-only changes.

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>browserstack-demo</title>
7-
<meta name="description" content="Browserstack Self Heal Demo Project" />
7+
<meta name="description" content="Browserstack Demo Project" />
88
<meta name="author" content="cia-dev" />
99

1010
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
11-
<meta property="og:title" content="Browserstack Self Heal Demo" />
12-
<meta property="og:description" content="Browserstack Self Heal Demo Project" />
11+
<meta property="og:title" content="Browserstack Demo" />
12+
<meta property="og:description" content="Browserstack Demo Project" />
1313
<meta property="og:type" content="website" />
1414
<meta property="og:image" content="/favicon.svg" />
1515

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const ShoppingCartPage = () => {
9191
<div className="text-blue-600 font-bold text-lg">${item.price} x {item.quantity}</div>
9292
<div className="flex items-center gap-2 mt-2">
9393
<button className="px-2 py-1 bg-gray-200 rounded" onClick={() => decrementFromCart(item.id)}>-</button>
94-
<span className="px-2">{item.quantity}</span>
94+
<span className="px-2" id="item-quantity">{item.quantity}</span>
9595
<button className="px-2 py-1 bg-gray-200 rounded" onClick={() => addToCart(item, 1)}>+</button>
9696
</div>
9797
</div>

src/components/HealingIcon.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/components/HealingInfo.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/index.css

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -97,26 +97,6 @@ All colors MUST be HSL.
9797
}
9898
}
9999

100-
/* Self-healing mode styles */
101-
.healing-highlight {
102-
@apply ring-2 ring-orange-300 ring-opacity-50 animate-pulse;
103-
}
104-
105-
.healing-glow {
106-
box-shadow: 0 0 20px rgba(251, 146, 60, 0.3);
107-
}
108-
109-
/* Smooth transitions for healing mode */
110-
.healing-transition {
111-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
112-
}
113-
114-
@media (max-width: 1075px) {
115-
.healing-demo-desktop {
116-
display: none !important;
117-
}
118-
}
119-
120100
/* Hide username on iPad screen sizes */
121101
@media (min-width: 768px) and (max-width: 1080px) and (orientation: portrait),
122102
(min-width: 768px) and (max-width: 1080px) and (orientation: landscape) {

src/pages/Scenarios.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const Scenarios: React.FC = () => {
124124
title: 'Link copied',
125125
description: 'The scenario URL is ready to share.',
126126
className: toastStyles,
127-
duration: 800
127+
duration: 3000
128128
});
129129
});
130130
}
@@ -160,6 +160,7 @@ const Scenarios: React.FC = () => {
160160
</div>
161161
<button
162162
onClick={() => setToggleState(!toggleState)}
163+
id="feature-toggle-btn"
163164
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${
164165
toggleState ? 'bg-blue-600' : 'bg-gray-200'
165166
}`}
@@ -202,6 +203,7 @@ const Scenarios: React.FC = () => {
202203
{[25, 50, 75, 100].map((value) => (
203204
<button
204205
key={value}
206+
id={`progress-btn-${value}`}
205207
onClick={() => setProgressValue(value)}
206208
className="flex-1 py-2 px-2 text-sm rounded-lg font-medium transition-all bg-gray-100 text-gray-700 hover:bg-gray-200"
207209
>

0 commit comments

Comments
 (0)