forked from radiantearth/stac-browser
-
Notifications
You must be signed in to change notification settings - Fork 1
Add natural language search #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
vgeorge
wants to merge
21
commits into
main
Choose a base branch
from
natural-language-search-demo-devseed
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
29d61fe
Hack to demo natural language search
sunu c428150
feat: add config option to enable/disable semantic searh
vgeorge d6ae6b9
fix: do not display default search form when natural query is enabled
vgeorge fa3879c
feat: move natural language input to SearchFilter component
vgeorge ff0078f
feat: improve natural language search UI with better user guidance
vgeorge b2f91e0
feat: add natural language search with explanation display and loadin…
vgeorge 1f66dfd
feat: populate temporal extent from natural language search response
vgeorge 35a52cb
feat: display natural language search intersects polygon on map with …
vgeorge b03fd4d
feat: populate collections filter from natural language search response
vgeorge ae83557
feat: populate items per page from natural language search response
vgeorge 6b83c8e
fix: do not query items from natural language API
vgeorge 3fbba13
fix: restore setFilters logic
vgeorge f8022dc
refactor: change spatial extend from checkbox to radio group in prepa…
vgeorge 7b2e020
feat: use natural language area as intersects param
vgeorge 7b456c5
feat: add branch preview deployment workflow with semantic search sup…
vgeorge e1f5ea7
fix: update deployment url
vgeorge fe831dd
Add separator to clearly distinguish form-based and natural language …
AliceR 9e868ee
Clarify instructions for natural language search
AliceR f3e15e9
Add separate button for direct nl search, making it the primary action
AliceR e21da43
Display spatial extend of natural search area
AliceR 6be1a20
Merge pull request #7 from developmentseed/nls-demo-ux-improvements
vgeorge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Deploy Branch Preview | ||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
env: | ||
SEMANTIC_SEARCH_API_URL: ${{ secrets.SEMANTIC_SEARCH_API_URL }} | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Get branch name | ||
id: branch-name | ||
run: | | ||
if [ "${{ github.event_name }}" = "pull_request" ]; then | ||
echo "branch_name=${{ github.head_ref }}" >> $GITHUB_OUTPUT | ||
else | ||
echo "branch_name=${{ github.ref_name }}" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build for preview | ||
run: npm run build -- --pathPrefix="/stac-browser/preview/${{ steps.branch-name.outputs.branch_name }}" --historyMode=hash --semanticSearchApiUrl="${{ env.SEMANTIC_SEARCH_API_URL }}" | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: dist | ||
exclude_assets: "report.html" | ||
user_name: "STAC Browser CI" | ||
user_email: github@developmentseed.org | ||
destination_dir: preview/${{ steps.branch-name.outputs.branch_name }} | ||
publish_branch: gh-pages-preview | ||
|
||
- name: Comment PR | ||
if: github.event_name == 'pull_request' | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const url = `https://${{ github.repository_owner }}.github.io/${{ github.repository }}/preview/${{ steps.branch-name.outputs.branch_name }}/`; | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `🚀 **Preview deployed!**\n\nYour changes are now available at: ${url}\n\nThis preview will be automatically updated on each push to this branch.` | ||
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.