Skip to content

feat: favorites, notes, impersonation, delete - #271

Open
andre8244 wants to merge 17 commits into
mainfrom
feat/favorite-systems
Open

andre8244 wants to merge 17 commits into
mainfrom
feat/favorite-systems

Conversation

@andre8244

@andre8244 andre8244 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

📋 Description

  • Favorite systems: star in the list, on the system page and in the row menu; Favorites filter and sort; personal, read-only while impersonating (migration 062)
  • Notes: icon with tooltip next to the name in system, company and application lists
  • Tables: rows stay while a filter, sort or page loads; progress bar after 500 ms; skeleton only on first load
  • Impersonation: no target consent; session lasts IMPERSONATION_SESSION_DURATION (default 1h); consent endpoints and UI removed, table dropped (migration 063); staff can extend a session from the badge tooltip
  • Delete: "Archive" renamed to "Delete" as in the design system; deleted objects and Restore are for the Owner organization only (filters hidden, API refuses status=deleted and restore elsewhere)
  • Open system: Open NethServer / NethSecurity button on the system page, enabled even when the reachability check fails (with a warning); admins can set a custom web interface URL (migration 064)
  • Design system alignment: confirmations say what happens instead of asking "Are you sure?"; "Release license" instead of "Free license"; card buttons left-aligned; design system colors for counter card titles and third-party apps
  • User manual updated (en, it)

Related Issue: none

See also: nethesis/nebula-design-system#10, NethServer/agents#43

🚀 Testing Environment

To trigger a fresh deployment of all services in the PR preview environment, comment:

update deploy

Automatic PR environments:

✅ Merge Checklist

Code Quality:

  • Backend Tests
  • Collect Tests
  • Sync Tests
  • Frontend Tests

Builds:

  • Backend Build
  • Collect Build
  • Sync Build
  • Frontend Build

Users who follow many systems need a quick way back to the few they
work on. Each user can now star systems: the star sits next to the
name in the list and on the system page, and the row menu adds or
removes it too. A filter lists only favorites and a sort brings them
to the top.

Favorites are personal, kept in a new system_favorites table
(migration 062) and removed with the user. They are read-only while
impersonating. The authz suite covers the new endpoints.

Assisted-by: Claude Code:claude-sonnet-5-5
Notes were visible only on the system page. An icon next to the
name in the systems list now shows them in a tooltip, cut at ten
lines, so the list tells which systems carry notes.

Assisted-by: Claude Code:claude-sonnet-5-5
Distributors, resellers, customers and applications carry notes too,
but the lists did not tell which ones have them. Their tables now
show the same notes icon as the systems list, next to the name: its
tooltip shows the notes, cut at ten lines. The icon moves to the
common components, since five tables share it.

Assisted-by: Claude Code:claude-opus-5-5
@andre8244 andre8244 self-assigned this Nov 23, 2026
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 23, 2026 08:45 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 08:46 — with Render Active
@github-actions

Copy link
Copy Markdown
Contributor

🔗 Redirect URIs Added to Logto

The following redirect URIs have been automatically added to the Logto application configuration:

Redirect URIs:

  • https://my-proxy-qa-pr-271.onrender.com/login-redirect

Post-logout redirect URIs:

  • https://my-proxy-qa-pr-271.onrender.com/login

These will be automatically removed when the PR is closed or merged.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🚨 Breaking my.nethesis.it API change detected

Preview documentation

Structural change details

Added (4)

  • DELETE /systems/{id}/favorite
  • POST /impersonate
  • POST /impersonate/extend
  • PUT /systems/{id}/favorite

Modified (6)

  • GET /systems
    • 200 response modified
      • application/json content type modified
        • data property modified
          • systems property modified
    • favorite query parameter added
  • GET /systems/export
    • favorite query parameter added
  • GET /systems/{id}
    • 200 response modified
      • application/json content type modified
        • data property modified
          • ui_url, is_favorite properties added
  • POST /systems
    • 201 response modified
      • application/json content type modified
        • data property modified
          • ui_url, is_favorite properties added
  • POST /systems/{id}/regenerate-secret
    • 200 response modified
      • application/json content type modified
        • data property modified
          • ui_url, is_favorite properties added
  • PUT /systems/{id}
    • application/json content type modified
      • ui_url property added
    • 200 response modified
      • application/json content type modified
        • data property modified
          • ui_url, is_favorite properties added

Removed (4)

  • [Breaking] DELETE /impersonate/consent
    • Removing a resource is always breaking unless it was deprecated before [Breaking]
  • [Breaking] GET /impersonate/consent
    • Removing a resource is always breaking unless it was deprecated before [Breaking]
  • [Breaking] POST /impersonate
    • Removing a resource is always breaking unless it was deprecated before [Breaking]
  • [Breaking] POST /impersonate/consent
    • Removing a resource is always breaking unless it was deprecated before [Breaking]
Powered by Bump.sh

Status is the filter people reach for first: the favorites filter now
follows it, in the systems list and in the manual.

Assisted-by: Claude Code:claude-opus-5-5
A filter, sort or page change sent every table back to its skeleton:
the rows vanished, the table jumped and the sort button lost the
focus. Tables now keep their rows until the new ones arrive, and only
the first load shows the skeleton. Queries tied to one system or
session keep the rows only while it stays the same.

A refresh that lasts over 500 ms shows a progress bar over the top
border of the table, out of the layout, in place of the spinner that
wrapped the filters. Elsewhere the spinner stays, now shown after
500 ms and kept at least 500 ms.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 08:51 — with Render Active
Next to the page heading the 16 px star looked small. It takes a
20 px icon there, in a 28 px button that still fits the 32 px heading
line, so the header does not grow.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 08:55 — with Render Active
Owner and Staff users now impersonate any active user without waiting
for a consent the user had to grant from the account page. The consent
endpoints, the top bar badge and the consent controls are gone, and
migration 063 drops the impersonation_consents table. A session lasts
IMPERSONATION_SESSION_DURATION (default 1h, capped at 168h) instead of
the remaining consent window. Self, Owner-role and inactive targets
are still refused, and every session is still audited.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 09:37 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 23, 2026 09:37 — with Render Active
Endpoints in the impersonation audit log are long paths with ids and
query strings, with no space to break on: the table grew wider than
the modal. The column now wraps anywhere.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 09:44 — with Render Active
The timer tooltip of the impersonation badge gets an "Extend session"
link: the session restarts for a full IMPERSONATION_SESSION_DURATION,
with no confirmation and no limit, and a toast confirms the new time.

POST /api/impersonate/extend takes the impersonation token, never an
API key, issues a new token for the same session and revokes the old
one. It re-checks the impersonator's permission and the target from
their current state, and audits the extension as session_extended.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 23, 2026 10:52 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 10:52 — with Render Active
The design system calls the soft delete "Delete", not "Archive": the
action, its status, modals and toasts now say Delete with the trash
icon, Italian Destroy becomes "Distruggi" so it no longer clashes with
"Elimina", and the delete, destroy and restore confirmations follow
the writing guidelines.

Deleted objects belong to the Owner organization: elsewhere the status
filters drop "Deleted", the API refuses lists and exports filtered on
status=deleted, and the restore routes refuse any other caller. The
authz suite and the user manual follow.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 23, 2026 13:47 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 13:47 — with Render Active
The writing guidelines rule out "Are you sure...?" and questions in
modals: suspend, reactivate, reset password, regenerate secret, take
over and backup delete now name the object and say what happens, and
the remove from rebranding title is an action with a Remove button.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 13:57 — with Render Active
"Free" reads as "free of charge": the glossary term for undoing an
assignment is "Release", so the button, its toast and the hints that
name it say Release license. Italian keeps "Libera licenza".

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 14:02 — with Render Active
The icon and the title of a counter card use the secondary neutral
text color instead of tertiary neutral; the counter keeps its color.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 14:10 — with Render Active
Prettier puts the shortened icon tag back on one line.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 14:12 — with Render Active
The design system keeps a button inside a card left-aligned, like
the rest of its content: the go-to-page, legacy My, third-party app
and add-on buttons are no longer pushed to the right edge.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 14:34 — with Render Active
The description of a third-party app and the labels of its info
widget use the tertiary neutral text color, and the widget values
use the text tokens of the design system instead of raw palette
shades; the widget also gets space below it, before the button.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 14:46 — with Render Active
@andre8244 andre8244 changed the title feat(systems): favorite systems and notes in lists feat: favorites, notes, impersonation, delete Nov 23, 2026
The system page has an Open NethServer / Open NethSecurity button
again. It stays enabled when the reachability check fails, since the
check runs from the server and the system may still open from the
user's network: a warning explains it, and suggests a custom address.

Admins can set that address as the web interface URL of a system
(migration 064). Empty means the default derived from the FQDN, and
the check then probes only the custom address. The probe refuses
non-public hosts at connect time too, against DNS rebinding.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 23, 2026 16:44 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 23, 2026 16:44 — with Render Active

This branch was successfully deployed

2 active deployments
feat/favorite-systems - my-backend-qa PR #271 — 26eac395 Deployed Nov 23, 2026 by edospadoni
feat/favorite-systems - my-frontend-qa PR #271 — 26eac395 Deployed Nov 23, 2026 by edospadoni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants