Skip to content
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
531b385
add initial db setup
vtotalova Nov 25, 2025
6871c30
remove redundant fields in db
vtotalova Dec 2, 2025
5e76c47
Merge branch 'main' into feature/db-setup
vtotalova Dec 2, 2025
377fab2
fix CI and code quality issues
vtotalova Dec 2, 2025
f114fa8
remove manually migration, update db setup
vtotalova Dec 3, 2025
f8c2983
Merge branch 'main' into feature/db-setup
vtotalova Dec 3, 2025
2b86a16
check resolved
vtotalova Dec 3, 2025
515d35f
Merge branch 'feature/db-setup' of github.com:ls1intum/memo into feat…
vtotalova Dec 3, 2025
68bf56e
feat: enhance database schema and migration system
vtotalova Dec 3, 2025
5c538fe
style: fix prettier formatting
vtotalova Dec 3, 2025
0d2d8dd
docs: clarify Prisma Studio usage and DATABASE_URL
vtotalova Dec 9, 2025
1b6cb4f
docs: clarify database setup and .env file usage
vtotalova Dec 9, 2025
626561c
remove unnecessary code
vtotalova Dec 9, 2025
9b19b68
fix npm Ci issues
vtotalova Dec 9, 2025
1bffd0d
update doc
vtotalova Dec 9, 2025
c7fe36a
fix CI issued
vtotalova Dec 9, 2025
a7f4c7f
fix inconsistency between prisma clinet and db setup file
vtotalova Dec 10, 2025
abb04f0
Update prisma/migrations/20251203125815_init/migration.sql
vtotalova Dec 10, 2025
791f7f3
Update prisma/schema.prisma
vtotalova Dec 10, 2025
555c4b7
set up domain core
vtotalova Dec 10, 2025
b3f6bc6
Merge branch 'feature/db-setup' into feature/setup-domain-core-db-com…
vtotalova Dec 10, 2025
0fefd69
fix code formatting issues
vtotalova Dec 10, 2025
1e768ae
fix: export RelationshipType from domain core and update imports
vtotalova Dec 10, 2025
1df11b0
Merge branch 'main' into feature/setup-domain-core-db-communication
vtotalova Dec 10, 2025
ab4d9f2
move prisma build stage upper
vtotalova Dec 10, 2025
3e271ef
Merge branch 'feature/setup-domain-core-db-communication' of github.c…
vtotalova Dec 10, 2025
89eae3f
cosmetic minor changes
vtotalova Dec 15, 2025
c0da752
fix test code issues
vtotalova Dec 15, 2025
90e8429
feat: streamline design and update page content
markstockhausen Dec 16, 2025
375b283
style: fix invalid Tailwind spacing and replace remote images with pl…
markstockhausen Dec 16, 2025
8fb7df0
Merge remote-tracking branch 'origin/feature/landing-about-design-upd…
markstockhausen Dec 16, 2025
e63ea1b
feat: add database seeding with demo user and competencies
markstockhausen Dec 16, 2025
4f3e3e7
feat: refine session flow with competency fetching, tooltips, badges,…
markstockhausen Dec 16, 2025
71902f4
feat: impement competency relation adding and undo functionality
markstockhausen Dec 16, 2025
b4fa25d
feat: enhance competency relation adding and add undo functionality
markstockhausen Dec 16, 2025
37acd88
chore: enhance code style
markstockhausen Dec 16, 2025
b43eb04
chore: fix session suspense and lint issues
markstockhausen Dec 16, 2025
7c2cd5e
chore: implement AI suggestions
markstockhausen Dec 16, 2025
0eb5393
feat: overhaul session UI
markstockhausen Dec 22, 2025
eed60ec
style: conform to Prettier formatting
markstockhausen Dec 22, 2025
7a6ca7d
chore: implement AI suggestions
markstockhausen Dec 22, 2025
69d736d
style: adjust spacing and text
markstockhausen Dec 22, 2025
c43a95a
style: update selection indicator
markstockhausen Dec 22, 2025
b3b1009
feat: rearrange layout and improve spacing of mapping session
markstockhausen Dec 23, 2025
cd7a6ed
chore: implement AI suggestions
markstockhausen Dec 23, 2025
98002a3
feat: update reload behaviour, add relation type, update layout
markstockhausen Jan 10, 2026
2315a42
style: refine UI typography
markstockhausen Jan 10, 2026
9385dc2
chore: implement AI suggestions
markstockhausen Jan 10, 2026
258e2ed
style: update 'Add Relation' button
markstockhausen Jan 11, 2026
6502253
Merge branch 'main' into feature/session-overhaul
markstockhausen Jan 12, 2026
30932ef
style: fix styling issues
markstockhausen Jan 12, 2026
2b75b44
refactor: remove server action overhead
markstockhausen Jan 12, 2026
38262ee
Update prisma/schema.prisma
markstockhausen Jan 12, 2026
5de60b0
feat: implement AI suggestions
markstockhausen Jan 12, 2026
b3e659b
style: conform to Prettier formatting
markstockhausen Jan 12, 2026
e539b30
styling: update spacing
markstockhausen Jan 12, 2026
aa50832
refactor: use named React imports in tooltip component
markstockhausen Jan 12, 2026
dd843a8
feat: extend mapping modes and refactor code
markstockhausen Jan 13, 2026
6975f9e
feat: implement AI suggestions
markstockhausen Jan 13, 2026
3653049
Merge branch 'main' into feature/session-learning-resources
markstockhausen Jan 13, 2026
d323953
style: conform to Prettier formatting
markstockhausen Jan 13, 2026
30195eb
style: refactor code
markstockhausen Jan 13, 2026
736e13a
style: conform to Prettier formatting
markstockhausen Jan 13, 2026
e2236bb
refactor: update code structure
markstockhausen Jan 13, 2026
da87ebc
refactor: remove unused code
markstockhausen Jan 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion app/actions/competency_resource_links.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
'use server';

import { competencyResourceLinkService } from '@/domain_core/services/competency_resource_link';
import { ResourceMatchType } from '@/domain_core/model/domain_model';

export async function createCompetencyResourceLinkAction(formData: FormData) {
try {
const competencyId = formData.get('competencyId') as string | null;
const resourceId = formData.get('resourceId') as string | null;
const userId = formData.get('userId') as string | null;
const matchType = formData.get('matchType') as ResourceMatchType | null;

if (!competencyId || !resourceId || !userId) {
if (!competencyId || !resourceId || !userId || !matchType) {
return { success: false, error: 'All fields are required' };
}

// Validate matchType is a valid enum value
const validMatchTypes: ResourceMatchType[] = [
'UNRELATED',
'WEAK',
'GOOD_FIT',
'PERFECT_MATCH',
];
if (!validMatchTypes.includes(matchType)) {
return { success: false, error: 'Invalid match type' };
}

const link = await competencyResourceLinkService.createLink({
competencyId,
resourceId,
userId,
matchType,
});

return { success: true, link };
Expand Down
15 changes: 15 additions & 0 deletions app/actions/learning_resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,18 @@ export async function deleteLearningResourceAction(id: string) {
};
}
}

export async function getRandomLearningResourceAction() {
try {
const resource = await learningResourceService.getRandomLearningResource();
return { success: true, resource };
} catch (error) {
return {
success: false,
error:
error instanceof Error
? error.message
: 'Failed to fetch random learning resource',
};
}
}
23 changes: 23 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,26 @@
@apply bg-background text-foreground;
}
}

@layer utilities {
.scrollbar-thin {
scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
background-color: rgb(203 213 225);
border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
background-color: rgb(148 163 184);
}
}
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export default function RootLayout({
enableSystem
disableTransitionOnChange
>
<div className="relative min-h-screen bg-gradient-to-br from-[#d7e3ff] via-[#f3f5ff] to-[#e8ecff] dark:bg-slate-950">
<div className="relative min-h-screen flex flex-col bg-gradient-to-br from-[#d7e3ff] via-[#f3f5ff] to-[#e8ecff] dark:bg-slate-950">
<div className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_top,_rgba(255,255,255,0.9),_rgba(237,242,255,0.55))]" />
<Navbar />
{children}
<div className="flex-1 flex flex-col w-full">{children}</div>
<Footer />
</div>
</ThemeProvider>
Expand Down
12 changes: 2 additions & 10 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Page() {
<span className="bg-gradient-to-r from-[#0a4da2] via-[#5538d1] to-[#9b5dfa] bg-clip-text text-transparent">
transparent competency benchmark
</span>
. Let’s build it together.
. Let&apos;s build it together.
</h1>
<p className="max-w-4xl text-xl font-medium leading-relaxed text-slate-1000">
Memo turns collaborative competency mapping into an open
Expand Down Expand Up @@ -92,15 +92,7 @@ export default function Page() {
<br />
Competency-Based Recommenders
</h2>
<p
className="text-lg leading-relaxed text-slate-700"
style={{
display: '-webkit-box',
WebkitLineClamp: 2,
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
}}
>
<p className="text-lg leading-relaxed text-slate-700 line-clamp-2">
Competency-based recommenders use{' '}
<span className="font-semibold text-slate-900">
competency networks
Expand Down
Loading
Loading