# Updating admin panel to control academix backend operations

**URL:** <https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109>\
**Category:** Development\
**Created:** [June 12, 2020, 1:39pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109 "2020-06-12T13:39:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 12, 2020, 1:39pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/1 "2020-06-12T13:39:39Z")

</div>

Need to update the admin dashboard to have the functionalities to operate data entry part of the academix project.

---

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 13, 2020, 5:37pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/2 "2020-06-13T17:37:38Z")

</div>

This is the sketch I made on add item view,

 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/542dd1939bf1069d0188383f72b1d37685e32def.png)  
when we click on `Add Item` it redirects to update item view.  
 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/88a2419672dfb6c10a9bc5f4d178f78d130339b5.png)  
When we click on + sign on translations this pops up  
 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/a276b4de9ecce2f3befa72a626f6823e817e8999.png)

---

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 13, 2020, 5:39pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/3 "2020-06-13T17:39:23Z")

</div>

This is the way that I understood how it should function.  
@jaye @Gimhan_minion Can you add your suggestions?

---

<div class="post-metadata">

**Author:** ![jaye](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/jaye/32/810_2.png) [@jaye](https://sef.discourse.group/u/jaye)\
**Post date:** [June 13, 2020, 5:50pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/4 "2020-06-13T17:50:47Z")

</div>

Nicely done @Gravewalker

A minor change:  
When user clicks on the plus button there should be a dropdown to select a language. After choosing the language it should add new two fields to the same view. Add a remove button. So the users can remove the translation if they need.

 ![Screenshot 2020-06-13 at 23.19.36](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/402cdab1107e41400f47c884ec401fe638821a70.jpeg)

But, no need to focus on translations at this moment as we discussed.

---

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 13, 2020, 6:01pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/5 "2020-06-13T18:01:55Z")

</div>

For now I will build the first view and send the PR btw I forgot everything about the real thing, this should change like this.

 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/c2a13360b8d257ee78420f164e602641c36eb263.png)

---

<div class="post-metadata">

**Author:** ![jaye](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/jaye/32/810_2.png) [@jaye](https://sef.discourse.group/u/jaye)\
**Post date:** [June 13, 2020, 6:08pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/6 "2020-06-13T18:08:28Z")

</div>

Awesome! Better if you could move the subcategory selection to the top. Also, keep in mind it is multiple selections. Better if you could display the category name along with the subcategory too to avoid confusion.

Example:

 ![Screenshot 2020-06-13 at 23.34.29](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/c6a10bd6c154fe06223de6b808b33900209aecde.jpeg)

In order to do that I think these changes should be done on the backend.

1. I saw the subcategory has JsonIgnored the category object. You need to remove that. (Currently, it has been ignored in both directions. It should ignore only in one direction)
2. You need an API to get all subcategories.

---

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 13, 2020, 6:12pm UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/7 "2020-06-13T18:12:44Z")

</div>

Yeah we need those changes in the backend

---

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 15, 2020, 4:18am UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/8 "2020-06-15T04:18:05Z")

</div>

#### Code review on add item view

**Held on:** 2020-06-14T14:30:00Z  
**Attendees:** @Gravewalker @jaye @anjisvj  
**Description:** Developed this UI on the admin dashboard to add a new item.

 ![image](https://global.discourse-cdn.com/free1/uploads/sef/original/1X/fc24a44e3d116ee01ad78570e31f8f5d1a2bd02c.png)  
**Notes:**  
Following suggestions were made on the UI of the add item form

1. Change the select subcategory button into a drop-down menu
2. Change the file structure

Had a discussion on the file structure and came into a conclusion to change the current structure to a more optimum one.  
Had a discussion on the necessary endpoints that need to make this admin dashboard. Needed APIs are,

1. LIst all the items, sub-categories
2. Update the sub-categories endpoint to return the category of the particular sub-category
3. Get item by id

---

<div class="post-metadata">

**Author:** ![jaye](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/jaye/32/810_2.png) [@jaye](https://sef.discourse.group/u/jaye)\
**Post date:** [June 15, 2020, 4:21am UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/9 "2020-06-15T04:21:24Z")

</div>

Thanks @Gravewalker!

Please follow this structure for the code reviews.

**Held on:**  
**Description:**  
**Attendees:**  
**Notes:**  
**Next Steps: (optional)**

---

<div class="post-metadata">

**Author:** ![Gravewalker](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/gravewalker/32/12_2.png) [@Gravewalker](https://sef.discourse.group/u/Gravewalker)\
**Post date:** [June 16, 2020, 8:57am UTC](https://sef.discourse.group/t/updating-admin-panel-to-control-academix-backend-operations/109/10 "2020-06-16T08:57:59Z")

</div>

Implemented the above UI

> <https://github.com/sef-global/sef-core/pull/54>
