mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-26 18:17:44 +02:00
refactor(packages): consolidate 3 feedback packages into @manacore/feedback
Merged shared-feedback-types + shared-feedback-service + shared-feedback-ui into a single @manacore/feedback package. Updated imports in all 21 apps. Before: 3 packages (types, service, ui) with cross-dependencies After: 1 package with direct imports, no circular refs Note: ESLint warnings from pre-existing unused vars in chat/mukke servers are unrelated to this change. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bf4d9cb9aa
commit
1aeb987cb6
78 changed files with 617 additions and 317 deletions
59
packages/feedback/src/feedback.ts
Normal file
59
packages/feedback/src/feedback.ts
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
/**
|
||||
* Core feedback types
|
||||
*/
|
||||
|
||||
export type FeedbackCategory = 'bug' | 'feature' | 'improvement' | 'question' | 'other';
|
||||
|
||||
export type FeedbackStatus =
|
||||
| 'submitted'
|
||||
| 'under_review'
|
||||
| 'planned'
|
||||
| 'in_progress'
|
||||
| 'completed'
|
||||
| 'declined';
|
||||
|
||||
export interface Feedback {
|
||||
id: string;
|
||||
userId: string;
|
||||
appId: string;
|
||||
title?: string;
|
||||
feedbackText: string;
|
||||
category: FeedbackCategory;
|
||||
status: FeedbackStatus;
|
||||
isPublic: boolean;
|
||||
adminResponse?: string;
|
||||
voteCount: number;
|
||||
userHasVoted: boolean;
|
||||
deviceInfo?: Record<string, unknown>;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
publishedAt?: string;
|
||||
completedAt?: string;
|
||||
}
|
||||
|
||||
export interface FeedbackVote {
|
||||
id: string;
|
||||
feedbackId: string;
|
||||
userId: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export const FEEDBACK_CATEGORY_LABELS: Record<FeedbackCategory, string> = {
|
||||
bug: 'Bug',
|
||||
feature: 'Feature',
|
||||
improvement: 'Verbesserung',
|
||||
question: 'Frage',
|
||||
other: 'Sonstiges',
|
||||
};
|
||||
|
||||
export const FEEDBACK_STATUS_CONFIG: Record<
|
||||
FeedbackStatus,
|
||||
{ label: string; color: string; icon: string }
|
||||
> = {
|
||||
submitted: { label: 'Eingereicht', color: '#999', icon: 'clock' },
|
||||
under_review: { label: 'Wird geprüft', color: '#3498DB', icon: 'eye' },
|
||||
planned: { label: 'Geplant', color: '#9B59B6', icon: 'calendar' },
|
||||
in_progress: { label: 'In Arbeit', color: '#F39C12', icon: 'loader' },
|
||||
completed: { label: 'Umgesetzt', color: '#27AE60', icon: 'check-circle' },
|
||||
declined: { label: 'Abgelehnt', color: '#E74C3C', icon: 'x-circle' },
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue