Skip to content

Commit

Permalink
Merge pull request #77 from cabcookie/staging
Browse files Browse the repository at this point in the history
Optimierung der Inbox
  • Loading branch information
cabcookie authored May 22, 2024
2 parents e1f684e + 955141c commit a45e0cb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api/useInbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const fetchInbox = async () => {
if (errors) throw errors;
return data
.map(mapInbox)
.sort((a, b) => a.createdAt.getTime() - b.createdAt.getTime());
.sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime());
};

const useInbox = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/releases/next.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# UI Optimierung für Notizen Editor (Version :VERSION)
# Optimierung der Inbox (Version :VERSION)

Der Notizen Editor hat nicht korrekt angezeigt, ob eine Notiz in der Datenbank gespeichert ist. Das ist nun behoben.
Das Formular ist jetzt ganz oben auf der Seite und die aktuellsten Einträge ebenso.
33 changes: 17 additions & 16 deletions pages/inbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,6 @@ const InboxPage = () => {

return (
<MainLayout title="Inbox" sectionName="Inbox">
<ContextSwitcher context={context} />
<div className={styles.spacer} />

{inbox?.map((item) => (
<ToProcessItem
key={item.id}
title={
<WorkFlowItem
inboxItemId={item.id}
forwardUrl={`/inbox/${item.id}`}
/>
}
actionStep={<GrCycle className={listStyles.listItemIcon} />}
/>
))}

<div>
<ToProcessItem
title={
Expand All @@ -84,6 +68,23 @@ const InboxPage = () => {
Confirm
</SubmitButton>
</div>

<div className={styles.spacer} />
<ContextSwitcher context={context} />
<div className={styles.spacer} />

{inbox?.map((item) => (
<ToProcessItem
key={item.id}
title={
<WorkFlowItem
inboxItemId={item.id}
forwardUrl={`/inbox/${item.id}`}
/>
}
actionStep={<GrCycle className={listStyles.listItemIcon} />}
/>
))}
</MainLayout>
);
};
Expand Down

0 comments on commit a45e0cb

Please sign in to comment.