Skip to content

Releases: mzcoder-hub/timeline-cms-management

Patch Update: v0.1.5-alpha

20 Jul 08:27
1c2d98c
Compare
Choose a tag to compare

Patch Update: v0.1.5-alpha

Date: July 20, 2024

Overview

This patch update includes several improvements, bug fixes, and new features to enhance the functionality and user experience of the Multi-Timeline CMS.

Changes and Improvements

Authentication

  • Feature: Added user authentication and authorization.
    • Implemented login, register, and logout functionalities.
    • Protected routes using ProtectedRoute component.
    • Middleware to verify JWT tokens in backend routes.

Backend

  • Routes:
    • Added authentication routes in routes/auth.js.
    • Updated content routes in routes/content.js.
    • Updated timeline routes in routes/timelines.js.
  • Middleware:
    • Added auth.js middleware to verify JWT tokens.

Frontend

  • Components:
    • Added Register.js for user registration.
    • Added Login.js for user login.
    • Updated App.js to use ProtectedRoute for authenticated routes.
  • Context:
    • Added AuthContext.js for managing authentication state.

Bug Fixes

  • Fixed an issue with the auth.js middleware causing errors when reading the Authorization header.
  • Fixed maximum update depth exceeded error in AuthContext.js.

API Endpoints

Authentication

  • POST /api/auth/register - Register a new user.
  • POST /api/auth/login - Login and get a token.
  • POST /api/auth/logout - Logout the user.

Timelines

  • GET /api/timelines - Get all timelines.
  • GET /api/timelines/:id - Get a specific timeline by ID.
  • POST /api/timelines - Create a new timeline.
  • PUT /api/timelines/:id - Update a specific timeline by ID.
  • DELETE /api/timelines/:id - Delete a specific timeline by ID.
  • GET /api/timelines/overdue - Get all overdue timelines.
  • GET /api/timelines/upcoming - Get all upcoming timelines.

Content

  • GET /api/content/:timelineId - Get all content for a specific timeline.
  • POST /api/content - Create new content.
  • PUT /api/content/:id - Update a specific content by ID.
  • DELETE /api/content/:id - Delete a specific content by ID.

Notes

  • Ensure to update the environment variables in your .env file to include JWT_SECRET for JWT authentication.
  • Run the backend server on http://localhost:5000 and the frontend development server on http://localhost:3000.

Contributors

Additional Information

For detailed information on the project, please refer to the README.

License

This project is licensed under the MIT License. See the LICENSE file for details.

v0.0.1-alpha

18 Jul 11:35
1c2d98c
Compare
Choose a tag to compare

v0.0.1-alpha - Initial Alpha Release

Summary

This is the initial alpha release of the Timeline CMS application. It includes basic functionality for managing timelines, adding content, and uploading files.

New Features

  • Multi-Timeline Management: Create and manage multiple timelines. Each timeline can have its own set of contents.
  • Content Management: Add, view, and edit content for each timeline. Content includes a title, body, deadline, due date, and an optional file upload.
  • File Upload: Support for uploading .docx files to each piece of content.
  • Overdue and Upcoming Timelines: Separate views for overdue and upcoming timelines to help users keep track of important deadlines.
  • Responsive Design: The application is built with Bootstrap to ensure responsiveness across different devices.

Bug Fixes

  • N/A (initial release)

Improvements

  • N/A (initial release)

Breaking Changes

  • N/A (initial release)

Known Issues

  • File Preview Issue: Users might experience issues with previewing uploaded files.
  • Browser Compatibility: Full functionality is supported primarily on Chrome and Firefox. Other browsers may have limited support.

Full Changelog: https://github.com/mzcoder-hub/timeline-cms-management/commits/0.0.1-alpha

Contributors

Additional Information

For detailed information on the project, please refer to the README.