Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Ghost staff

Description / Background

In the Partner Portal, users have access settings to manage their accounts. Occasionally, issues arise with a restaurant's account, requiring the operations or tech team to investigate by logging into the restaurant's Partner Portal. To improve this process, a new "Ghost Staff" role is being introduced to the account management system. This role allows restaurants to grant temporary access to designated users for a 24-hour period, ensuring that only authorized personnel can access their account. Additionally, admins can seamlessly log into the partner portal directly from the restaurant list on the admin dashboard, enhancing efficiency in resolving issues.

Glossary

Private (https://app.clickup.com/9003122396/docs/8ca1fpw-35796/8ca1fpw-41516)

Objectives

  • Admin can access Partner Portal for 24 hours by clicking Login Partner Portal

  • After clicking this confirmation button, Admin will be redirected to the Partner Portal and will be automatically logged in using temporary staff access.
  • Owner can give HH team temporary access to their partner portal

  • Ask qa team if you want to know the email and password for the generated temporrary access account.
  • System will generate temporary staff access with temporary role

Scope

admin can login to parner portal for 24 hours.

Sequence Diagram / Flow

ERD

-

Backend Implementation

  • Add API to get the temporary access for partner portal
  • Add API to get the temporary access for admin dashboard
  • When client hit API get temporary access system will generate new staff account (with temporary role) and will expired for the next 24 hours
  • Send email to qa-team@hungryhub.com when the temporary access created

[

github.com

https://github.com/hungryhub-team/hh-server/pull/5742

](https://github.com/hungryhub-team/hh-server/pull/5742)

Frontend Implementation

  • Add a Login Partner Portal menu on admin dashboard ➝ restaurants ➝ actions column.
  • Add Access will be given to hungryhub team until next 24 hours popup on both admin dashboard and Partner Portal.
  • Add Give access to Hungryhub Team on Partner Portal ➝ Account Management ➝ User & Access Right

PRD & Task

Private (https://app.clickup.com/9003122396/docs/8ca1fpw-30456/8ca1fpw-40416) - PRD

Private (https://app.clickup.com/t/86cvyu7qe) - Task

Design

[

Partner Portal Desktop

Created with Figma

https://www.figma.com/design/ymdLN2ZKzfI0oyX4kps2GQ/Partner-Portal-Desktop?node-id=11739-1497&t=lquMW4roGGTJOHr2-1

](https://www.figma.com/design/ymdLN2ZKzfI0oyX4kps2GQ/Partner-Portal-Desktop?node-id=11739-1497&t=lquMW4roGGTJOHr2-1)

API Blueprint

MethodPathURLDescriptionPayload
POSTrestaurant/login_partner/admin/restaurants/${restaurantId}/login/partner
Get restaurant temporary access for adminrestaurant_id
POST/staffs/create_temporary_staff/api/v5/staffs/create_temporary_staffGet restaurant temporary access for ownerrestaurant_id

New Query

  • Add new validation role temporary to staff role

DB Schema / Database Migration

  • A dd expired_at to staff table

Improvement:

NODate TimeWhat ChangedDescription