Skip to content

Conversation

@its-mitesh-kumar
Copy link
Member

@its-mitesh-kumar its-mitesh-kumar commented Jan 5, 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)

Signed-off-by: its-mitesh-kumar <[email protected]>
Signed-off-by: its-mitesh-kumar <[email protected]>
Signed-off-by: its-mitesh-kumar <[email protected]>
@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 5, 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
@red-hat-developer-hub/backstage-plugin-lightspeed workspaces/lightspeed/plugins/lightspeed minor v1.1.1

@its-mitesh-kumar its-mitesh-kumar changed the title Feat/light speed feat(lightspeed): add conversation sorting with persistence, persisting pinned chats and pinned chats toggle per-user Jan 5, 2026
@debsmita1 debsmita1 requested a review from aprilma419 January 5, 2026 16:52
@debsmita1
Copy link
Member

@aprilma419 Should we change the sort icon when the order is changed?

@aprilma419
Copy link

@aprilma419 Should we change the sort icon when the order is changed?

@debsmita1 Good catch. Yes, we should change the icon if the order is changed -- show the "sort-amount-down-alt" icon as below:
fa-sort-amount-down-alt

BTW, added the annotation in Figma too: https://www.figma.com/design/urwU8VqRvHfbxMqxeVknrv/RHDH-Lightspeed---AI-Assistant?node-id=2678-8255&t=465CSXMtfcMw9Lw7-1

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.

Functionality looks correct. The only concern is the warning and how it may affect testing /cc @jrichter1
Screenshot 2026-01-06 at 12 21 36 PM

rhdh-bot and others added 7 commits January 6, 2026 13:23
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ptions for form widgets (redhat-developer#1985)

* feat: add fetch:error:skip and fetch:response:default options for form widgets

* refactor: rename fetch:error:skip to fetch:error:ignoreUnready for clarity
…veloper#1996)

* chore: RHINENG-22798 handle cost.[cluster_name] permission

* chore - simplified api call to get clusters

* chore: fixed router tests

* chore :  fixed prettier

* chore: updated api reports
…loper#1990)

* fix(orchestrator): resolve TypeScript compilation errors

Fixes RHIDP-11204

This PR fixes TypeScript compilation errors in the orchestrator plugins:

1. Fix incorrect import paths:
   - Change '@backstage/types/index' to '@backstage/types' in 7 files

2. Add missing type declarations:
   - Add '@types/js-yaml' to devDependencies in orchestrator-common
   - Add '@types/js-yaml' to devDependencies in scaffolder-backend-module-orchestrator

3. Add missing devDependencies for frontend plugin:
   - Add 'react', 'react-dom', 'react-router-dom' to orchestrator devDependencies
     (required for dynamic plugin export to resolve peer dependencies)

Files modified:
- plugins/orchestrator-common/package.json
- plugins/orchestrator/package.json
- plugins/scaffolder-backend-module-orchestrator/package.json
- plugins/orchestrator-form-react/src/components/AuthRequester.tsx
- plugins/orchestrator-form-widgets/src/uiPropTypes.ts
- plugins/orchestrator-form-widgets/src/utils/evaluateTemplate.test.ts
- plugins/orchestrator-form-widgets/src/utils/useFetch.ts
- plugins/orchestrator-form-widgets/src/utils/useFetchAndEvaluate.ts
- plugins/orchestrator/src/utils/deepSearchObject.ts
- plugins/scaffolder-backend-module-orchestrator/src/actions/getWorkflowParams.ts

* fix(orchestrator-form-widgets): add react-dom and react-router-dom to peerDependencies

- Add react-dom and react-router-dom to peerDependencies in orchestrator-form-widgets
- This fixes the webpack bundling error during scalprum dynamic plugin export
- Ensures these dependencies are treated as externals rather than bundled

* chore: update yarn.lock for orchestrator-form-widgets peerDependencies

- Update yarn.lock to reflect react-dom and react-router-dom peerDependencies changes
- Ensures proper dependency resolution for dynamic plugin export

* Fix TypeScript compilation errors for multiple packages

This change addresses multiple TypeScript compilation errors that were hindering builds, including import path corrections, adding missing type declarations, and resolving peer dependencies.

* fix(changeset): add proper YAML frontmatter to fix-tsc-compilation-errors.md
Signed-off-by: its-mitesh-kumar <[email protected]>
@christoph-jerolimov
Copy link
Member

Hi @its-mitesh-kumar, I see a new dependency @monaco-editor/react but no usage (in the diff) for this. Is this dependency used?

@its-mitesh-kumar
Copy link
Member Author

its-mitesh-kumar commented Jan 6, 2026

@aprilma419 Should we change the sort icon when the order is changed?

@debsmita1 Good catch. Yes, we should change the icon if the order is changed -- show the "sort-amount-down-alt" icon as below:
BTW, added the annotation in Figma too: https://www.figma.com/design/urwU8VqRvHfbxMqxeVknrv/RHDH-Lightspeed---AI-Assistant?node-id=2678-8255&t=465CSXMtfcMw9Lw7-1

@debsmita1 @aprilma419 Now handled.

Screen.Recording.2026-01-06.at.2.33.04.PM.mov

@its-mitesh-kumar
Copy link
Member Author

its-mitesh-kumar commented Jan 6, 2026

Hi @its-mitesh-kumar, I see a new dependency @monaco-editor/react but no usage (in the diff) for this. Is this dependency used?

@christoph-jerolimov
@monaco-editor/react and monaco-editor are required peer dependencies of @patternfly/[email protected]. We upgraded to this prerelease version to use the new searchActionEnd prop on ChatbotConversationHistoryNav for the sort dropdown feature.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

@its-mitesh-kumar
Copy link
Member Author

Closing it as created a PR with clean commits #2003

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.

10 participants