30 lines
705 B
TypeScript
Raw Normal View History

feat: new admin homepage (#22346) * feat: init new homepage with custom greeting (#22269) * feat: init new homepage * fix: e2e test * chore(homepage): move guided tour (#22338) * enhancement: create homepage widget component * enhancement(homepage): create recently edited documents endpoint (#22355) * chore: init recent documents route and controller * enhancement: add recently updated docs endpoint * chore: add endpoint types * chore: add api tests * fix: ts build * enhancement: add generic widget component * enhancement: add homepage recently edited widget * chore: add compound component * fix: unit test * enhancement: add no data state * enhancement: add no data variant * future(homepage): add generic widget component (#22369) * enhancement: create homepage widget component * enhancement: add generic widget component * chore: add compound component * fix: unit test * enhancement: add no data variant * fix: widget height * enhancement(homepage): get recent publish activity (#22377) * chore: tracking and a11y improvements * chore: add e2e tests * fix: more cache invalidation * chore: update api tests * fix: remove cm dependency * fix: broken status * enhancement(home): add recently published widget (#22391) * fix(home): replace title documentId with document title (#22403) * fix(home): make locale defined or null to get the correct status (#22405) * fix(homepage): make back button work when document has a locale (#22450) * release: 5.6.0 * Revert "release: 5.6.0" This reverts commit 77ad0efc79afd9777d140f84e8abc47cda26d1d9. * release: 5.6.0 * fix(homepage): add missing styles for error, loading, and empty states (#22448) * fix(homepage): add missing styles for error, loading, and empty states * fix: always include title and icon * chore: refactor to not rerender static content * chore: reuse table component * fix: single type link --------- Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io> * fix: minor ui issues * fix: hide doc status when no d&p (#22409) * fix: hide doc status when no d&p * enhancement: show dash instead --------- Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io> Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com> * v5.7.0-beta.0 * fix: package versions * fix: package version --------- Co-authored-by: Mark Kaylor <mark.kaylor@strapi.io> Co-authored-by: Marc-Roig <marc12info@gmail.com>
2025-01-06 16:03:49 +01:00
import type { errors } from '@strapi/utils';
import type { Struct, UID } from '@strapi/types';
// Export required to avoid "cannot be named" TS build error
export interface RecentDocument {
kind: Struct.ContentTypeKind;
contentTypeUid: UID.ContentType;
contentTypeDisplayName: string;
documentId: string;
locale: string | null;
status?: 'draft' | 'published' | 'modified';
title: string;
updatedAt: Date;
publishedAt?: Date | null;
}
export declare namespace GetRecentDocuments {
export interface Request {
body: {};
query: {
action: 'update' | 'publish';
};
}
export interface Response {
data: RecentDocument[];
error?: errors.ApplicationError;
}
}