Skip to content

NethVoice: improve usability and modernization of the administrator interface #7574

Open
2 of 5 issues completed
Open

Description

@andrea-marchionni

Description

The NethVoice interface needs a full redesign to improve usability, simplicity, and immediacy, while introducing new management capabilities.
Key goals include creating an intermediate admin level — “Administrator-Light” (or “Superuser”) — that allows customers or company representatives to manage specific settings autonomously, without accessing critical configurations.

The redesign should also include:

  • Two-Factor Authentication (2FA) for enhanced security across all privileged roles
  • Rebranding capabilities, allowing customization of logo, and company name to better adapt NethVoice to different customers’ identities

Main Goals

  • Redesign the UI and UX of NethVoice for improved usability and clarity
  • Introduce the Administrator-Light role with limited operational permissions
  • Implement Two-Factor Authentication (2FA) for all admin and superuser roles
  • Enable Rebranding / White Label capabilities (custom logo, product name, company name)
  • Simplify navigation and configuration flows
  • Modernize design consistency, iconography, and responsiveness

Administrator-Light Role Features

  • Edit users’ mobile phone numbers (impacting NethVoice CTI states)

  • Configure phone ringtones

  • Enable or disable DND (Do Not Disturb) for other users

  • Access a real-time dashboard displaying:

    • Extension status (available / busy / DND), registration status and a test for incoming
    • Line status /qualify time, authentication and registration) and a test for incoming and outgoing calls
    • Active queues or ongoing calls

Interface Improvements

  • Modern, consistent, and responsive UI design

  • Mobile-friendly layout

  • Simplified and intuitive workflows
    * Configure by users group
    * View of group members and user by profile
    * View of enabled configuration (WebPhone, Mobile phone, Devices, voicemail etc..)
    * Search for the device owner
    * Make it possible for a user's configurations to be moved to another user (extension, profile, group, devices)

  • Clear feedback for actions (success, error, warning)

  • Unified terminology and iconography across all modules

  • Quick access to essential features and live system status

  • User credential management:
    * Send new user credentials with the requirement to change them upon first login
    * Edit user credentials
    * user block

  • Integrated 2FA authentication and session management

  • Rebranding options for administrators to customize:

    • Application logo
    • Brand name and welcome text

Expected Benefits

  • Increased autonomy for customers and team supervisors
  • Reduced workload for system administrators
  • Stronger security through 2FA
  • Flexible white-label solution adaptable to customer branding
  • Modernized, faster, and more user-friendly interface
  • Improved visibility and control of users, lines, and extensions

Sub-issues

Sub-issues

