forked from aws-samples/amplify-next-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from cabcookie:improve-person-mention
Detailseite für Aktivität optimiert
- Loading branch information
Showing
6 changed files
with
126 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,43 @@ | ||
import { useProjectsContext } from "@/api/ContextProjects"; | ||
import { Meeting } from "@/api/useMeetings"; | ||
import { FC } from "react"; | ||
import ActivityComponent from "../activities/activity"; | ||
import TaskBadge from "../task/TaskBadge"; | ||
import DefaultAccordionItem from "../ui-elements/accordion/DefaultAccordionItem"; | ||
|
||
type MeetingActivityListProps = { | ||
meeting: Meeting; | ||
}; | ||
|
||
const MeetingActivityList: FC<MeetingActivityListProps> = ({ meeting }) => | ||
meeting.activities.length === 0 ? ( | ||
const MeetingActivityList: FC<MeetingActivityListProps> = ({ meeting }) => { | ||
const { getProjectNamesByIds } = useProjectsContext(); | ||
|
||
return meeting.activities.length === 0 ? ( | ||
<div className="mx-2 md:mx-4 mt-8 font-semibold text-sm text-muted-foreground md:text-center"> | ||
Select a project to start taking notes! | ||
</div> | ||
) : ( | ||
meeting.activities.map((a) => ( | ||
<ActivityComponent | ||
<DefaultAccordionItem | ||
value={a.id} | ||
key={a.id} | ||
activityId={a.id} | ||
showMeeting={false} | ||
notesNotInAccordion | ||
/> | ||
triggerTitle="Meeting notes" | ||
badge={ | ||
<TaskBadge | ||
hasOpenTasks={a.hasOpenTasks} | ||
hasClosedTasks={!!a.closedTasks?.length} | ||
/> | ||
} | ||
triggerSubTitle={`Projects: ${getProjectNamesByIds(a.projectIds)}`} | ||
> | ||
<ActivityComponent | ||
activityId={a.id} | ||
showMeeting={false} | ||
notesNotInAccordion | ||
/> | ||
</DefaultAccordionItem> | ||
)) | ||
); | ||
}; | ||
|
||
export default MeetingActivityList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Crash in Hauptmenü behoben (Version :VERSION) | ||
# Detailseite für Aktivität optimiert (Version :VERSION) | ||
|
||
- Wenn man im Hauptmenü zunächst einen Suchbegriff eingegeben und diesen dann gelöscht hatte, ist die Applikation abgestürzt. Das passiert nun nicht mehr. | ||
- Die Notizen aus der Aktivität werden nun direkt angezeigt, ohne dass erst ein Accordion geöffnet werden muss. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters