Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Author tracking system for posts and pages #187

Open
Tracked by #333
Adammatthiesen opened this issue Jul 23, 2024 · 0 comments
Open
Tracked by #333

[Feat] Author tracking system for posts and pages #187

Adammatthiesen opened this issue Jul 23, 2024 · 0 comments

Comments

@Adammatthiesen
Copy link
Member

Implement a author tracking system to be able to keep track of current authors and allow an optional checkbox to either display authors and contributors or not to on pages/posts also keeping track of new authors during updates and being able to show them as a stacked list of contributors to the post. These options would be able to be stored as a new json column in the PageData table with a format something like the following:

// `column.json()` from `@astrojs/db` is type unknown and will require a type cast such as the following
type AuthorsTrackingType = {
    authorId: string;
    contributors: Array<{ 
        id: string 
    }>;
    showAuthorOnPage: boolean;
    showContributorsOnPage: boolean;
};

Also in order to not break current installs there would be a check during update that if there is no authorId, then it would add the first editor as the author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant