Changes between Initial Version and Version 1 of AdminDashboard


Ignore:
Timestamp:
12/28/25 22:46:10 (11 hours ago)
Author:
233051
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdminDashboard

    v1 v1  
     1== User opens dashboard ==
     2
     3=== Actors ===
     4Admin
     5
     6=== Scenario ===
     71. The admin clicks on the button with their username
     82. A dashboard with their information, favorited builds and their own builds is displayed.
     9{{{
     10SELECT
     11  username,
     12  email
     13FROM users
     14WHERE id = $userId
     15LIMIT 1;
     16}}}
     17
     18{{{
     19SELECT
     20  id,
     21  user_id,
     22  name,
     23  created_at,
     24  total_price
     25FROM build
     26WHERE is_approved = false
     27ORDER BY created_at DESC;
     28}}}
     29
     30{{{
     31SELECT
     32  id,
     33  user_id,
     34  name,
     35  created_at,
     36  total_price
     37FROM build
     38WHERE user_id = $userId
     39ORDER BY created_at DESC;
     40}}}
     41
     42{{{
     43SELECT *
     44FROM suggestions
     45WHERE status = 'pending'
     46ORDER BY id DESC;
     47}}}