Skip to content

Commit 7268657

Browse files
authored
Merge branch 'development' into sphurthy-fix-scrolling-in-all-events-page
2 parents decc9cb + 1232833 commit 7268657

1,238 files changed

Lines changed: 125222 additions & 43126 deletions

File tree

Some content is hidden

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

.github/workflows/pull_request_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ jobs:
5353
- name: Install Dependencies
5454
run: yarn install --frozen-lockfile
5555
- name: Run Unit Tests for Changed Files Only
56-
run: yarn run test:changed
56+
run: NODE_OPTIONS="--max-old-space-size=4096" yarn run test:changed
5757
- name: Run Lint
5858
run: yarn run lint

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: yarn install
2323

2424
- name: Run tests
25-
run: yarn test
25+
run: NODE_OPTIONS="--max-old-space-size=4096" yarn test
2626

2727
- name: Upload test results
2828
if: failure()

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# dependencies
44
/node_modules
5-
package-lock.json
65
# testing
76
/coverage
87
*.code-snippets
@@ -28,9 +27,9 @@ yarn-error.log*
2827
/.idea
2928

3029
.vscode/launch.json
31-
.vscode/settings.json
3230

3331
**\ **
3432

35-
/public/tinymce/
36-
package-lock.json
33+
/public/tinymce/Community/
34+
Community/
35+
public/tinymce/

.husky-disabled/pre-commit

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

.husky/pre-commit

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
#!/bin/sh
22
# Load nvm if available
3-
# Try to load nvm (non-blocking)
43
export NVM_DIR="$HOME/.nvm"
5-
6-
if [ -s "$NVM_DIR/nvm.sh" ]; then
7-
. "$NVM_DIR/nvm.sh"
8-
nvm use >/dev/null 2>&1
9-
echo "Using Node via nvm"
10-
else
11-
echo "nvm not available, using system Node"
4+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5+
# Use Node 20 if available (or install if needed)
6+
if [ -f .nvmrc ]; then
7+
nvm use 20 2>/dev/null || nvm install 20 && nvm use 20
128
fi
139

1410
echo ""
1511
echo "🛡️ Husky pre-commit hook triggered"
1612

13+
if git rev-parse -q --verify MERGE_HEAD >/dev/null 2>&1; then
14+
echo "ℹ️ Merge commit detected. Skipping lint-staged auto-fix on the merged file set."
15+
exit 0
16+
fi
17+
1718
# Block plain .css files (except .module.css and index.css)
1819
for file in $(git diff --cached --name-only --diff-filter=ACM | grep '\.css$'); do
1920
case "$file" in
@@ -44,4 +45,4 @@ if git diff --cached --name-only | grep -qE '\.(js|jsx|ts|tsx|css)$'; then
4445
fi
4546
else
4647
echo "ℹ️ No JS/TS/CSS files to lint. Skipping lint-staged."
47-
fi
48+
fi

.husky/pre-push

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,71 @@
33
export NVM_DIR="$HOME/.nvm"
44
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
55
# Use Node 20 if available (or install if needed)
6-
if [ -f .nvmrc ]; then
6+
if command -v nvm >/dev/null 2>&1 && [ -f .nvmrc ]; then
77
nvm use 20 2>/dev/null || nvm install 20 && nvm use 20
88
fi
99

10-
. "$(dirname "$0")/_/husky.sh"
10+
if git rev-parse --abbrev-ref @{upstream} >/dev/null 2>&1; then
11+
changed_files=$(git diff --name-only --diff-filter=d @{upstream}...HEAD)
12+
else
13+
echo "ℹ️ No upstream branch set. Skipping pre-push checks."
14+
exit 0
15+
fi
16+
17+
# Skip checks if any outgoing commit is a merge commit
18+
if git log @{upstream}..HEAD --merges --oneline | grep -q .; then
19+
echo "ℹ️ Outgoing commits include a merge commit. Skipping lint/test checks."
20+
exit 0
21+
fi
22+
23+
if [ -z "$changed_files" ]; then
24+
echo "ℹ️ No outgoing changes to validate. Skipping pre-push checks."
25+
exit 0
26+
fi
27+
28+
# Skip checks if any outgoing commit is a merge commit
29+
if git log @{upstream}..HEAD --merges --oneline | grep -q .; then
30+
echo "ℹ️ Outgoing commits include a merge commit. Skipping lint/test checks."
31+
exit 0
32+
fi
33+
34+
if ! printf '%s\n' "$changed_files" | grep -qvE '^\.husky/'; then
35+
echo "ℹ️ Only Husky hook changes detected. Skipping full test and lint checks."
36+
exit 0
37+
fi
38+
39+
existing_files=$(printf '%s\n' "$changed_files" | while IFS= read -r f; do
40+
[ -n "$f" ] && [ -e "$f" ] && printf '%s\n' "$f"
41+
done)
42+
43+
js_files=$(printf '%s\n' "$existing_files" | grep -E '\.(js|jsx|ts|tsx)$' || true)
44+
style_files=$(printf '%s\n' "$existing_files" | grep -E '\.(css|scss|sass)$' || true)
45+
46+
test_status=0
47+
lint_status=0
48+
style_status=0
1149
12-
echo "🧪 Running tests before push..."
13-
npm run test -- --bail=1
14-
test_status=$?
50+
if [ -n "$js_files" ]; then
51+
echo "🧪 Running related tests before push..."
52+
echo "$js_files" | tr ' ' '\n' | xargs npx vitest related --run
53+
test_status=$?
54+
55+
echo "🧹 Running ESLint on changed files before push..."
56+
echo "$js_files" | tr ' ' '\n' | xargs npx eslint
57+
lint_status=$?
58+
fi
59+
60+
if [ -n "$style_files" ]; then
61+
echo "🎨 Running Stylelint on changed files before push..."
62+
echo "$style_files" | tr ' ' '\n' | xargs npx stylelint
63+
style_status=$?
64+
fi
1565
16-
echo "🧹 Running lint before push..."
17-
npm run lint
18-
lint_status=$?
1966
2067
# Block push if either fails
21-
if [ $test_status -ne 0 ] || [ $lint_status -ne 0 ]; then
22-
echo "❌ Push blocked: Lint or test failed."
68+
if [ $test_status -ne 0 ] || [ $lint_status -ne 0 ] || [ $style_status -ne 0 ]; then
69+
echo "❌ Push blocked: changed-file validation failed."
2370
exit 1
2471
fi
2572
26-
echo "✅ All checks passed. Proceeding with push..."
73+
echo "✅ All checks passed. Proceeding with push..."

.stylelintrc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@
66
"node_modules/**/*.css"
77
],
88
"rules": {
9-
"no-duplicate-selectors": true,
9+
"no-duplicate-selectors": [true, {
10+
"disallowInList": false
11+
}],
1012
"selector-pseudo-class-no-unknown": [
1113
true,
1214
{ "ignorePseudoClasses": ["global", "local"] }
1315
],
1416
"selector-class-pattern": null,
1517
"selector-id-pattern": null
16-
}
17-
}
18+
},
19+
"overrides": [
20+
{
21+
"files": ["**/*.module.css"],
22+
"rules": {
23+
"no-duplicate-selectors": null
24+
}
25+
}
26+
]
27+
}

.yarnrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Avoid stale persisted package tarballs in CI/Netlify.
2+
cache-folder "/tmp/hgn-yarn-cache"

conflict_cplog.txt

2.81 KB
Binary file not shown.

conflict_finalday.txt

16.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)