Skip to content

Commit 78fad3f

Browse files
committed
Merge branch 'master' of github.com:DiceDB/playground-web into kavii/setup-ui-packages-and-tailwind-for-console
* 'master' of github.com:DiceDB/playground-web: Fix docker compose file (DiceDB#77) integrate cleanup time from playground-mono (DiceDB#76) Changes to integrate rate-limit headers for `Commands left` component UI (DiceDB#67) Adding support for JSON.SET command (DiceDB#74) Unit tests for playground-web repository (DiceDB#71) fix: docker compose contexts to ensure docker compose runs
2 parents 97ddb2a + 0e5e694 commit 78fad3f

File tree

31 files changed

+892
-444
lines changed

31 files changed

+892
-444
lines changed

apps/playground-web/components/CLI/CLI.tsx

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

apps/playground-web/components/CLI/__tests__/index.test.tsx

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

apps/playground-web/components/CLI/hooks/useCli.tsx

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

apps/playground-web/components/Footer/Footer.tsx

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,40 @@ import Link from 'next/link';
99

1010
export default function Footer() {
1111
return (
12-
<footer className="bg-white border-t border-gray-100 py-12">
12+
<footer
13+
className="bg-white border-t border-gray-100 py-12"
14+
data-testid="footer"
15+
>
1316
<div className="container mx-auto px-4">
1417
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
1518
<div>
16-
<h3 className="text-gray-500 font-semibold mb-4 text-center">
19+
<h3
20+
className="text-gray-500 font-semibold mb-4 text-center"
21+
data-testid="footer-heading"
22+
>
1723
DiceDB
1824
</h3>
1925
<Link
2026
href="https://dicedb.io/get-started/installation/"
2127
target="_blank"
28+
data-testid="get-started-link"
2229
>
23-
<Button className="w-full !bg-red-600 hover:!bg-red-700 !text-white">
30+
<Button
31+
className="w-full !bg-red-600 hover:!bg-red-700 !text-white"
32+
data-testid="get-started-button"
33+
>
2434
Get Started →
2535
</Button>
2636
</Link>
27-
<Link href="https://github.com/dicedb/dice" target="_blank">
37+
<Link
38+
href="https://github.com/dicedb/dice"
39+
target="_blank"
40+
data-testid="github-link"
41+
>
2842
<Button
2943
variant="outline"
3044
className="!w-full mt-2 !border-1 !border-gray-700 bg-blue-50 hover:text-blue text-black hover:text-blue-600"
45+
data-testid="github-button"
3146
>
3247
<GitHub className="mr-2 h-4 w-4" /> GitHub (4k+)
3348
</Button>
@@ -42,6 +57,7 @@ export default function Footer() {
4257
href="https://dicedb.io/get-started/installation"
4358
target="_blank"
4459
className="text-gray-600 hover:text-gray-900"
60+
data-testid="quickstart-link"
4561
>
4662
Quickstart
4763
</a>
@@ -51,6 +67,7 @@ export default function Footer() {
5167
href="https://dicedb.io/commands/get"
5268
target="_blank"
5369
className="text-gray-600 hover:text-gray-900"
70+
data-testid="commands-link"
5471
>
5572
Commands
5673
</a>
@@ -60,6 +77,7 @@ export default function Footer() {
6077
href="https://github.com/DiceDB/dice/tree/master/examples/leaderboard-go"
6178
target="_blank"
6279
className="text-gray-600 hover:text-gray-900"
80+
data-testid="examples-link"
6381
>
6482
Examples
6583
</a>
@@ -75,6 +93,7 @@ export default function Footer() {
7593
href="https://github.com/DiceDB/dice/tree/master/examples/leaderboard-go"
7694
target="_blank"
7795
className="text-gray-600 hover:text-gray-900"
96+
data-testid="leaderboard-link"
7897
>
7998
Real-time Leaderboard
8099
</a>
@@ -90,6 +109,7 @@ export default function Footer() {
90109
href="mailto:[email protected]"
91110
target="_blank"
92111
className="text-gray-600 hover:text-gray-900"
112+
data-testid="contact-link"
93113
>
94114
Contact Us
95115
</a>
@@ -101,6 +121,7 @@ export default function Footer() {
101121
target="_blank"
102122
className="text-gray-400 hover:text-gray-600"
103123
aria-label="People"
124+
data-testid="people-icon-link"
104125
>
105126
<People className="h-6 w-6" />
106127
</a>
@@ -109,6 +130,7 @@ export default function Footer() {
109130
target="_blank"
110131
className="text-gray-400 hover:text-gray-600"
111132
aria-label="Twitter"
133+
data-testid="twitter-icon-link"
112134
>
113135
<Twitter className="h-6 w-6" />
114136
</a>
@@ -117,6 +139,7 @@ export default function Footer() {
117139
target="_blank"
118140
className="text-gray-400 hover:text-gray-600"
119141
aria-label="GitHub"
142+
data-testid="github-icon-link"
120143
>
121144
<GitHub className="h-6 w-6" />
122145
</a>

0 commit comments

Comments
 (0)