stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
11 stars 42 forks source link

Add Schematic Image and url [feature-add-schematic-image-and-url] #524

Closed fvalentiner closed 1 month ago

fvalentiner commented 1 month ago

Context

In the recently created Workspace page we need to add a new component to modify schematic image and url.

Bounty: https://community.sphinx.chat/bounty/1964

Design

Clone this branch https://github.com/stakwork/sphinx-tribes-frontend/tree/feature-add-schematic-image-and-url

Remember to use the components from Elastic UI when ever posible https://eui.elastic.co/.

Copy the image upload component and functionality from "Profile -> Add Workspace"

This will be the full Workspace page

image

Your job for this issue is to create the 'Schematics' part of the page. Here are the specifics. page: /workspaces/{workspace_uuid}

image

The popup is also used in Add Workspace, so you can copy it from there.

Backend Endpoints:

Get Workspace (Its already called for the page so get the schematic_img and schematic_url) GET /workspaces/{workspace_uuid}

Update Workspace POST /workspaces { uuid: '{uuid}', schematic_img: '{schematic image url}', schematic_url: '{schematic url}' }

Acceptance Criteria

Here is an example unit test

Here is an example component test

AbdulWahab3181 commented 1 month ago

@fvalentiner Could you please assign me?

MahtabBukhari commented 1 month ago

@fvalentiner Could you please assign me?

saithsab877 commented 1 month ago

@fvalentiner please assign me?