Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Proof of concept #319

Closed
28 of 29 tasks
Tracked by #307 ...
jon-nfc opened this issue Sep 27, 2024 · 1 comment
Closed
28 of 29 tasks
Tracked by #307 ...

UI Proof of concept #319

jon-nfc opened this issue Sep 27, 2024 · 1 comment
Assignees
Labels
type::specification Design specification

Comments

@jon-nfc
Copy link
Member

jon-nfc commented Sep 27, 2024

Add an API endpoint that can be used to test the UI and as a proof of concept.

Details

This work is required so that the navigation, list and detail view can be tested.

Badge field

used by the ui to render a badge. must include options for:

  • url link
  • text of badge
  • icon to use
  • icon color

badges are used for fields:

  • device software action
  • ticket status

icon field

used by ui to render an icon. i.e. device status icon. must include:

  • icon colour
  • icon name

icon field used for:

  • device inventory status

Requirements

for the proof of concept to be considered a workable solution the react ui must contain the same features as is deployed. checklist is as follows:

  • List view
    • Add item
  • Detail view
    • notes tab
    • linked items table
      • add linked item
      • edit linked item
      • delete linked item
    • edit item
    • delete item
    • view model history
  • ticket view
  • history view
  • settings view
  • unauthenticated redirects to login

📓 Notes

  • Login redirect requires django setting LOGIN_REDIRECT_URL to be set to the UI URL and that within react a route setup to redirect to the django url.

    <Route path='/login' element={<Login/>}/>
    const Login = () => {
    
        window.location.replace('http://127.0.0.1:8002/api/v2/auth/login');
    
        return (
            <section>redirect</section>
        );
    }

To Do

Tasks

  • Add a new API path as base for API
  • Add ITAM/devices
  • Add navigation to API HTTP/Option
  • Add other details as required to itam/devices HTTP/Option

Links

@jon-nfc jon-nfc mentioned this issue Sep 27, 2024
19 tasks
@jon-nfc jon-nfc moved this to Planning in Centurion ERP Sep 27, 2024
@jon-nfc jon-nfc added the type::specification Design specification label Sep 27, 2024
@jon-nfc jon-nfc self-assigned this Sep 27, 2024
@jon-nfc jon-nfc mentioned this issue Sep 27, 2024
7 tasks
jon-nfc added a commit that referenced this issue Sep 27, 2024
requires `API_TEST = True` in settings. Danger: is insecure. dont activate in production

ref: #319 #320 nofusscomputing/centurion_erp_ui#1
@jon-nfc jon-nfc mentioned this issue Sep 28, 2024
35 tasks
@jon-nfc jon-nfc added this to the v1.3 - UI / API Refactor milestone Sep 30, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 10, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::specification Design specification
Projects
Archived in project
Development

No branches or pull requests

1 participant