Skip to content

Commit 25860c2

Browse files
committed
Merge remote-tracking branch 'origin/main' into chore/onboarding-projects-script
2 parents eeaeb6f + c1218f2 commit 25860c2

29 files changed

Lines changed: 2705 additions & 453 deletions

.github/workflows/backend-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696

9797
- name: Install dependencies
9898
if: steps.changes.outputs.python_changed == 'true'
99-
run: uv sync --extra dev --frozen
99+
run: uv sync --group dev --frozen
100100

101101
- name: Check Python linting and formatting
102102
if: steps.changes.outputs.python_changed == 'true'

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,8 @@ services/libs/tinybird/.diff_tmp
197197
.cursor/rules/*.local.mdc
198198

199199
# claude code rules
200-
CLAUDE.md
200+
CLAUDE.md
201+
202+
# git integration test repositories & output
203+
services/apps/git_integration/src/test/repos/
204+
services/apps/git_integration/src/test/outputs/custom/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE "activityTypes" DROP COLUMN "label";
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
ALTER TABLE "activityTypes" ADD COLUMN "label" VARCHAR(300) DEFAULT NULL;
2+
3+
-- SQL UPDATE statements for activityTypes table
4+
-- Generated on: 2025-10-09T15:38:09.528Z
5+
6+
-- Platform: GitHub
7+
UPDATE "activityTypes" SET "label" = 'Authored a commit' WHERE "platform" = 'github' AND "activityType" = 'authored-commit';
8+
UPDATE "activityTypes" SET "label" = 'Closed a pull request' WHERE "platform" = 'github' AND "activityType" = 'pull_request-closed';
9+
UPDATE "activityTypes" SET "label" = 'Opened a pull request' WHERE "platform" = 'github' AND "activityType" = 'pull_request-opened';
10+
UPDATE "activityTypes" SET "label" = 'Commented on a pull request' WHERE "platform" = 'github' AND "activityType" = 'pull_request-comment';
11+
UPDATE "activityTypes" SET "label" = 'Merged a pull request' WHERE "platform" = 'github' AND "activityType" = 'pull_request-merged';
12+
UPDATE "activityTypes" SET "label" = 'Requested a review for a pull request' WHERE "platform" = 'github' AND "activityType" = 'pull_request-review-requested';
13+
UPDATE "activityTypes" SET "label" = 'Commented on a pull request review thread' WHERE "platform" = 'github' AND "activityType" = 'pull_request-review-thread-comment';
14+
UPDATE "activityTypes" SET "label" = 'Closed an issue' WHERE "platform" = 'github' AND "activityType" = 'issues-closed';
15+
UPDATE "activityTypes" SET "label" = 'Opened an issue' WHERE "platform" = 'github' AND "activityType" = 'issues-opened';
16+
UPDATE "activityTypes" SET "label" = 'Commented on an issue' WHERE "platform" = 'github' AND "activityType" = 'issue-comment';
17+
UPDATE "activityTypes" SET "label" = 'Started a discussion' WHERE "platform" = 'github' AND "activityType" = 'discussion-started';
18+
UPDATE "activityTypes" SET "label" = 'Commented on a discussion' WHERE "platform" = 'github' AND "activityType" = 'discussion-comment';
19+
20+
-- Platform: Git
21+
UPDATE "activityTypes" SET "label" = 'Authored a commit' WHERE "platform" = 'git' AND "activityType" = 'authored-commit';
22+
UPDATE "activityTypes" SET "label" = 'Reviewed a commit' WHERE "platform" = 'git' AND "activityType" = 'reviewed-commit';
23+
UPDATE "activityTypes" SET "label" = 'Tested a commit' WHERE "platform" = 'git' AND "activityType" = 'tested-commit';
24+
UPDATE "activityTypes" SET "label" = 'Co-authored a commit' WHERE "platform" = 'git' AND "activityType" = 'co-authored-commit';
25+
UPDATE "activityTypes" SET "label" = 'Informed a commit' WHERE "platform" = 'git' AND "activityType" = 'informed-commit';
26+
UPDATE "activityTypes" SET "label" = 'Influenced a commit' WHERE "platform" = 'git' AND "activityType" = 'influenced-commit';
27+
UPDATE "activityTypes" SET "label" = 'Approved a commit' WHERE "platform" = 'git' AND "activityType" = 'approved-commit';
28+
UPDATE "activityTypes" SET "label" = 'Committed a commit' WHERE "platform" = 'git' AND "activityType" = 'committed-commit';
29+
UPDATE "activityTypes" SET "label" = 'Reported a commit' WHERE "platform" = 'git' AND "activityType" = 'reported-commit';
30+
UPDATE "activityTypes" SET "label" = 'Resolved a commit' WHERE "platform" = 'git' AND "activityType" = 'resolved-commit';
31+
UPDATE "activityTypes" SET "label" = 'Signed off a commit' WHERE "platform" = 'git' AND "activityType" = 'signed-off-commit';
32+
33+
-- Platform: Gerrit
34+
UPDATE "activityTypes" SET "label" = 'Created a changeset' WHERE "platform" = 'gerrit' AND "activityType" = 'changeset-created';
35+
UPDATE "activityTypes" SET "label" = 'Merged a changeset' WHERE "platform" = 'gerrit' AND "activityType" = 'changeset-merged';
36+
UPDATE "activityTypes" SET "label" = 'Closed a changeset' WHERE "platform" = 'gerrit' AND "activityType" = 'changeset-closed';
37+
UPDATE "activityTypes" SET "label" = 'Abandoned a changeset' WHERE "platform" = 'gerrit' AND "activityType" = 'changeset-abandoned';
38+
UPDATE "activityTypes" SET "label" = 'Created a changeset comment' WHERE "platform" = 'gerrit' AND "activityType" = 'changeset_comment-created';
39+
UPDATE "activityTypes" SET "label" = 'Created a patchset' WHERE "platform" = 'gerrit' AND "activityType" = 'patchset-created';
40+
UPDATE "activityTypes" SET "label" = 'Created a patchset comment' WHERE "platform" = 'gerrit' AND "activityType" = 'patchset_comment-created';
41+
UPDATE "activityTypes" SET "label" = 'Created a patchset approval' WHERE "platform" = 'gerrit' AND "activityType" = 'patchset_approval-created';
42+
43+
-- Platform: GitLab
44+
UPDATE "activityTypes" SET "label" = 'Opened an issue' WHERE "platform" = 'gitlab' AND "activityType" = 'issues-opened';
45+
UPDATE "activityTypes" SET "label" = 'Closed an issue' WHERE "platform" = 'gitlab' AND "activityType" = 'issues-closed';
46+
UPDATE "activityTypes" SET "label" = 'Closed a merge request' WHERE "platform" = 'gitlab' AND "activityType" = 'merge_request-closed';
47+
UPDATE "activityTypes" SET "label" = 'Opened a merge request' WHERE "platform" = 'gitlab' AND "activityType" = 'merge_request-opened';
48+
UPDATE "activityTypes" SET "label" = 'Commented on a merge request review thread' WHERE "platform" = 'gitlab' AND "activityType" = 'merge_request-review-thread-comment';
49+
UPDATE "activityTypes" SET "label" = 'Merged a merge request' WHERE "platform" = 'gitlab' AND "activityType" = 'merge_request-merged';
50+
UPDATE "activityTypes" SET "label" = 'Commented on a merge request' WHERE "platform" = 'gitlab' AND "activityType" = 'merge_request-comment';
51+
UPDATE "activityTypes" SET "label" = 'Commented on an issue' WHERE "platform" = 'gitlab' AND "activityType" = 'issue-comment';
52+
UPDATE "activityTypes" SET "label" = 'Authored a commit' WHERE "platform" = 'gitlab' AND "activityType" = 'authored-commit';
53+
54+
-- Platform: Groups.io
55+
UPDATE "activityTypes" SET "label" = 'Sent a message' WHERE "platform" = 'groupsio' AND "activityType" = 'message';
56+
57+
-- Platform: Confluence
58+
UPDATE "activityTypes" SET "label" = 'Created a page' WHERE "platform" = 'confluence' AND "activityType" = 'page-created';
59+
UPDATE "activityTypes" SET "label" = 'Updated a page' WHERE "platform" = 'confluence' AND "activityType" = 'page-updated';
60+
UPDATE "activityTypes" SET "label" = 'Created a comment' WHERE "platform" = 'confluence' AND "activityType" = 'comment-created';
61+
UPDATE "activityTypes" SET "label" = 'Created an attachment' WHERE "platform" = 'confluence' AND "activityType" = 'attachment-created';
62+
UPDATE "activityTypes" SET "label" = 'Created a blog post' WHERE "platform" = 'confluence' AND "activityType" = 'blogpost-created';
63+
UPDATE "activityTypes" SET "label" = 'Updated a blog post' WHERE "platform" = 'confluence' AND "activityType" = 'blogpost-updated';
64+
UPDATE "activityTypes" SET "label" = 'Attached a file' WHERE "platform" = 'confluence' AND "activityType" = 'attachment';
65+
UPDATE "activityTypes" SET "label" = 'Commented on a page' WHERE "platform" = 'confluence' AND "activityType" = 'comment';
66+
67+
-- Platform: Jira
68+
UPDATE "activityTypes" SET "label" = 'Created an issue' WHERE "platform" = 'jira' AND "activityType" = 'issue-created';
69+
UPDATE "activityTypes" SET "label" = 'Closed an issue' WHERE "platform" = 'jira' AND "activityType" = 'issues-closed';
70+
UPDATE "activityTypes" SET "label" = 'Assigned an issue' WHERE "platform" = 'jira' AND "activityType" = 'issue-assigned';
71+
UPDATE "activityTypes" SET "label" = 'Updated an issue' WHERE "platform" = 'jira' AND "activityType" = 'issue-updated';
72+
UPDATE "activityTypes" SET "label" = 'Created an issue comment' WHERE "platform" = 'jira' AND "activityType" = 'issue-comment-created';
73+
UPDATE "activityTypes" SET "label" = 'Updated an issue comment' WHERE "platform" = 'jira' AND "activityType" = 'issue-comment-updated';
74+
UPDATE "activityTypes" SET "label" = 'Added an attachment to an issue' WHERE "platform" = 'jira' AND "activityType" = 'issue-attachment-added';
75+
76+
-- Platform: Dev.to
77+
UPDATE "activityTypes" SET "label" = 'Commented on a post' WHERE "platform" = 'devto' AND "activityType" = 'comment';
78+
79+
-- Platform: Discord
80+
UPDATE "activityTypes" SET "label" = 'Sent a message' WHERE "platform" = 'discord' AND "activityType" = 'message';
81+
UPDATE "activityTypes" SET "label" = 'Started a thread' WHERE "platform" = 'discord' AND "activityType" = 'thread-started';
82+
UPDATE "activityTypes" SET "label" = 'Sent a message in a thread' WHERE "platform" = 'discord' AND "activityType" = 'thread-message';
83+
84+
-- Platform: Discourse
85+
UPDATE "activityTypes" SET "label" = 'Created a topic' WHERE "platform" = 'discourse' AND "activityType" = 'create-topic';
86+
UPDATE "activityTypes" SET "label" = 'Sent a message in a topic' WHERE "platform" = 'discourse' AND "activityType" = 'message-in-topic';
87+
88+
-- Platform: Hacker News
89+
UPDATE "activityTypes" SET "label" = 'Posted a post' WHERE "platform" = 'hackernews' AND "activityType" = 'post';
90+
UPDATE "activityTypes" SET "label" = 'Commented on a post' WHERE "platform" = 'hackernews' AND "activityType" = 'comment';
91+
92+
-- Platform: LinkedIn
93+
UPDATE "activityTypes" SET "label" = 'Commented on a post' WHERE "platform" = 'linkedin' AND "activityType" = 'comment';
94+
95+
-- Platform: Reddit
96+
UPDATE "activityTypes" SET "label" = 'Posted a post' WHERE "platform" = 'reddit' AND "activityType" = 'post';
97+
UPDATE "activityTypes" SET "label" = 'Commented on a post' WHERE "platform" = 'reddit' AND "activityType" = 'comment';
98+
99+
-- Platform: Slack
100+
UPDATE "activityTypes" SET "label" = 'Sent a message' WHERE "platform" = 'slack' AND "activityType" = 'message';
101+
102+
-- Platform: Stack Overflow
103+
UPDATE "activityTypes" SET "label" = 'Asked a question' WHERE "platform" = 'stackoverflow' AND "activityType" = 'question';
104+
UPDATE "activityTypes" SET "label" = 'Answered a question' WHERE "platform" = 'stackoverflow' AND "activityType" = 'answer';
105+
106+
-- Platform: X/Twitter
107+
UPDATE "activityTypes" SET "label" = 'Used a hashtag' WHERE "platform" = 'twitter' AND "activityType" = 'hashtag';
108+
UPDATE "activityTypes" SET "label" = 'Mentioned a user' WHERE "platform" = 'twitter' AND "activityType" = 'mention';

frontend/src/modules/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import shared from '@/shared/shared-module';
22
import layout from '@/modules/layout/layout-module';
3-
import dashboard from '@/modules/dashboard/dashboard-module';
43
import settings from '@/modules/settings/settings-module';
54
import integration from '@/modules/integration/integration-module';
65
import member from '@/modules/member/member-module';
@@ -14,7 +13,6 @@ import eagleEye from '@/modules/eagle-eye/eagle-eye-module';
1413

1514
const modules: Record<string, any> = {
1615
shared,
17-
dashboard,
1816
settings,
1917
layout,
2018
integration,

frontend/src/modules/layout/components/menu/menu.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
/>
1616
<el-divider v-else class="!mt-1 !mb-0" />
1717
</div>
18-
<lf-menu-link
19-
title="Overview"
20-
icon="gauge-high"
21-
:is-collapsed="isCollapsed"
22-
:to="{ path: '/', query: { projectGroup: selectedProjectGroup?.id } }"
23-
:disabled="!selectedProjectGroup"
24-
/>
2518
<lf-menu-link
2619
title="People"
2720
icon="user-group-simple"

frontend/src/modules/layout/pages/error-page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{ subtitle }}
1414
</div>
1515
<div class="mt-10">
16-
<router-link :to="{ path: '/' }">
16+
<router-link :to="{ path: '/project-groups' }">
1717
<lf-button type="primary" size="medium">
1818
Back to Home
1919
</lf-button>

frontend/src/modules/lf/segments/store/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export default {
277277

278278
if (sendToDashboard) {
279279
router.push({
280-
name: 'dashboard',
280+
name: 'member',
281281
});
282282
}
283283
} else {

frontend/src/router/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import authGuards from '@/middleware/auth';
99
import modules from '@/modules';
1010
import ProgressBar from '@/shared/progress-bar/progress-bar';
1111
import { useLfSegmentsStore } from '@/modules/lf/segments/store';
12-
import { AuthService } from '@/modules/auth/services/auth.service';
1312
import auth from '@/modules/auth';
1413
import navigationGuard from '@/middleware/navigation/navigation-guard';
1514

@@ -19,6 +18,10 @@ import navigationGuard from '@/middleware/navigation/navigation-guard';
1918
* @type {[...*,{redirect: string, path: string}]}
2019
*/
2120
const routes = [
21+
{
22+
path: '',
23+
redirect: '/project-groups',
24+
},
2225
...auth.routes,
2326
...Object.keys(modules)
2427
.filter((key) => Boolean(modules[key].routes))
@@ -31,10 +34,6 @@ const routes = [
3134
return r;
3235
}))
3336
.reduce((a, b) => a.concat(b), []),
34-
{
35-
path: '/',
36-
redirect: '/auth/signin',
37-
},
3837
{ path: '/:catchAll(.*)', redirect: '/404' },
3938
];
4039

