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

Support archiving content #35

Open
4 tasks
Nyumat opened this issue Nov 18, 2024 · 0 comments
Open
4 tasks

Support archiving content #35

Nyumat opened this issue Nov 18, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers to our club

Comments

@Nyumat
Copy link
Member

Nyumat commented Nov 18, 2024

Overview

Implement a feature that allows users to archive uploaded content in BeavsAI. This will help users manage their course materials by distinguishing between active and archived content, making it easier to focus on current courses and access past materials when needed.

Objective

Develop an archiving system that enables users to move uploaded PDFs and course materials to an "Archived" section, ensuring better organization and content management.

Details

Core Features

  • Archive Functionality: Add a feature to move uploaded files to an archived state.
  • Archived View: Create a dedicated section where users can view and manage archived content.
  • Restore Option: Allow users to restore archived content back to the active list.

Technical Requirements

  • Database Schema Update: Add an isArchived field to the course_materials table to track the archived status.
  • API Update: Implement an API route to handle archiving and restoring files.
  • Type Safety: Ensure type-safe implementation using TypeScript and Zod validations.
  • UI/UX Update: Update the UI to include archive and restore actions, and create an "Archived Content" view.

UI/UX Changes

  • File List Update: Add an "Archive" button next to each file in the active content list.
  • Archived Content Page: Design a page that displays archived files with options to restore or permanently delete them.
  • Confirmation Modal: Include a confirmation dialog for archiving and restoring actions.

Data and Privacy Considerations

  • User Data Handling: Ensure archived content is still protected under the same data security and privacy measures as active content.

Acceptance Criteria

  • Users can archive uploaded files and view them in a separate "Archived Content" section.
  • Users can restore archived files back to the active content list.
  • The isArchived field is added to the course_materials table and integrated with relevant API routes.
  • The UI/UX is updated to include archive and restore functionality.
@Nyumat Nyumat added this to BeavsAI v2 Nov 9, 2024
@Nyumat Nyumat converted this from a draft issue Nov 18, 2024
@Nyumat Nyumat added enhancement New feature or request good first issue Good for newcomers to our club labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers to our club
Projects
Status: Todo
Development

No branches or pull requests

1 participant