This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add threads sidebar interactivity #132
Open
tobySolutions
wants to merge
22
commits into
main
Choose a base branch
from
feat/add-threads-sidebar-interactivity
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.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
fddbc8b
chore: pulling
tobySolutions 5c96f24
Merge branch 'main' of https://github.com/GuiBibeau/akeru
tobySolutions bb2eb72
fix: broken 404 page
tobySolutions 7862467
Merge branch 'main' of https://github.com/GuiBibeau/akeru
tobySolutions 12e3405
chore: pulling
tobySolutions 6ed1321
chore: checkout
tobySolutions 6f19045
chore: implement landing page changes
tobySolutions a6af87a
chore: pulling
tobySolutions 7b2d45b
chore: pulling
tobySolutions 3ff655e
chore: pulling
tobySolutions 650de44
chore: add new akeru landing and set things
tobySolutions a4d76d4
chore: pulling
tobySolutions fc0fadf
chore: pulling
tobySolutions 426cb65
chore: checkout
tobySolutions 4c26e86
Feature/assistants UI (#133)
multipletwigs 144ddb1
fix: broken 404 page
tobySolutions 2fe3814
chore: add new akeru landing and set things
tobySolutions afd004f
chore: checkout
tobySolutions 4c16d56
fix: make changes to api call, conditional styling and state manageme…
tobySolutions 91c048d
fix: make changes to api call, conditional styling and state manageme…
tobySolutions b33d4cc
chore:pulling
tobySolutions 2212dab
feat: fetch and display user threads, handle state and url query state
tobySolutions 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
Binary file not shown.
This file contains 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 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 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 |
---|---|---|
|
@@ -41,3 +41,4 @@ export async function validatorAdapter( | |
return new Response("Error", { status: 500 }); | ||
} | ||
} | ||
|
This file contains 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 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
20 changes: 15 additions & 5 deletions
20
packages/app-akeru/src/app/(dashboard)/threads/features/thread-list/threads-list-item.tsx
This file contains 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
46 changes: 39 additions & 7 deletions
46
packages/app-akeru/src/app/(dashboard)/threads/features/thread-list/threads-list.tsx
This file contains 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
20 changes: 20 additions & 0 deletions
20
packages/app-akeru/src/app/(dashboard)/threads/features/thread-list/use-threads.tsx
This file contains 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,20 @@ | ||
import { axiosInstance } from "@/lib/axios"; | ||
import useSWR from "swr"; | ||
|
||
const threadsFetcher = async (_: string) => { | ||
const response = await axiosInstance.get("/thread"); | ||
return response.data; | ||
}; | ||
|
||
/** | ||
* Fetches all threads related data, and provides all apis to mutate thread data. | ||
*/ | ||
export default function useThreads() { | ||
const { | ||
data: threads, | ||
error, | ||
isLoading: isFetchingThreads, | ||
mutate, | ||
} = useSWR("threads", threadsFetcher); | ||
return { threads, error, mutate, isFetchingThreads }; | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do remove console!