services/apps/git_integration/Makefile

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ check_setup:
1818
fi
1919
@if ! uv run ruff --version >/dev/null 2>&1; then \
2020
echo "📦 Installing dev dependencies..."; \
21-
uv sync --extra dev; \
21+
uv sync --group dev; \
2222
fi
2323

2424
##@ 🚀 Setup and installation
@@ -28,7 +28,7 @@ setup: ## Install uv and dev dependencies (only if not already installed)
2828
@if command -v uv >/dev/null 2>&1; then \
2929
echo "✅ uv is already installed at $$(which uv)"; \
3030
echo "📦 Installing dev dependencies..."; \
31-
uv sync --extra dev; \
31+
uv sync --group dev; \
3232
echo "✅ Setup complete"; \
3333
else \
3434
echo "📦 uv is required to:"; \
@@ -45,7 +45,7 @@ setup: ## Install uv and dev dependencies (only if not already installed)
4545
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bashrc; \
4646
export PATH="$$HOME/.cargo/bin:$$PATH"; \
4747
echo "📦 Installing dev dependencies..."; \
48-
uv sync --extra dev; \
48+
uv sync --group dev; \
4949
echo "✅ uv installed and dev dependencies ready"; \
5050
echo "📝 Next steps:"; \
5151
echo " - Restart your terminal or run: source ~/.zshrc"; \
@@ -107,4 +107,19 @@ update_deps: check_setup ## Update all dependencies
107107
lock_deps: check_setup ## Generate/update uv.lock file
108108
@echo "Generating uv.lock file..."
109109
@uv lock
110-
@echo "✅ uv.lock updated"
110+
@echo "✅ uv.lock updated"
111+
112+
##@ 🧪 Testing
113+
114+
test: check_setup ## Run tests (test=file repo=name expected=file)
115+
@echo "🧪 Running tests..."
116+
@TEST_FILE="$(if $(test),src/test/$(test),src/test/)"; \
117+
if [ -n "$(repo)" ]; then \
118+
export TEST_REPO_NAME="$(repo)"; \
119+
echo "📁 Using repository: $(repo)"; \
120+
fi; \
121+
if [ -n "$(expected)" ]; then \
122+
export TEST_EXPECTED_FILE="$(expected)"; \
123+
echo "📄 Using expected output: $(expected)"; \
124+
fi; \
125+
uv run pytest $$TEST_FILE -v

0 commit comments

Comments
 (0)