Skip to content

Commit ffd8bb7

Browse files
committed
2 parents 8189eed + 4ff9b47 commit ffd8bb7

File tree

145 files changed

+312078
-297080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+312078
-297080
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Run Jest Tests on PR
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
jobs:
10+
test:
11+
name: Run Jest Tests
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
15+
contents: read
16+
issues: write
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Install Dependencies
28+
run: npm install
29+
30+
- name: Run Jest Tests
31+
id: jest
32+
run: |
33+
npm test -- --json --outputFile=jest-results.json || echo "TESTS_FAILED=true" >> $GITHUB_ENV
34+
35+
- name: Read Jest Results
36+
id: results
37+
run: |
38+
# Default TESTS_FAILED to false
39+
if [ -z "$TESTS_FAILED" ]; then
40+
TESTS_FAILED=false
41+
fi
42+
43+
# Set TESTS_PASSED properly
44+
if [ "$TESTS_FAILED" = "true" ]; then
45+
TESTS_PASSED=false
46+
echo "TESTS_PASSED=false" >> $GITHUB_ENV
47+
FAILED_TESTS=$(jq -r '[.testResults[] | select(.status == "failed") | .name] | map(split("/") | last) | join("\n")' jest-results.json)
48+
echo "FAILED_TESTS<<EOF" >> $GITHUB_ENV
49+
echo "$FAILED_TESTS" >> $GITHUB_ENV
50+
echo "EOF" >> $GITHUB_ENV
51+
else
52+
TESTS_PASSED=true
53+
echo "TESTS_PASSED=true" >> $GITHUB_ENV
54+
echo "FAILED_TESTS=None" >> $GITHUB_ENV
55+
fi
56+
57+
# Extract PR number
58+
PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
59+
60+
# Generate a temporary file for the comment
61+
COMMENT_FILE=$(mktemp)
62+
63+
# Save variables to GITHUB_OUTPUT
64+
echo "TESTS_PASSED=$TESTS_PASSED" >> $GITHUB_ENV
65+
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
66+
echo "COMMENT_FILE=$COMMENT_FILE" >> $GITHUB_OUTPUT
67+
68+
# Generate content for the comment file
69+
{
70+
if [ "$TESTS_PASSED" = "true" ]; then
71+
echo "✅ All Jest tests passed! This PR is ready to merge."
72+
else
73+
echo "❌ Some Jest tests failed. Please check the logs and fix the issues before merging."
74+
echo ""
75+
echo "**Failed Tests:**"
76+
echo ""
77+
echo '```'
78+
echo "$FAILED_TESTS"
79+
echo '```'
80+
fi
81+
} > "$COMMENT_FILE"
82+
83+
- name: PR comment
84+
uses: thollander/actions-comment-pull-request@v3
85+
with:
86+
file-path: ${{ steps.results.outputs.COMMENT_FILE }}
87+
pr-number: ${{ steps.results.outputs.PR_NUMBER }}
88+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/weblate-sync.yaml

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

css/activities.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,19 @@
1616
outline: none;
1717
}
1818

19+
body:not(.dark) #helpfulSearch,
20+
body:not(.dark) .ui-autocomplete {
21+
background-color: #fff !important;
22+
color: #000 !important;
23+
}
1924

25+
body:not(.dark) .ui-autocomplete li:hover {
26+
background-color: #ddd !important;
27+
}
28+
29+
body:not(.dark) #helpfulSearchDiv {
30+
background-color: #f9f9f9 !important;
31+
}
2032

2133
.modal {
2234
display: none;
@@ -622,6 +634,8 @@ table {
622634

623635
#canvas {
624636
overflow-y: visible;
637+
background-color: #FFFFFF;
638+
width: 100%;
625639
}
626640

627641
#statusDiv {

css/themes.css

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
1+
/* Theme DropDown Styling */
2+
3+
#themedropdown{
4+
background-color: transparent;
5+
box-shadow: none;
6+
display: flex;
7+
transform: translateX(-25%) !important;
8+
}
9+
10+
#themedropdown a{
11+
color: #2196F3;
12+
transition: all 0.3s ease;
13+
}
14+
#themedropdown a:hover{
15+
color: #1E88E5;
16+
background-color: transparent;
17+
transition: all 0.3s ease;
18+
}
19+
20+
121
/* Dark Mode */
222

323
.dark .blue {
424
background-color: #022363 !important;
525
}
626

27+
.dark #canvas {
28+
background-color: #1c1c1c;
29+
}
30+
731
.dark .blue.darken-1 {
832
background-color: #01143b !important;
933
}
@@ -39,19 +63,6 @@
3963
color: white !important;
4064
}
4165

42-
.dark .dropdown-content li > a {
43-
background-color: #1c1c1c;
44-
color: #3fe0d1;
45-
}
46-
47-
.dark .dropdown-content li > a:hover {
48-
color: #252525;
49-
}
50-
51-
.dark .dropdown-content {
52-
background-color: #1c1c1c;
53-
}
54-
5566
.dark .language-link {
5667
color: #fff;
5768
}
@@ -68,21 +79,31 @@
6879
.dark #search,
6980
#helpfulSearch,
7081
.ui-autocomplete {
71-
background-color: #1c1c1c;
72-
color: #fff;
82+
background-color: #1c1c1c !important;
83+
color: #fff !important;
7384
}
7485

7586
.dark .ui-autocomplete li:hover {
76-
background-color: #225a91;
87+
background-color: #225a91 !important;
7788
}
7889

7990
.dark #helpfulSearchDiv {
80-
background-color: transparent;
91+
background-color: transparent !important;
8192
}
8293

8394
.dark #crossButton {
8495
color: #fff;
8596
}
8697

98+
.dark #chooseKeyDiv {
99+
background: #333;
100+
}
101+
102+
.dark #movable {
103+
background: #333;
104+
color: white;
105+
}
106+
107+
87108

88109
/* Your Custom Theme can go here if you don't want to modify the existing dark mode */

0 commit comments

Comments
 (0)