Skip to content

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

Merged
andre8244 merged 29 commits into
mainfrom
feat/favorite-systems
Nov 25, 2026
Merged

andre8244 merged 29 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; resuming or extending re-checks the impersonator's permission
  • 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 an info hint); 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"; toasts name the object type; card buttons left-aligned; tooltip actions reachable by keyboard; design system colors for counter card titles, third-party apps and the favorite star
  • 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
The hint uses the info icon of the other tooltips, says in one sentence
where to set another address, linking the field label and the Edit
system link, and the drawer it opens focuses the web interface URL.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 24, 2026 11:01 — with Render Active
Resuming a session from the status endpoint re-reads the impersonator:
one who lost impersonate:users, or whose target became an Owner-role
account, has the session cleared instead of a new token. Extending
fails when Redis cannot record it, so a token never outlives its
session. Handler tests run against an in-memory Redis.

Assisted-by: Claude Code:claude-opus-5-5
Extend session and Edit system were links without an address, which
the keyboard skips, and the impersonation badge opened its tooltip
from an element that takes no focus. They are buttons now, styled
for the tooltip background; the system page hint is announced in
full and its icon is aligned with the Open button. The manual calls
it an information icon, as it is.

Assisted-by: Claude Code:claude-opus-5-5
A request still in flight when its token is replaced, by extending
or ending an impersonation or by a refresh, gets 401 for the old
token only: it is replayed once with the current one instead of
ending the session.

Assisted-by: Claude Code:claude-opus-5-5
The descriptions of the delete, destroy and restore toasts say the
object type, as the writing guidelines ask, and the Italian texts
take the gender of each object instead of a feminine for all.

Assisted-by: Claude Code:claude-opus-5-5
Favorites are keyed on the Logto ID, with no foreign key to users:
prune deletes them together with the users, when the table exists.

Assisted-by: Claude Code:claude-opus-5-5
The star takes the Icon/Favourite color of the design system,
Indigo 400 in the dark theme, and its hover color from a token too.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 24, 2026 15:43 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 24, 2026 15:43 — with Render Active
@edospadoni
edospadoni temporarily deployed to feat/favorite-systems - my-proxy-qa PR #271 November 25, 2026 07:00 — with Render Destroyed
@edospadoni
edospadoni deployed to feat/favorite-systems - my-frontend-qa PR #271 November 25, 2026 07:00 — with Render Active
@edospadoni
edospadoni deployed to feat/favorite-systems - my-backend-qa PR #271 November 25, 2026 07:00 — with Render Active
@edospadoni
edospadoni temporarily deployed to feat/favorite-systems - my-collect-qa PR #271 November 25, 2026 07:00 — with Render Destroyed
A request refused for a token replaced since was replayed with the
current one, whoever it belonged to. When an impersonation ended with a
request in flight, the request ran again as the impersonator, outside
the impersonation audit.

The login store now counts identity switches (an impersonation started,
restored or ended). A request refused after a switch is given up: it is
neither replayed nor refreshed for. A token replaced within the same
identity, by a refresh or an extended session, still gets the replay.

Assisted-by: Claude Code:claude-sonnet-5-5
List filters outlive an impersonation. A "Deleted" status ticked in the
Owner organization reached a user who cannot see deleted objects: the
backend refused the list, the page turned forbidden and the dropdown no
longer offered the option to untick it.

Systems, users, distributors, resellers and customers now drop the
status as soon as deleted objects become hidden, falling back to the
default statuses when nothing else is left.

Assisted-by: Claude Code:claude-sonnet-5-5
@edospadoni
edospadoni temporarily deployed to feat/favorite-systems - my-frontend-qa PR #271 November 25, 2026 14:31 — with Render Destroyed
@andre8244
andre8244 requested a review from edospadoni November 25, 2026 14:52
@andre8244 andre8244 added the run-e2e Run the full-stack browser suite on this PR label Nov 25, 2026
@github-actions github-actions Bot removed the run-e2e Run the full-stack browser suite on this PR label Nov 25, 2026
The migrations of this branch were numbered from 070, leaving a gap
after 061, the highest on main. They now follow it without gaps:
system_favorites is 062, drop_impersonation_consents 063 and
add_systems_ui_url 064.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni
edospadoni temporarily deployed to feat/favorite-systems - my-backend-qa PR #271 November 25, 2026 15:00 — with Render Destroyed
@andre8244 andre8244 added the run-e2e Run the full-stack browser suite on this PR label Nov 25, 2026
@github-actions github-actions Bot removed the run-e2e Run the full-stack browser suite on this PR label Nov 25, 2026
@andre8244
andre8244 merged commit 4a5cdb3 into main Nov 25, 2026
18 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🗑️ Redirect URIs Removed from Logto

The following redirect URIs have been automatically removed from the Logto application configuration:

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

Cleanup completed for PR #271.

andre8244 added a commit that referenced this pull request Nov 25, 2026
Main took 062-064 with the favorite systems, impersonation and system
web interface migrations of #271. The support migrations follow them:
062-069 become 065-072, in the same order.

QA already records them under the new numbers, with the checksums of
these files.

Assisted-by: Claude Code:claude-opus-5-5
@edospadoni edospadoni added this to the v1.0.0 milestone Nov 30, 2026

This branch was successfully deployed

No deployments
feat/favorite-systems - my-backend-qa PR #271 — 5537ad7f Deployed Nov 25, 2026 by edospadoni
feat/favorite-systems - my-frontend-qa PR #271 — c0519ba8 Deployed Nov 25, 2026 by edospadoni
feat/favorite-systems - my-collect-qa PR #271 — be971eaf Deployed Nov 25, 2026 by edospadoni
feat/favorite-systems - my-proxy-qa PR #271 — be971eaf Deployed Nov 25, 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