这是indexloc提供的服务,不要输入任何密码
Skip to content

Implement Content Type Listing in Sidebar #343

@DennisAlund

Description

@DennisAlund

Description

Update the sidebar in the Tanam web application to list configured document types under a "Content" section. Remove unused items from the sidebar while keeping the "Settings" and "Dashboard" sections. Rename the "Forms" section to "Content" and dynamically list document types from the Firestore sub-collection document-types.

image

Requirements

  1. Update Sidebar

    • Remove unused items from the sidebar.
    • Keep the "Settings" and "Dashboard" sections.
    • Rename the "Forms" section to "Content".
  2. List Document Types

    • Retrieve and list the configured document types from the Firestore sub-collection document-types under the "Content" section.

Steps to Implement

  1. Update Sidebar Structure

    • Modify the sidebar component to remove unused items.
    • Ensure the "Settings" and "Dashboard" sections remain.
    • Rename the "Forms" section to "Content".
  2. Retrieve Document Types

    • Implement functionality to fetch document types from the Firestore sub-collection document-types.
    • Dynamically list these document types under the "Content" section in the sidebar.
  3. Dynamic Listing

    • Ensure the sidebar updates dynamically to reflect any changes in the document types stored in Firestore.

Testing

  • Verify that unused items are removed from the sidebar.
  • Confirm that the "Settings" and "Dashboard" sections remain intact.
  • Check that the "Forms" section is renamed to "Content".
  • Ensure that all configured document types from Firestore are listed under the "Content" section.

Additional Notes

  • Ensure the sidebar updates in real-time to reflect any changes in the document types stored in Firestore.
  • Consider implementing a caching mechanism to reduce the number of reads from Firestore for better performance.

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions