-
Notifications
You must be signed in to change notification settings - Fork 417
Migration 1008 #1546
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
Merged
Merged
Migration 1008 #1546
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e65d2e5
removed unnecessary refs
duckduckhero aef50ce
extracted note header
duckduckhero ca5e872
Merge branch 'main' of https://github.com/fastrepl/hyprnote into note…
duckduckhero 4bf622e
i18n
duckduckhero 67a8933
Merge branch 'main' of https://github.com/fastrepl/hyprnote into note…
duckduckhero 9ed427c
added tab header
duckduckhero 5633e98
calendar separation wip
duckduckhero 356b034
applied original style
duckduckhero dbdfe08
dprint
duckduckhero 94b6fcf
added color to weekend
duckduckhero 4e11038
ran tests
duckduckhero 6d76cb2
wip
yujonglee 758ec72
re-wrote calendar
duckduckhero ba4f852
Merge branch 'main' of https://github.com/fastrepl/hyprnote into migr…
duckduckhero be61e8f
ran tests
duckduckhero c87b681
added chat fab
duckduckhero 23da1f9
ran tests
duckduckhero ba7f2a9
merged
duckduckhero c268a63
fixes
duckduckhero 9225e88
ran tests
duckduckhero 7bd482d
changed index name
duckduckhero cb79f40
merged
duckduckhero e20434b
merged
duckduckhero 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,72 @@ | ||
| import { Popover, PopoverContent, PopoverTrigger } from "@hypr/ui/components/ui/popover"; | ||
| import { cn } from "@hypr/ui/lib/utils"; | ||
| import { useState } from "react"; | ||
|
|
||
| export function FloatingChatButton() { | ||
| const [isOpen, setIsOpen] = useState(false); | ||
|
|
||
| return ( | ||
| <Popover open={isOpen} onOpenChange={setIsOpen}> | ||
| <PopoverTrigger asChild> | ||
| <button | ||
| className={cn( | ||
| "fixed bottom-6 right-6 z-50", | ||
| "w-16 h-16 rounded-full", | ||
| "bg-white shadow-lg hover:shadow-xl", | ||
| "transition-all hover:scale-105", | ||
| "flex items-center justify-center", | ||
| "border border-neutral-200", | ||
| "overflow-hidden", | ||
| )} | ||
| > | ||
| <img | ||
| src="/assets/dynamic.gif" | ||
| alt="Chat Assistant" | ||
| className="w-12 h-12 object-contain" | ||
| onError={(e) => { | ||
| // Fallback to a text icon if image fails to load | ||
| const target = e.target as HTMLImageElement; | ||
| target.style.display = "none"; | ||
| target.parentElement!.innerHTML = "💬"; | ||
| target.parentElement!.classList.add("text-3xl"); | ||
| }} | ||
| /> | ||
| </button> | ||
| </PopoverTrigger> | ||
|
|
||
| <PopoverContent | ||
| className="w-96 h-[500px] mb-2 mr-2 p-0 overflow-hidden" | ||
| side="top" | ||
| align="end" | ||
| sideOffset={10} | ||
| > | ||
| <div className="h-full flex flex-col bg-white"> | ||
| <div className="p-4 border-b border-neutral-200 flex items-center justify-between"> | ||
| <h3 className="font-semibold text-lg">Chat Assistant</h3> | ||
| <button | ||
| onClick={() => setIsOpen(false)} | ||
| className="text-neutral-400 hover:text-neutral-600 text-xl" | ||
| > | ||
| × | ||
| </button> | ||
| </div> | ||
|
|
||
| <div className="flex-1 p-4 overflow-y-auto"> | ||
| <div className="text-center text-neutral-400 mt-20"> | ||
| Chat interface will appear here | ||
| </div> | ||
| </div> | ||
|
|
||
| <div className="p-4 border-t border-neutral-200"> | ||
| <input | ||
| type="text" | ||
| placeholder="Type a message..." | ||
| className="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" | ||
| disabled | ||
| /> | ||
| </div> | ||
| </div> | ||
| </PopoverContent> | ||
| </Popover> | ||
| ); | ||
| } | ||
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.
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.