unstract icon indicating copy to clipboard operation
unstract copied to clipboard

FEAT: Optimize List View Components with Table Design and Sorting Across Project Pages

Open tahierhussain opened this issue 1 year ago • 2 comments

What

This PR optimizes and enhances the list view components across multiple pages (workflow, prompt studio, LLM, vector DB, embedding, and x2text). The improvements include transitioning to a table-based design and implementing a sorting feature.

Why

Enhancing the list view components was necessary to:

  1. Streamline Code Structure: Increase modularity by making the list view reusable across all pages, simplifying maintenance and scalability.
  2. Improve Usability: Provide users with a cleaner, more consistent table view for viewing and managing project data.
  3. Enable Data Interaction: Introduce sorting functionality to allow users to efficiently organize data by attributes such as Name, Owner By, Created At, and Modified At.

How

  1. Component Optimization and Reusability: Refactored the list view structure to be modular, enabling its reuse across multiple pages, reducing redundant code.
  2. Table Design Update: Implemented a table-based format to enhance readability and data organization, providing a better user experience.
  3. Sorting Feature: Added sorting functionality for key columns, enabling efficient data management on each page where the list view is used.

Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)

Yes, there are some substantial refactorings of the existing components in this PR, so there is a possibility of breaking existing features.

Database Migrations

NA

Env Config

NA

Relevant Docs

NA

Related Issues or PRs

NA

Dependencies Versions

NA

Notes on Testing

NA

Screenshots

Workflow Projects Page:

Screenshot from 2024-10-25 09-13-13

Prompt Studio Projects Page:

Screenshot from 2024-10-25 09-13-21

LLM Adapters Page:

Screenshot from 2024-10-25 09-13-28

VectorDB Adapters Page:

Screenshot from 2024-10-25 09-13-34

Embedding Adapters Page:

Screenshot from 2024-10-25 09-13-39

X2Text Adapters Page:

Screenshot from 2024-10-25 09-13-44

Checklist

I have read and understood the Contribution Guidelines.

tahierhussain avatar Oct 25 '24 04:10 tahierhussain

filepath function $$\textcolor{#23d18b}{\tt{passed}}$$ SUBTOTAL
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_logs}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_cleanup}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_cleanup\_skip}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_client\_init}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_image\_exists}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_image}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_container\_run\_config}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_container\_run\_config\_without\_mount}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{worker/src/unstract/worker/clients/test\_docker.py}}$$ $$\textcolor{#23d18b}{\tt{test\_run\_container}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{TOTAL}}$$ $$\textcolor{#23d18b}{\tt{9}}$$ $$\textcolor{#23d18b}{\tt{9}}$$

github-actions[bot] avatar Nov 04 '24 18:11 github-actions[bot]