Skip to content

Commit 4f2d9c7

Browse files
coodosgrv-saini-20Sahil2004
authored
Feat/charter (#281)
* Merge platforms (#270) * feat: setup control-panel project, added-colors same as eid-wallet * feat: group * fix: separate page added for members * chore: added dummy data and commented the protection on routes for development purposes. * feat: added view participants button. * feat: added participants modal * feat: group * feat: group-charter-manager * feat: added nanoid * feat: added context menu and the owner or admin status * feat: added context menu functionality on frontend. * fix: lock file * fix: added a edit modal * chore: renamed to member. * fix: responsiveness * fix: responsiveness * feat: added group settings page. * fix: role based editing * feat: show info and not allow edits when not a group admin or owner. * fix: user role based edit in group info * fix: edit image with pencil icon * fix: added a text area * feat: new group functionality and textarea fixed * feat: new group functionality and textarea fixed * feat: added close icon on dialog boxes for accessibility improvement. * feat: removed save and close button on group settings for non admin or non owner users. * feat: added add members button. * feat: added add members component. * feat: added relevant checks. * feat: added icons next to owner and admin. * feat: added new chat button. * chore: fixed squigglies. * feat: added new chat flow. * chore: trimed down the non-required code and made a new next js project group charter manager. * feat: added working 404 page with some changes. * feat: fixed and added /dashboard route * chore: upgraded tailwind v3 to v4 in old group charter * chore: copied old index.css to new global.css * chore: added missing dependencies for tailwindcss * chore: upgraded new charter app's whole codebase to tailwind v4 * chore: moved dashboard page to correct route * feat: added new charter page * feat: added single charter page. * feat: added /charter/:id/edit route * chore: removed old charter codebase. * feat: eVoting * chore: project moved to platforms * chore: created a new next app and moved the older to the old folder * chore: moved the old to old dir. * chore: migrated old project to tailwindcss v4 * feat: added components and other stuff to the new proj. * feat: added the not found page. * feat: added homepage. * feat: added create page. * feat: added vote/id page. * chore: remove the old evoting proj. * feat: add a button, modal for sign charter * fix: lock file * fix: lock file --------- Co-authored-by: Sahil Garg <[email protected]> Co-authored-by: Merul Dhiman <[email protected]> * chore: added group manifest spinup logic * chore: group charter creation fixed * fix: loading state on auth * feat: group creation works * feat: chat bubbles * feat: group capabilities * chore: flip isOwn * chore: charter to socials sync * feat: charter CRUD * chore: add cerberus * fix: cerberus message trigger * chore: change migration * chore: bump max retries and exponention backoff * chore: delete useless files * chore: change resolve * chore: change to fetch * chore: fix evaul-core --------- Co-authored-by: Gourav Saini <[email protected]> Co-authored-by: Sahil Garg <[email protected]>
1 parent a5ed291 commit 4f2d9c7

File tree

145 files changed

+9755
-3069
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

+9755
-3069
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ yarn-error.log*
4040
# Misc
4141
.DS_Store
4242
*.pem
43-
44-
/db/data

db.compose.yml

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

db/.gitinclude

Whitespace-only changes.

forward-local-net.sh

Lines changed: 61 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,75 @@
11
#!/bin/bash
22

3-
# Find Minikube IP
4-
MINIKUBE_IP=$(minikube ip)
3+
set -euo pipefail
54

6-
# Find all NodePort services with their ports
7-
echo "[INFO] Fetching all NodePort services..."
5+
echo "[INFO] Getting NodePort services..."
86
NODEPORTS=$(kubectl get svc --all-namespaces \
9-
-o jsonpath='{range .items[?(@.spec.type=="NodePort")]}{.metadata.namespace} {.metadata.name} {.spec.ports[*].nodePort}{"\n"}{end}')
7+
-o jsonpath='{range .items[?(@.spec.type=="NodePort")]}{.metadata.namespace}{" "}{.metadata.name}{" "}{.spec.ports[*].nodePort}{"\n"}{end}')
8+
9+
if [[ -z "$NODEPORTS" ]]; then
10+
echo "[INFO] No NodePort services found."
11+
exit 0
12+
fi
13+
14+
echo ""
15+
echo "[INFO] Found NodePort services:"
16+
echo "$NODEPORTS"
17+
echo ""
18+
19+
echo "$NODEPORTS" | while IFS= read -r line; do
20+
[[ -z "$line" ]] && continue
1021

11-
# Loop through services and ports
12-
while read -r line; do
1322
NAMESPACE=$(echo "$line" | awk '{print $1}')
1423
NAME=$(echo "$line" | awk '{print $2}')
1524
PORTS=$(echo "$line" | cut -d' ' -f3-)
1625

26+
echo "────────────────────────────────────────────"
27+
echo "[SERVICE] $NAMESPACE/$NAME (NodePort(s): $PORTS)"
28+
1729
for PORT in $PORTS; do
18-
echo "[FORWARDING] $NAMESPACE/$NAME on port $PORT"
30+
echo "[INFO] Starting tunnel for $NAME (NodePort: $PORT)..."
31+
32+
# Launch minikube tunnel in background and capture output
33+
TMPFILE=$(mktemp)
34+
(minikube service "$NAME" -n "$NAMESPACE" --url >"$TMPFILE") &
35+
TUNNEL_PID=$!
36+
37+
echo "[INFO] Waiting for tunnel to start..."
38+
i=0
39+
while ! grep -q "http://" "$TMPFILE"; do
40+
sleep 0.2
41+
i=$((i + 1))
42+
if [[ $i -gt 50 ]]; then
43+
echo " [ERROR] Timed out waiting for tunnel to start"
44+
kill $TUNNEL_PID >/dev/null 2>&1 || true
45+
rm -f "$TMPFILE"
46+
continue 2
47+
fi
48+
done
1949

20-
# Check if socat already listening
21-
if lsof -i TCP:$PORT >/dev/null; then
22-
echo " [SKIP] Port $PORT already in use locally"
50+
RAW_URL=$(cat "$TMPFILE")
51+
TUNNELED_PORT=$(echo "$RAW_URL" | sed -E 's|.*:([0-9]+)$|\1|')
52+
53+
echo "[DEBUG] RAW_URL = '$RAW_URL'"
54+
echo "[INFO] Minikube is forwarding to: $RAW_URL"
55+
echo "[INFO] We will bind localhost:$PORT → localhost:$TUNNELED_PORT"
56+
57+
if lsof -iTCP:$PORT >/dev/null 2>&1; then
58+
echo " [SKIP] Port $PORT already in use locally"
2359
else
24-
# Run socat in background
25-
socat TCP4-LISTEN:$PORT,fork TCP4:$MINIKUBE_IP:$PORT &
26-
echo " [OK] Forwarded port $PORT from Minikube to local"
60+
echo "[INFO] Launching socat..."
61+
nohup socat TCP4-LISTEN:$PORT,fork,reuseaddr TCP4:127.0.0.1:$TUNNELED_PORT \
62+
>/tmp/socat-tunnel-$PORT.log 2>&1 &
63+
64+
SOCAT_PID=$!
65+
echo "[OK] socat launched with PID $SOCAT_PID"
66+
echo "[INFO] Log file: /tmp/socat-tunnel-$PORT.log"
2767
fi
68+
69+
rm -f "$TMPFILE"
70+
echo "[INFO] Leaving Minikube tunnel running in background (PID: $TUNNEL_PID)"
2871
done
29-
done <<<"$NODEPORTS"
72+
done
73+
74+
echo ""
75+
echo "[DONE] All NodePorts are now mapped to localhost properly."

infrastructure/control-panel/biome.json

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

infrastructure/control-panel/project.inlang/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrastructure/eid-wallet/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"@tauri-apps/api": "^2",
2828
"@tauri-apps/plugin-barcode-scanner": "^2.2.0",
2929
"@tauri-apps/plugin-biometric": "^2.2.0",
30-
"@tauri-apps/plugin-deep-link": "^2.4.1",
3130
"@tauri-apps/plugin-opener": "^2",
3231
"@tauri-apps/plugin-store": "^2.2.0",
3332
"@veriff/incontext-sdk": "^2.4.0",

infrastructure/eid-wallet/src-tauri/Cargo.lock

Lines changed: 1 addition & 102 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/eid-wallet/src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ thiserror = { version = "2.0.11" }
3333
tauri-plugin-barcode-scanner = "2"
3434
tauri-plugin-biometric = "2.2.0"
3535
tauri-plugin-crypto-hw = "0.1.0"
36-
tauri-plugin-deep-link = { git = "https://github.com/sosweetham/plugins-workspace", rev = "0668697" }
36+

infrastructure/eid-wallet/src-tauri/Info.ios.plist

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,5 @@
1212
<key>NSAllowsArbitraryLoads</key>
1313
<true/>
1414
</dict>
15-
<key>CFBundleURLTypes</key>
16-
<array>
17-
<dict>
18-
<key>CFBundleURLName</key>
19-
<string>foundation.metastate.eid-wallet</string>
20-
<key>CFBundleURLSchemes</key>
21-
<array>
22-
<string>w3ds</string>
23-
</array>
24-
</dict>
25-
</array>
2615
</dict>
2716
</plist>

0 commit comments

Comments
 (0)