feat: Add reordering to starred documents (#2953)
* draft * reordering * JIT Index stars on first load * test * Remove unused code on client * small unrefactor
This commit is contained in:
@@ -16,6 +16,7 @@ import presentRevision from "./revision";
|
||||
import presentSearchQuery from "./searchQuery";
|
||||
import presentShare from "./share";
|
||||
import presentSlackAttachment from "./slackAttachment";
|
||||
import presentStar from "./star";
|
||||
import presentTeam from "./team";
|
||||
import presentUser from "./user";
|
||||
import presentView from "./view";
|
||||
@@ -32,6 +33,7 @@ export {
|
||||
presentCollection,
|
||||
presentShare,
|
||||
presentSearchQuery,
|
||||
presentStar,
|
||||
presentTeam,
|
||||
presentGroup,
|
||||
presentIntegration,
|
||||
|
||||
11
server/presenters/star.ts
Normal file
11
server/presenters/star.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Star } from "@server/models";
|
||||
|
||||
export default function present(star: Star) {
|
||||
return {
|
||||
id: star.id,
|
||||
documentId: star.documentId,
|
||||
index: star.index,
|
||||
createdAt: star.createdAt,
|
||||
updatedAt: star.updatedAt,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user