[PR #3245] [MERGED] spotlight: navigation searcher added #4304

Closed
opened 2026-03-17 01:51:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3245
Author: @anwarulislam
Created: 8/7/2023
Status: Merged
Merged: 8/12/2023
Merged by: @AndrewBastin

Base: release/2023.8.0Head: feat/spotlight-navigation


📝 Commits (7)

  • 5eea96c feat: navigation searcher added
  • f3805d5 feat: action handler defined for back and forward
  • fbbc149 chore: fix comments
  • b2ee695 chore: remove back and forward definition
  • 9b01a50 chore: remove unused import
  • 0dfaba8 chore: rename document entries without nav to simplify check
  • 28d5990 chore: onDocSelected verifies passed ID

📊 Changes

3 files changed (+112 additions, -200 deletions)

View changed files

📝 packages/hoppscotch-common/src/components.d.ts (+12 -200)
📝 packages/hoppscotch-common/src/components/app/spotlight/index.vue (+2 -0)
packages/hoppscotch-common/src/services/spotlight/searchers/navigation.searcher.ts (+98 -0)

📄 Description

Closes HFE-118

Description

🤖 Generated by Copilot at 8a556b0

Summary

🗺️🔦🚀

This pull request enhances the spotlight feature by adding a new service that allows users to search and navigate to different app routes. The service is implemented in navigation.searcher.ts and integrated with the spotlight component in index.vue.

Sing, O Muse, of the skillful coder who devised
A new service for the spotlight, NavigationSpotlightSearcherService,
Which extends the base class of StaticSpotlightSearcherService
And provides the swift and easy paths for the user to navigate.

Walkthrough

  • Create and register a new service for navigation-related actions for the spotlight feature (link, link, link)
    • Import the NavigationSpotlightSearcherService class from navigation.searcher.ts in index.vue (link)
    • Use the useService hook to register the service as a dependency in index.vue (link)
    • Define the NavigationSpotlightSearcherService class in navigation.searcher.ts (link)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3245 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 8/7/2023 **Status:** ✅ Merged **Merged:** 8/12/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.8.0` ← **Head:** `feat/spotlight-navigation` --- ### 📝 Commits (7) - [`5eea96c`](https://github.com/hoppscotch/hoppscotch/commit/5eea96c8bec727c95d2741f050a6a5789a4b8b93) feat: navigation searcher added - [`f3805d5`](https://github.com/hoppscotch/hoppscotch/commit/f3805d51a1f34327420d96b3a53f3a285cf4fbd1) feat: action handler defined for back and forward - [`fbbc149`](https://github.com/hoppscotch/hoppscotch/commit/fbbc149ef8861fcacaa7c19af62e212fd6e0d14c) chore: fix comments - [`b2ee695`](https://github.com/hoppscotch/hoppscotch/commit/b2ee695a40c103c0a41e480909af524a224d5eb2) chore: remove back and forward definition - [`9b01a50`](https://github.com/hoppscotch/hoppscotch/commit/9b01a509e77e97f067c1540dd5453da7e5a5a6a5) chore: remove unused import - [`0dfaba8`](https://github.com/hoppscotch/hoppscotch/commit/0dfaba8376b67f6ff928fd8fe9f8fcc86eb896ef) chore: rename document entries without nav to simplify check - [`28d5990`](https://github.com/hoppscotch/hoppscotch/commit/28d59909dc66745fa4b73eb63e57bfe0095ebaa4) chore: onDocSelected verifies passed ID ### 📊 Changes **3 files changed** (+112 additions, -200 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components.d.ts` (+12 -200) 📝 `packages/hoppscotch-common/src/components/app/spotlight/index.vue` (+2 -0) ➕ `packages/hoppscotch-common/src/services/spotlight/searchers/navigation.searcher.ts` (+98 -0) </details> ### 📄 Description Closes HFE-118 ### Description <!-- copilot:all --> ### <samp>🤖 Generated by Copilot at 8a556b0</samp> ### Summary 🗺️🔦🚀 <!-- 1. 🗺️ - This emoji represents navigation, maps, and routes, which are related to the main purpose of the new service. 2. 🔦 - This emoji represents spotlight, search, and discovery, which are related to the feature that the new service enhances. 3. 🚀 - This emoji represents action, launch, and speed, which are related to the effect of the new service on the app's performance and user experience. --> This pull request enhances the spotlight feature by adding a new service that allows users to search and navigate to different app routes. The service is implemented in `navigation.searcher.ts` and integrated with the spotlight component in `index.vue`. > _Sing, O Muse, of the skillful coder who devised_ > _A new service for the spotlight, `NavigationSpotlightSearcherService`,_ > _Which extends the base class of `StaticSpotlightSearcherService`_ > _And provides the swift and easy paths for the user to navigate._ ### Walkthrough * Create and register a new service for navigation-related actions for the spotlight feature ([link](https://github.com/hoppscotch/hoppscotch/pull/3245/files?diff=unified&w=0#diff-c55b5edadff8369ee5dfb127a95bfe09eb3757ff520bdecf2be9e24bf405482fR98), [link](https://github.com/hoppscotch/hoppscotch/pull/3245/files?diff=unified&w=0#diff-c55b5edadff8369ee5dfb127a95bfe09eb3757ff520bdecf2be9e24bf405482fR114), [link](https://github.com/hoppscotch/hoppscotch/pull/3245/files?diff=unified&w=0#diff-e3d896d918c137938ff8212832315cc0547974229fa001e36f5ed5dd72c3f5fcR1-R97)) - Import the `NavigationSpotlightSearcherService` class from `navigation.searcher.ts` in `index.vue` ([link](https://github.com/hoppscotch/hoppscotch/pull/3245/files?diff=unified&w=0#diff-c55b5edadff8369ee5dfb127a95bfe09eb3757ff520bdecf2be9e24bf405482fR98)) - Use the `useService` hook to register the service as a dependency in `index.vue` ([link](https://github.com/hoppscotch/hoppscotch/pull/3245/files?diff=unified&w=0#diff-c55b5edadff8369ee5dfb127a95bfe09eb3757ff520bdecf2be9e24bf405482fR114)) - Define the `NavigationSpotlightSearcherService` class in `navigation.searcher.ts` ([link](https://github.com/hoppscotch/hoppscotch/pull/3245/files?diff=unified&w=0#diff-e3d896d918c137938ff8212832315cc0547974229fa001e36f5ed5dd72c3f5fcR1-R97)) <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:51:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4304
No description provided.