sparrowapp-dev / sparrow-app

Your next-gen API testing and development tool.
https://sparrowapp.dev
GNU Affero General Public License v3.0
39 stars 24 forks source link

As a developer, I should be able to document and refactor the collection Tab #772

Open Madhvan-0912 opened 2 months ago

Madhvan-0912 commented 2 months ago

Refactor Collection Explorer Page to show details of a Collection.

The Collection explorer is the component that opens on explorer which allows us to see details such as Name and Description.

The Collection explorer is should be dumb and the functionalities should be in Collection explorer viewmodel to follow MVVM and passed through props.

Following are the features expected from the component:

  1. User should be able to see and update name and description of a collection.
  2. User should be able to see number of request and folder in a collection.
  3. User should be able to sync the collection from git branch and also should be able to change branch.
  4. User should be able create new API request in a collection.

The component should allow to invoke events:

  1. onRename(newName) - to rename the collection.
  2. onUpdate(updatedCollection) - to update the collection.
  3. onCreateRequest() - to create new API request in collection.
  4. onChangeBranch() - to change the branch in collection.
  5. onRefetchCollection(branchName) - to refetch collection from a git branch.
theketan26 commented 2 months ago

Updated the description CC: @gc-codes, @nagesh953, @Madhvan-0912