2 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. converted this from a draft issue on Jul 24, 2025
  2. added
    nethvoice
    on Jul 24, 2025
  3. changed the title [-]More admin users on NethVoice interface[/-] [+]NethVoice: more admin users on interface[/+] on Jul 24, 2025
  4. changed the title [-]NethVoice: more admin users on interface[/-] [+]NethVoice: Improve Usability and Introduce “Administrator-Light” Role with 2FA[/+] on Oct 27, 2025
  5. changed the title [-]NethVoice: Improve Usability and Introduce “Administrator-Light” Role with 2FA[/-] [+]NethVoice: Improve Usability and Modernisation of the administrator interface[/+] on Jan 20, 2026
  6. changed the title [-]NethVoice: Improve Usability and Modernisation of the administrator interface[/-] [+]NethVoice: improve usability and modernisation of the administrator interface[/+] on Jan 20, 2026
  7. changed the title [-]NethVoice: improve usability and modernisation of the administrator interface[/-] [+]NethVoice: improve usability and modernization of the administrator interface[/+] on Jan 20, 2026
  8. added
    milestone goal 👑
    on Jul 6, 2026
  9. moved this from Todo to In Progress in NethVoiceon Nov 10, 2026
  10. tonyco97 commented on Nov 13, 2026

    @tonyco97

    Test

    PR: nethesis/ns8-nethvoice#1201 (testing image ghcr.io/nethesis/nethvoice:pr-1201.*)
    Related: nethesis/phone-island#317 (SIP-only mode, dev release @nethesis/[email protected])

    Setup:

    • NethVoice instance updated to the latest PR testing image, wizard already completed, NethVoice CTI middleware running.
    • The local admin account can no longer sign in to the new interface: sign in with a user of the user domain that is a member of domain admins (shown as "Superadmin").
    • From "Access control" grant "Limited access" with only some sections (for example only Dashboard, or only Routes) to a second domain user; this is the "limited administrator" below.
    • At least 3 domain users with an extension, one with web phone, desktop app, mobile app and a physical phone; at least one user without an extension.
    • One VoIP trunk, optionally a gateway, 2 inbound routes, the default outbound routes, one queue.
    • An authenticator app (any TOTP app) on a phone for the two-factor cases.
    • The new interface is at https://<voice host>/nethvoice/; the previous one stays at https://<voice host>/.
    • Run every test case in dark and light theme, in Italian and English, and at least once at phone width (390 px) and in compact view (account menu > "Switch to compact view").

    Test Case 1 - Sign in and coexistence with the previous interface

    • Open /nethvoice: it redirects to /nethvoice/ and shows the sign-in page with the configured branding.
    • Sign in with a wrong password: "Cannot sign in" is shown with "Username or password is not correct, or the account can't access the administration." and the password field keeps the focus.
    • Sign in as admin with its right password: the same "Cannot sign in" message is shown.
    • Sign in with a domain user that has no access: the same "Cannot sign in" message is shown.
    • Sign in as the superadmin: the dashboard opens.
    • Open the previous interface in another tab: it is already signed in (shared session).
    • Account menu > "Go to the previous interface": the previous wizard opens.
    • Account menu > "Sign out": back to the sign-in page; reloading a protected page asks to sign in again.
    • Open a deep link (e.g. /nethvoice/trunks/voip) while signed out: after sign in you land on that page.

    Test Case 2 - Top bar, side menu and account menu

    • The top bar and the side menu look like My Nethesis: "Documentation" (question mark), "Show notifications" (bell) and the account button with the avatar (initial of the username, or the profile picture) and a chevron; every icon-only button has a tooltip on hover and keyboard focus, also "Open sidebar" and "Close sidebar" at 390 px.
    • Enterprise: the top bar shows the instance name (or the host name) with the tooltip "Enterprise subscription"; Community: nothing is shown there.
    • Side menu of the superadmin: "Dashboard", "Users and groups", "Trunks", "Routes", "Devices", "Integrations", "Access control"; the current page is highlighted.
    • Account menu of the superadmin: the username and "Superadmin" on top, then "Account settings", "Go to the previous interface", "Advanced settings", "Switch to compact view", "Switch to dark theme" (or "Switch to light theme") and "Sign out"; Esc closes it and the focus goes back to the account button.
    • "Advanced settings" opens the FreePBX administration in a new tab.
    • Sign in with the limited administrator: the side menu shows only its sections, no "Access control"; the account menu shows "Limited access" and has "Account settings", but no "Go to the previous interface" and no "Advanced settings".
    • A user granted "Administrator" (every section) shows "Administrator" in the account menu and has no "Advanced settings".
    • With the limited administrator, open the address of a section it cannot open (e.g. /nethvoice/trunks): it goes back to an allowed page and "Section not available" is shown.
    • Switching theme changes the whole interface and is remembered after a reload.
    • "Switch to compact view" reduces the spacing everywhere, the fonts stay the same, and the choice is remembered after a reload; "Switch to standard view" restores it.

    Test Case 3 - Dashboard

    • System card: "Hostname", "Release", "Uptime", "Load / memory" and "Subscription" match the PBX.
    • Enterprise: the System card does not show the extensions count.
    • Community: the System card shows "Extensions" as used/limit (e.g. 4/8) with a bar; at the limit "Extension limit reached" appears. Only the System card and the counters are shown, no other card.
    • Counters ("Users", "Groups", "Physical phones", "Calls in progress", "Trunks", "Inbound routes", "Outbound routes") match the other pages; clicking a counter opens its section.
    • "User presence" and "Devices" charts change when a user changes presence or connects a device.
    • "Phone status" counts ("Provisioned", "Pending", "Unassigned", "Failed") match Devices > "Phones".
    • "Calls today" shows "Total calls", "Answered", "Missed" and "Invalid".
    • "Calls per hour": "Period" offers "Last 24 hours", "Last 7 days" and "Last 15 days"; the chosen period is kept after a reload; hovering an hour shows a tooltip with "Calls: N".
    • Drag across the chart: it zooms into the dragged hours, the zoomed period and "Reset zoom" appear above the chart and "Period" shows "Custom"; hovering a zoomed hour still shows its tooltip.
    • "Reset zoom" or a double-click goes back to the chosen period; choosing another "Period" also drops the zoom.
    • With the keyboard: focus the chart, "+" and "-" zoom, the left and right arrows move the zoomed period, Esc resets it.
    • At 390 px the zoomed period and "Reset zoom" fit on one line inside the card; on a narrower phone they wrap without leaving the card.
    • Start a call between two users: it appears in "Calls in progress" with "Call type", "Source", "Destination" and a running "Duration"; it disappears when the call ends.
    • "Calls in progress", "Trunks" and "Inbound routes" show 5 rows per page and the pagination appears only with more than 5 rows.
    • "Trunks" card: one row per trunk with its status ("Registered", "Online", "Not connected", "Rejected", "Offline", "Pending", "Unknown" or "Disabled"); disabled trunks are listed last.
    • "Inbound routes" card: DID and destination ("Any DID" for an empty DID, "Invalid destination" for a deleted target).
    • Mouse: press anywhere on the header of a card and drag it: the card follows the pointer at its full size, a placeholder shows where it will land and the other cards make room; release: the order is saved and " moved to position N of M" is announced.
    • Drag a wide card ("Calls per hour"): neither the card nor its chart is cut while dragging. Drag near the bottom edge: the page scrolls.
    • Press Esc while dragging: the card goes back to its place. A simple click on the header, or on "Period", does not move the card.
    • Keyboard: focus the header of a card (tooltip "Drag to reorder, or use the arrow keys") and use the arrow keys: the card moves and keeps the focus.
    • Touch (phone or tablet): a long press on the header, then drag, moves the card; a quick swipe on the header only scrolls the page.
    • Reload: the new order is kept.
    • Stop the CTI middleware (or block it): a single notice "Cannot load some dashboard data" lists the missing data with one "Retry"; a 502/503/504 shows "The service is not reachable at the moment. Try again shortly.", never the raw error page of the server. When the service is back the data comes back without a reload.

    Test Case 4 - Users list and bulk actions

    • The list matches the domain users: name, extension, groups, profile, devices and physical phones; the counter shows "N out of M users configured with an extension".
    • Hover the physical phones count of a user: the models and MAC addresses are listed with "Go to Phones".
    • Search ignores accents and extra spaces and shows "Showing X of Y users"; filters ("Voicemail", "Groups", "Profiles", "Devices", "Physical phones") combine; there is no status filter; "Reset filters" is enabled only when a filter is set.
    • Pagination works at 390 px without horizontal scrolling.
    • "Actions" lists "Import users from CSV", "Export users to CSV", "Synchronize users", "Set voicemail", "Assign profile", "Set devices" and "Advanced bulk actions".
    • "Set voicemail", "Assign profile", "Set devices": each one applies to the chosen users and shows the progress; "Set voicemail" and "Set devices" list only users with an extension.
    • In the bulk drawers press "Select all" under "Users": every user offered is chosen and the button becomes "Deselect all", which clears them; the same works under "Devices" of "Set devices".
    • "Set devices" with all devices unchecked: the "Disable devices" confirmation lists the users and the devices that will be disabled; "Cancel" changes nothing.
    • "Advanced bulk actions": "Select all" under "Users" works as above; fields shared by all chosen users are prefilled; saving without changes shows "Change at least one setting"; only the changed fields are saved ("Settings updated").
    • "Export users to CSV": the file users-YYYY-MM-DD.csv opens correctly in a spreadsheet (accents included), contains no passwords and can be imported back.
    • "Import users from CSV": "File preview" shows the users and the new groups ("N new group will be created: ..."); rows with errors are listed (e.g. "Row 4 (...): invalid extension"); "Skip existing users" is the default.
    • Import again choosing "Overwrite existing users": voicemail and devices of the existing users are updated as in the file.
    • After an import the toast "Users imported" shows "Created: N · Updated: N · Skipped: N" and the list shows the new users with their groups without a reload.
    • "Synchronize users": "Users synchronized"; users added in the domain appear; a user renamed in the domain shows the new name in the list and calls from its devices show the new name.

    Test Case 5 - Edit a user

    • "Edit" a user, change voicemail, profile, groups, devices, mobile number and physical phones, then "Save": "User updated", every change is applied and the list updates.
    • "Select all" under "Groups" and under "Devices" chooses every option and becomes "Deselect all"; options that cannot be changed stay as they are.
    • Change the extension of a configured user: "The devices will be recreated" warns that apps and physical phones get new credentials and that the group memberships are kept.
    • Empty the extension and "Save": "Enter an extension. To remove it, use Remove extension in the user menu." is shown and nothing is saved.
    • Use the extension of another user: "This extension is already assigned to another user"; use the number of a queue or ring group: "This extension is already in use".
    • Close the drawer with unsaved changes: "Unsaved changes" asks before discarding ("Keep editing" / "Discard changes"); Esc does nothing while saving.
    • Row menu > "Remove extension": the confirmation explains what is removed; after confirming, "Extension removed", the devices are removed and the physical phones are listed as "Unassigned" in Devices > "Phones" (details in NethVoice: make easier manage a user #7146).
    • Row menu > "Reassign extension": choose a user without an extension; the extension, devices, physical phones, voicemail and groups move to that user; numbers and SIP secrets stay the same; calls from the moved devices and the voicemail show the new user's name; phone key labels that showed the old name show the new one (details in NethVoice: make easier manage a user #7146).

    Test Case 6 - Users removed from the domain (orphan extensions)

    • Delete a user with an extension and devices from the domain, then "Synchronize users": the user disappears from the list, its extension is not deleted.
    • Its devices can no longer register (try to register the web phone or a softphone with the old credentials).
    • The Users page shows "1 extension belongs to a removed user"; "Show extensions" opens "Extensions of removed users" with user, extension, devices, physical phones and "Removed on" date.
    • Recreate a user with the same username in the domain and synchronize: extension, devices, groups and profile are given back automatically and the devices register again.
    • Delete the extensions of a removed user from the list ("Delete extensions"): after the confirmation ("This cannot be undone.") the extension, devices and voicemail are deleted and its physical phones are freed.

    Test Case 7 - Overview

    • "Grid view", "List view" and "Grouped view" switch the layout; the active button has a background; each button has a tooltip; the chosen view is kept after a reload.
    • "List view": columns "Name", "Groups", "Devices", "Status" and "Actions" (with "Details"); favorite users come first with a star.
    • "Filter users" finds users by name, extension or group name; a filter with no results shows "No users found"; "Status" and "Groups" filters combine and "Reset filters" is enabled only when a filter is set.
    • Device numbers that are not online are plain text and cannot be called; online numbers can be called.
    • "Grouped view": "Group by" "Group" or "Status"; favorites are shown in their own "Favorites" section; users without a group are under "No group".
    • Operator details ("Show details"): "Add to favorites" / "Remove from favorites" works; the device list expands one device at a time with "Codecs", "Do not disturb" and "Call forward"; no horizontal scroll.
    • The presence dot sits on the bottom right corner of the avatar in every view and in the operator details.

    Test Case 8 - Groups and profiles

    • "Create group" with members; an empty name ("Enter a name for the group"), an existing name ("A group with this name already exists") or a name with the same letters and numbers (e.g. Sa-les when Sales exists) is rejected.
    • "Select all" under "Users" of the group drawer chooses every user and becomes "Deselect all".
    • "Edit" a group: members can be added and removed.
    • Rename a group: while the name differs, "Renaming the group" warns that phonebook sources and contacts shared with the group and the operator presence panel of the profiles will use the new name; "Save": the new name is shown in the list, in the user drawers and in the profiles; a phonebook source shared with the group is still visible to its members in NethVoice CTI.
    • Delete a group: "Group will be permanently deleted." then "Group has been deleted.".
    • "Create profile" from an existing one, rename it, change permissions and outbound routes; a duplicate name is rejected ("A profile with this name already exists").
    • "Select all" under "Assign users" of the profile drawer chooses every user and becomes "Deselect all".
    • Delete a profile used by users: the confirmation says that the assigned users will be moved to the Base profile.

    Test Case 9 - VoIP trunks

    • Trunks shows the tabs "VoIP" and "Physical"; the tables are still named "VoIP trunks" and "Physical trunks".
    • Create a trunk for a provider ("Create VoIP trunk"): fields depend on the provider, the provider is saved and shown in the list.
    • Edit the trunk: provider and name are read-only with a helper; leaving the password empty keeps the current one; changing codecs keeps or removes "Force codec" as chosen; the codecs stay on one line.
    • Delete a trunk used by outbound routes: the confirmation lists the routes; routes left without trunks are highlighted ("Some outbound routes will have no trunk").
    • The trunk of the AI agents (if any) is "Read only".
    • Disabled trunks show "Disabled".
    • At 1440 px a long list of VoIP trunks is a table without horizontal scroll.
    • Row menu > "Call through this trunk": "Phone number" abc shows "Use only digits, optionally starting with +. Spaces, dots, dashes and brackets are removed"; enter your test mobile number and "Call": the administrator phone calls it through that trunk.
    • A disabled trunk shows "Calls through this trunk are not available because it is disabled"; while the administrator phone is in a call, "The administrator phone is already in a call".
    • A limited administrator with only Trunks can call through a trunk too.

    Test Case 10 - Physical trunks (gateways)

    • "Create physical trunk" opens a drawer: choose "Device manufacturer" and "Device model", then "MAC address", "Device IP address", "Subnet mask", "Network gateway", "PBX address" and the ports; "Create" adds the trunks and the FXS extensions; IP and MAC can be copied with a click.
    • Create a gateway with a MAC already used: "Another gateway already uses this MAC address" before anything is created.
    • Row menu > "Show configuration": the data are shown read only with "Configuration cannot be changed here"; a configured gateway cannot be edited (to change it, delete and create it again).
    • "Download" the configuration of a gateway.
    • A gateway whose trunks are all disabled shows "Disabled".
    • "Call through this trunk" on a gateway with several lines asks for the "Line"; a gateway with only FXS ports shows "This gateway has only FXS ports, so there are no lines to call through".

    Test Case 11 - Routes and Visual Plan

    • Routes shows the tabs "Inbound" and "Outbound"; the tables are still named "Inbound routes" and "Outbound routes".
    • Inbound routes: the list shows DID, caller ID and destination in the same format as the dashboard; delete a route and check the confirmation ("Route will be permanently deleted.").
    • "Create route": the Visual Plan opens inside the interface, in the same tab, full width, at /nethvoice/routes/visual-plan, with the breadcrumb "Routes > Inbound routes > Create inbound route".
    • Set "Name", "DID number" and "Destination" of the route in "Properties", add items from "Items" (drag them onto the canvas, or click them) and connect them; "Create": "Inbound route created" with "Inbound route has been created." and the list shows the route.
    • "Edit" a route: the whole flow is in view when it opens (also on a 1440 px laptop screen); the breadcrumb ends with the route name.
    • "Save" is always enabled: press it without changes: you go back to the list, nothing is saved and no toast is shown.
    • Change an item and "Save" (or Ctrl+S): "Inbound route updated"; an item shared with another route shows "Also used by inbound route . Changes apply there too.".
    • Leave an item with an error and "Save": "Fix N items before saving" guides to the items with errors; nothing is saved.
    • "Find in flow", "Arrange automatically", "Undo"/"Redo", zoom, "Fit to screen", minimap, collapse of a branch, area selection (Shift + drag) and "Download image" work.
    • "Simulate call": "Call simulation" follows a call through the flow, with "Call date and time" for the time conditions and the digits pressed in the menus.
    • Esc with an item selected closes "Properties"; Esc with nothing selected stays on the Visual Plan.
    • Change something and press "Cancel" or the "Inbound routes" breadcrumb: "Discard changes" with "The changes to inbound route will be lost."; "Cancel" stays, "Discard" goes back to the list without saving.
    • Open /nethvoice/routes/visual-plan?route=<DID that does not exist>/: "Inbound route not found".
    • At 390 px "Download image", "Add to flow" and "Simulate call" are reachable without horizontal scroll.
    • The previous Visual Plan in the previous interface shows the routes created or changed here, and vice versa.
    • Outbound routes: edit the trunk priority with drag and drop and with the arrows (keyboard included); "Save"; closing with unsaved changes asks "Unsaved changes".
    • With no outbound routes, "Create default routes" creates them for the chosen country with every enabled trunk, without the AI agents trunk.
    • Sign in with an administrator that can open only Routes: inbound routes have no "Create route" and no "Edit"; opening the address of a route in the Visual Plan shows it with "Read-only access" ("You can view this call flow and simulate calls."), no "Save" and no "Items"; outbound routes have no "Advanced settings".

    Test Case 12 - Devices

    • The section is named "Devices" in English ("Telefoni fisici" in Italian) with the tabs "Phones", "Models" and "Settings".
    • Phones: the list shows model, user, registration status, IP and user agent, "Encrypted" or "Not encrypted"; the MAC can be copied with a click; at 390 px there is no horizontal scroll.
    • "Filter phones" and the "Model", "User" and "Status" filters work together.
    • "Add phones": accepted MAC formats 00:11:22:33:44:55, 0011.2233.4455, 001122334455; invalid and multicast MACs are rejected in step 1; in step 2 a MAC already present ("A phone with this MAC address already exists") or repeated ("This MAC address is repeated in the list") is flagged on its row; the model menu is not cut by the dialog.
    • Close "Add phones" after typing MAC addresses: "Unsaved changes" asks before discarding them.
    • Edit a phone and change its user: the drawer shows "User: A → B." before saving; after "Save" the phone belongs to the new user; if the change fails the previous user is kept.
    • Edit a phone and turn encryption off: "Encryption is disabled" is shown; after saving the list shows "Not encrypted".
    • "Actions" > "Run provisioning" and the row menu "Run provisioning" start the provisioning ("Provisioning started"); "Copy provisioning URL" copies the address ("Provisioning URL copied").
    • Delete a phone: it disappears from the list.
    • Models: open a model (the address keeps ?model=), change a value and leave the page: "Unsaved changes" asks before discarding; upload a firmware ("Upload firmware") and a background image ("Upload background image") and save.
    • Models: "Duplicate" a model from its row menu (details in NethVoice: make possible to copy a template model #7288); "Delete" a custom model is disabled while phones use it ("Delete (model in use)").
    • Settings tab: "Save" is enabled only when "Phone language", "Tone region" or "Provisioning schedule" changed; the passwords are changed in a drawer ("Change admin password", "Change user password").

    Test Case 13 - Integrations

    • Integrations shows the tabs "Customer cards", "Video sources", "Phonebook" and "Parameterized URLs"; there is no "External services" tab and /nethvoice/integrations/external-services opens Integrations.
    • Customer cards, video sources (RTSP streams, gates, door phones), phonebook sources and imports, parameterized URLs: create, edit, test or preview, delete.
    • Every tab in detail: Integrations - redesign admin UI #7943.

    Test Case 14 - Administrator phone (SIP-only phone-island)

    • Sign in as the superadmin: the administrator phone connects by itself; there is no phone control in the top bar.
    • Overview > "Show details" of a user > "Call" (tooltip "Call from the administrator phone"): the user's phone rings with caller name Admin (test); answer, mute, hold, send DTMF, hang up.
    • While the call is in progress, "Call" on another user is disabled with "A call is already in progress"; a user without online devices shows "No device online to call".
    • Open the Overview in a second tab: the phone moves to the new tab; in the first tab the operator details show "The administrator phone is active in another tab" with "Use the phone in this tab", which brings the phone back.
    • The service extension of the phone (770000-770099) does not appear in Users and its calls are not counted in "Calls today" and "Calls per hour".
    • Sign out: the phone is unregistered.
    • Regression: NethVoice CTI and NethLink with the stable phone-island keep working as before (calls, transfer, recording).

    Test Case 15 - Regressions of the previous interface

    • The previous wizard at / keeps working (users, trunks, routes, devices), also signing in there as admin.
    • The previous wizard can still edit a VoIP trunk with an empty password without losing the stored password.
    • Backup and restore of the module keep users, extensions and phones.

    Test Case 16 - Account settings

    • Account menu > "Account settings": the page has the tabs "General" and "API keys"; "General" shows "User interface language", "User interface theme", "Profile", "Change password" and "Two-factor authentication". The limited administrator has the same page.
    • "Language": choose "Italiano": the whole interface switches at once ("Impostazioni account"); reload: it stays in Italian. Another administrator in the same browser keeps its own language.
    • "Theme": "Light", "Dark" and "System" cards; the choice applies at once, is kept after a reload and stays in sync with the theme item of the account menu; with "System" the interface follows the theme of the operating system.
    • "Profile" shows "Username" and "Access" ("Superadmin", "Administrator" or "Limited access").
    • "Change picture": a file that is not JPEG, PNG or WebP shows "Choose a JPEG, PNG or WebP file"; a file over 5 MB shows "Choose a file of 5 MB or less"; a large valid photo is accepted and shown resized in "Profile" and in the account button of the top bar, without a toast.
    • Sign in with the same user in another browser: the same picture is shown.
    • Picture menu > "Remove picture" > confirm ("Your profile picture will be removed."): the avatar goes back to the initial of the username.
    • "Change password" with empty fields: "Enter the current password", "Enter the new password" and "Confirm the new password"; the requirements are marked while typing; a different confirmation shows "Passwords do not match"; a wrong current password shows "Current password is incorrect" on its field.
    • A valid change: "Password changed"; you stay signed in; sign out and sign in with the new password (also NethVoice CTI and the NS8 user portal use the new one).
    • With an external account provider (e.g. Active Directory): "Password change is disabled" with "Your account belongs to an external account provider. Change the password where the account provider is managed.".
    • The PBX language is no longer in the administration: it is chosen in the first configuration wizard and changed later from "Advanced settings".

    Test Case 17 - Two-factor authentication of the administrators

    • "Account settings" > "Two-factor authentication" shows "Disabled" and says that it applies to NethVoice CTI and NethLink too.
    • "Enable two-factor authentication": the drawer shows a QR code and the "Secret key"; "Enable" with an empty code shows "Enter the verification code"; a wrong code shows "The code is not correct or has expired".
    • Scan the QR code, enter the code of the app and "Enable": "Two-factor authentication enabled" with the "Recovery codes" and "You won't see these codes again"; "Copy and close" copies them ("Recovery codes copied"); the page shows "Enabled".
    • Sign out and sign in: after the password the page asks for the "Verification code" (focus on it, no password field); a wrong code shows "The verification code is not correct or has expired. Enter a new code." and empties the field; the right code opens the dashboard.
    • "Back" on the code step goes back to the password with the username kept.
    • Sign in with a recovery code instead of the code of the app: it works once; the same recovery code a second time is refused.
    • Too many wrong codes: "Too many failed attempts" with "Try again in 15 minutes.".
    • Sign in to NethVoice CTI (and NethLink) with the same user: the verification code is asked there too.
    • Stop the CTI middleware and sign in: "Two-factor authentication cannot be checked now. Try again in a few minutes."; nothing else lets you in.
    • "Disable two-factor authentication": "Disable" with empty fields asks for the password; a wrong "Account password" shows "Incorrect password"; with the password and a code: "Two-factor authentication disabled" / "Sign-ins ask only for the password"; NethVoice CTI and NethLink are signed out and then ask only for the password.
    • Superadmin > "Access control": the "Two-factor authentication" column shows the status of each user; row menu of a user with two-factor enabled > "Reset two-factor authentication" > "Reset": "Two-factor authentication reset"; that user signs in again with the password only, also in NethVoice CTI. The row of your own account has no reset.

    Test Case 18 - API keys

    • "Account settings" > "API keys": with no keys, "No API keys configured"; also the limited administrator has the tab.
    • "Create API key" with empty fields: "Enter a name", "Select the access" and "Enter your account password"; "Expires in (days)" 400: "Enter a number of days between 1 and 365"; a wrong password: "Incorrect password" under the field.
    • Name crm, "Access" "Read-only", "Expires in (days)" empty (90), password, "Create": "API key created" shows the key once ("You won't see this key again"), "Show key" / "Hide key", "Copy and close" ("API key copied").
    • The list shows "Name", access, "Last used" ("Never"), "Expires" and "Status" "Active".
    • curl -s -H "Authorization: Bearer <key>" https://<voice host>/freepbx/rest/trunks: the trunks are returned; "Last used" updates in the list.
    • With the read-only key, a POST (e.g. curl -X POST ... /freepbx/rest/trunks) returns 403; with a "Read and write" key a POST works and a DELETE returns 403.
    • A key never reaches /freepbx/rest/me or /freepbx/rest/admins (403), and a key of the limited administrator gets 403 on sections it cannot open.
    • More than 20 requests in one second return 429 with Retry-After.
    • Row menu > "Revoke": "API key crm will be revoked and stop working immediately. This cannot be undone."; confirm: "API key revoked", status "Revoked"; the same curl returns 401 {"error":"Unauthorized: invalid api key"}.
    • With 5 active keys "Create API key" explains "You have reached the maximum number of API keys (5). Revoke one to create a new key.".
    • Revoke the access of an administrator from "Access control": its keys stop working (401).

    Test Case 19 - Access control

    • Superadmin > "Access control": "Users with access" lists users, "Access" ("Superadmin", "Administrator", "Limited access" with the sections), "Source" and "Two-factor authentication"; "Domain groups" lists the groups that grant access with their members.
    • Your own account and the domain administrators cannot be changed (the reason is shown on hover).
    • "Grant access" > "Existing user": choose a domain user without access, "Limited access" with "Dashboard" and "Routes", "Grant": "Access granted"; that user signs in and sees only those sections.
    • "Grant access" with no section chosen: "Choose at least one section".
    • "Grant access" > "New user": a new account is created in the user domain (without an extension) with the chosen access and can sign in.
    • "Edit access": change the sections; the user sees the new sections after a reload.
    • "Revoke access": " will no longer be able to access the administration and will be signed out at once."; confirm: "Access revoked"; the open session of that user is signed out at once, its profile picture is removed and its API keys stop working.
    • Instance with local administrator accounts created in the previous interface: "Local accounts can no longer sign in" lists them with "Convert to a domain user" and "Delete local account"; "Convert" replaces the account with a domain user with the same access ("Local account converted").
    • With an external account provider: "Access is managed in the account provider" and the groups to create are listed with their exact names.
    • The limited administrator cannot open /nethvoice/admin-control ("Section not available").

    Test Case 20 - Audit log

    • As the superadmin, create, change and delete a user, a trunk and an inbound route, then sign out.
    • NS8 administration > "System logs", filtered on the NethVoice application (or search nethvoice-audit): one nethvoice-audit: line per change with "event":"request", user, auth, method, route, path, status, ip and module; one line "event":"login" with "result":"success" and one "event":"logout".
    • A failed sign-in writes "event":"login" with "result":"failure" and a reason; a username with invalid characters is not written.
    • A change made with an API key has "auth":"api_key" and the api_key_id.
    • Reads (GET), connection tests, previews and the automatic session of the administrator phone write no line.
    • These lines are not in the cluster "Audit trail" of NS8 (only in the system logs).

    Test Case 21 - The interface remembers the view

    • Users: type a filter, set a group filter, sort by another column, go to page 2, open another section and come back: filter, sort and page are the same; reload: they are still the same.
    • Open "Trunks" > "Physical", go to the dashboard and click "Trunks" in the side menu: "Physical" opens again; the same for the tabs of Users and groups, Routes, Devices, Integrations and Account settings.
    • Inbound routes: filter and sort descending, switch to "Outbound" and back, reload: both are kept; "Clear filter" clears only the text and keeps the sort.
    • Devices > "Phones" and "Models", Integrations > "Video sources": filters and pages are kept after leaving the tab and after a reload.
    • Scroll down a long list, open a row's page or another section, then use the back button of the browser: the list opens at the same scroll position.
    • Remove some rows so that the saved page no longer exists, reload: the last page is shown, not an empty one.
    • Sign in with another administrator in the same browser: it starts from its own view, not from the one of the first administrator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

milestone goal 👑nethvoice

Projects

  • Status
    In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions