Skip to content

Dashboard inline editing#318

Open
OlhaTmlk wants to merge 4 commits intoRedHatInsights:masterfrom
OlhaTmlk:dashboard-inline-editing
Open

Dashboard inline editing#318
OlhaTmlk wants to merge 4 commits intoRedHatInsights:masterfrom
OlhaTmlk:dashboard-inline-editing

Conversation

@OlhaTmlk
Copy link
Copy Markdown
Contributor

@OlhaTmlk OlhaTmlk commented Apr 14, 2026

Description

Summary

  • Added inline editing for dashboard names on the generic dashboard page — users can click a pencil icon next to the dashboard title to rename it in place
  • Added a rename API function (renameDashboardTemplate) and integrated it into the useDashboardTemplate hook so the updated name reflects immediately without a full page refetch
  • Added renameDashboardAtom to keep the dashboards list in sync after renames
  • Add Playwright E2E tests for inline renaming (confirm + verify in Dashboard Hub) and cancel editing (verify original name preserved)

Details

  • GenericHeader: Toggles between a read-only title and an editable TextInput with confirm/cancel buttons. Supports Enter to confirm and Escape to cancel.
  • useDashboardTemplate: New renameDashboard callback that calls the API and optimistically updates local dashboard state.
  • API: New renameDashboardTemplate function calling PATCH /api/widget-layout/v1/{id}/rename.

RHCLOUD46114


Screenshots

Screenshot 2026-04-14 at 10 43 21 Dashboard that will be renamed
Screenshot 2026-04-14 at 10 43 31 Button for edit dashboard name
Screenshot 2026-04-14 at 10 43 43 Editing mode with prefilled name
Screenshot 2026-04-14 at 10 44 02 New name entered
Screenshot 2026-04-14 at 10 44 08 New name of the dashboard at Generic Page
Screenshot 2026-04-14 at 10 44 22 Dashboard with new name at Dashboard Hub

@OlhaTmlk OlhaTmlk force-pushed the dashboard-inline-editing branch from 437b0e3 to 229c858 Compare April 14, 2026 09:00
@OlhaTmlk OlhaTmlk force-pushed the dashboard-inline-editing branch from 3cdbb43 to e88deb5 Compare April 20, 2026 12:06
@OlhaTmlk OlhaTmlk marked this pull request as ready for review April 20, 2026 12:46
@OlhaTmlk OlhaTmlk requested a review from a team as a code owner April 20, 2026 12:46
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.

1 participant