- Introduced a new function `quoteMarkdown` to format task comments with markdown quotes for better readability. - Updated the `buildCommentNotificationMessage` to utilize `quoteMarkdown`, ensuring comments are displayed correctly. - Refactored member role detection across multiple services to use `isLeadMember` for consistency and clarity in identifying team leads. - Enhanced various components to improve handling of team member roles, ensuring accurate representation in UI and logic. - Adjusted tests to reflect changes in comment formatting and member role checks, improving overall reliability.
20 lines
588 B
TypeScript
20 lines
588 B
TypeScript
/** Preset role options shown in role selectors (Add Member, Create Team, Role Editor). */
|
|
export const PRESET_ROLES = [
|
|
'architect',
|
|
'reviewer',
|
|
'developer',
|
|
'qa',
|
|
'researcher',
|
|
'docs',
|
|
'auditor',
|
|
'optimizer',
|
|
] as const;
|
|
|
|
/** Sentinel value for "custom role" in select dropdowns. */
|
|
export const CUSTOM_ROLE = '__custom__';
|
|
|
|
/** Sentinel value for "no role" in select dropdowns. */
|
|
export const NO_ROLE = '__none__';
|
|
|
|
/** Roles that cannot be assigned manually (reserved for system use). */
|
|
export const FORBIDDEN_ROLES = new Set(['lead', 'team-lead', 'orchestrator']);
|