feat: Multiple Features, Accessibility, Security, and UX Improvements #59

Merged
naomi merged 27 commits from feat/polish into main 2026-02-20 01:51:25 -08:00
Showing only changes of commit 808df775a4 - Show all commits
+5 -5
View File
@@ -89,7 +89,7 @@ export class ActivityService {
return suggestions.map((suggestion) => ({
id: `suggestion-${suggestion.id}`,
type: "SUGGESTION" as ActivityType,
type: "SUGGESTION" as const,
user: suggestion.user as ActivityUser,
entityType: suggestion.entityType,
suggestionTitle: suggestion.title,
@@ -139,7 +139,7 @@ export class ActivityService {
);
return {
id: `like-${like.id}`,
type: "LIKE" as ActivityType,
type: "LIKE" as const,
user: like.user as ActivityUser,
entityType: like.entityType,
entityId: like.entityId,
@@ -229,7 +229,7 @@ export class ActivityService {
return {
id: `comment-${comment.id}`,
type: "COMMENT" as ActivityType,
type: "COMMENT" as const,
user: comment.user as ActivityUser,
entityType,
entityId,
@@ -282,10 +282,10 @@ export class ActivityService {
const achievement = ACHIEVEMENTS[ua.achievementKey];
return {
id: `achievement-${ua.id}`,
type: "ACHIEVEMENT" as ActivityType,
type: "ACHIEVEMENT" as const,
user: ua.user as ActivityUser,
achievementKey: ua.achievementKey,
achievementName: achievement.name,
achievementName: achievement.title,
achievementIcon: achievement.icon,
achievementPoints: achievement.points,
createdAt: ua.earnedAt!,