Skip to content

Conversation

@its-mitesh-kumar
Copy link
Member

@its-mitesh-kumar its-mitesh-kumar commented Jan 6, 2026

Description

Adds conversation sorting and per-user settings persistence using Backstage's StorageApi. Users can now sort conversations by date (newest/oldest) or name (A-Z/Z-A) via a dropdown next to the search input. Pinned chats, the pinned chats toggle state, and sort order now persist across sessions, scoped per-user. Upgraded @patternfly/chatbot to 6.5.0-prerelease.28 for searchActionEnd prop support.

Fixes

UI after Changes

Screen.Recording.2026-01-05.at.10.04.13.PM.mov

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 6, 2026

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/lightspeed/packages/app none v0.0.0
@red-hat-developer-hub/backstage-plugin-lightspeed workspaces/lightspeed/plugins/lightspeed minor v1.1.2

@its-mitesh-kumar its-mitesh-kumar changed the title Feat/lightspeed chat sorting clean feat(lightspeed): add conversation sorting with persistence, persisting pinned chats and pinned chats toggle per-user Jan 6, 2026
Copy link
Contributor

@HusneShabbir HusneShabbir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works as expected,
/lgtm
Screenshot 2026-01-06 at 6 38 11 PM

@openshift-ci
Copy link

openshift-ci bot commented Jan 7, 2026

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm label Jan 7, 2026
Copy link
Member

@debsmita1 debsmita1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the changes locally

Screen.Recording.2026-01-09.at.12.42.57.PM.mov

@debsmita1
Copy link
Member

debsmita1 commented Jan 9, 2026

@its-mitesh-kumar
I have tested this on RHDH with the following configuration:

red-hat-developer-hub.backstage-plugin-lightspeed:
      translationResources:
        - importName: lightspeedTranslations
          module: Alpha
          ref: lightspeedTranslationRef
      appIcons:
        - name: LightspeedIcon
          module: LightspeedPlugin
          importName: LightspeedIcon
      dynamicRoutes:
        - path: /lightspeed
          importName: LightspeedPage
          module: LightspeedPlugin
          menuItem:
            icon: LightspeedIcon
            text: Lightspeed
userSettings:
  persistence: browser

My chat preferences persist, but when switching to the database

userSettings:
  persistence: database

My preferences are not saved

@its-mitesh-kumar its-mitesh-kumar force-pushed the feat/lightspeed-chat-sorting-clean branch from 960e422 to 7627045 Compare January 13, 2026 12:15
Signed-off-by: its-mitesh-kumar <[email protected]>
Signed-off-by: its-mitesh-kumar <[email protected]>
Signed-off-by: its-mitesh-kumar <[email protected]>
@its-mitesh-kumar its-mitesh-kumar force-pushed the feat/lightspeed-chat-sorting-clean branch from a0ad8d9 to 56e4a8c Compare January 13, 2026 14:30
Signed-off-by: its-mitesh-kumar <[email protected]>
Signed-off-by: its-mitesh-kumar <[email protected]>
@sonarqubecloud
Copy link

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.

5 participants