Convert Human Era to toggle with implicit API-level date filtering#10
Merged
Convert Human Era to toggle with implicit API-level date filtering#10
Conversation
…ering Co-authored-by: yzqzss <30341059+yzqzss@users.noreply.github.com>
Deploying neo-uglysearch with
|
| Latest commit: |
ccddfeb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ccb617b1.neo-uglysearch.pages.dev |
| Branch Preview URL: | https://copilot-update-human-era-to.neo-uglysearch.pages.dev |
Co-authored-by: yzqzss <30341059+yzqzss@users.noreply.github.com>
Co-authored-by: yzqzss <30341059+yzqzss@users.noreply.github.com>
…backslash Co-authored-by: yzqzss <30341059+yzqzss@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Change human era to a toggle switch
Convert Human Era to toggle with implicit API-level date filtering
Jan 21, 2026
Member
|
AI你干得好啊AI,人类会感谢你的。 |
Contributor
|
喷了
Am Mittwoch, 21. Januar 2026 schrieb yzqzss ***@***.***>:
… Merged #10 <#10> into main.
—
Reply to this email directly, view it on GitHub
<#10 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZ3LCS4FABKCXMYQDS5S434H3H7ZAVCNFSM6AAAAACSK6LOGWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRSGE3TMMBVHE4TGNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Member
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The "人类时代" (Human Era) feature previously modified the search query string and force-enabled the advanced search UI. This changes it to a toggle that applies date filtering transparently at the API call level.
Changes
(date < sec(2023-01-01))now injected ingetSearchResults()rather than modifying query stateImplementation
Extracted filter combination logic to utility function:
Filter merges correctly with existing query filters using AND logic.
UI
Toggle OFF (default)

Toggle ON

Result
/search?q=技术q=技术 (date < sec(2023-01-01))when toggle is ONOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.