Skip to content
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

Authentication #4954

Closed
wants to merge 60 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
4fd7bba
:tada: (API) Point to i.inc api
djmango Jun 10, 2024
e90e6a2
:bento: (favicon) Update favicons
djmango Jun 11, 2024
051a565
Created a new hook for signup button on sidebar and redirects to authkit
h-lakshman Jun 14, 2024
131107c
Added new route auth_callback and now the after logging token will be…
h-lakshman Jun 15, 2024
8e9c96c
Added next-cookie package to both package.json and yarn.lock
h-lakshman Jun 15, 2024
05e6b3f
Added comments which contains links to both development and productio…
h-lakshman Jun 15, 2024
6859ac7
Small bug fixes: fixed wrong client components and server components …
h-lakshman Jun 15, 2024
2d843a5
Added a client route to catch the token from redirected url from workos
h-lakshman Jun 15, 2024
d20f1d6
Removed the server route for catching token and added some conditiona…
h-lakshman Jun 15, 2024
d2c83b1
Added new state variable isLoggedin to indicate whether a user is log…
h-lakshman Jun 16, 2024
0e6248d
In the auth_call route after login isLoggedin state varible is updated
h-lakshman Jun 16, 2024
8b68ff9
Sign component is removed if a person is Loggedin and only shows for …
h-lakshman Jun 16, 2024
26a1dba
Added Login url to Path variable in constant.ts file
h-lakshman Jun 16, 2024
66bb339
Added a new utility function to perfrom Logout operation and to redir…
h-lakshman Jun 16, 2024
338b64a
Added a ternary conditional operator to Sidebar to only show Signin b…
h-lakshman Jun 16, 2024
914c77a
Removed all console.logs
h-lakshman Jun 16, 2024
27ca87d
:heavy_plus_sign: (Image) Add sharp dep for image optimization
djmango Jun 16, 2024
1c89daf
added tailwind congfig for spinner during authcallback
h-lakshman Jun 17, 2024
208afc9
Added a new component to load when screen is in loading
h-lakshman Jun 17, 2024
3b52547
Added a suspense component in authcallback so there will be a fallbac…
h-lakshman Jun 17, 2024
e513fd6
Splitted viewport and theme to a seperate variable from metadata to a…
h-lakshman Jun 17, 2024
a908551
Merge branch 'authentication' of https://github.com/InvisibilityInc/n…
h-lakshman Jun 17, 2024
ac1badf
Changed all the img element tag to Image component provided by next
h-lakshman Jun 17, 2024
0435c1e
Props is destructered and used in the useEffect hook to fix eslint wa…
h-lakshman Jun 17, 2024
2202537
Added accessStore.default model in hook to rerender if it also changes
h-lakshman Jun 17, 2024
f7c59e2
Added tailwind configuration and added hieght and width to Image comp…
h-lakshman Jun 17, 2024
463cc96
Removed the spinner and used the existing loading component
h-lakshman Jun 17, 2024
a7da883
removed logs
h-lakshman Jun 17, 2024
f636bb7
Merge pull request #1 from InvisibilityInc/authentication
djmango Jun 17, 2024
1c3c7ee
Added discord icon in sidebar and renamed Signup to Login
h-lakshman Jun 17, 2024
334a746
Added new openai models
h-lakshman Jun 19, 2024
aedda56
By default goes to Login page if user is not logged in
h-lakshman Jun 19, 2024
e70ea5b
Fixed a small syntax mistake in Suspense component
h-lakshman Jun 19, 2024
cb3c562
Added a 2 varibales to dependency array for redirecting
h-lakshman Jun 19, 2024
d62ffd6
Added Refresh token functionality
h-lakshman Jun 19, 2024
a20580b
Changed models name to Display name
h-lakshman Jun 19, 2024
a101c55
Added new models to constants
h-lakshman Jun 19, 2024
fc7807c
Changed the types of LLM models
h-lakshman Jun 19, 2024
2a4fe4f
Merge pull request #2 from InvisibilityInc/authentication
djmango Jun 21, 2024
273bc72
Fixed a error on production 404 on login,changed the route to actual …
h-lakshman Jun 22, 2024
b1b815d
Merge pull request #3 from InvisibilityInc/authentication
djmango Jun 22, 2024
f67b039
made changes in hooks
h-lakshman Jun 22, 2024
18f66de
Major refactor for accessing all models
h-lakshman Jun 22, 2024
f1ed4c5
Small bug fix in authentication
h-lakshman Jun 22, 2024
3930bd1
Added new logout icon
h-lakshman Jun 22, 2024
c668472
Removed unused imports
h-lakshman Jun 22, 2024
0d2501f
Merge branch 'authentication'
h-lakshman Jun 22, 2024
cd6023b
Removed mask from showing up while creating a new chat
h-lakshman Jun 23, 2024
1571185
Commented unused code
h-lakshman Jun 23, 2024
1c15ab0
Fixed some linting warnings and errors
h-lakshman Jun 23, 2024
81f4e56
Merge branch 'master' into authentication
djmango Jun 23, 2024
65c8cc3
Merge branch 'authentication'
djmango Jun 23, 2024
19b7ac7
Changed type of Message role
h-lakshman Jul 8, 2024
9342874
Added useEffect hook to call sync function and sync messages from clo…
h-lakshman Jul 8, 2024
174fa70
Implemented Sync function
h-lakshman Jul 8, 2024
ff0d577
Added chat_id from session and user_message_id to invisibility object…
h-lakshman Jul 8, 2024
33a56c7
removed settings icon,repositioned new chat icon, removed redirect to…
h-lakshman Jul 8, 2024
8bbd774
Integrated chatid to session,on creating new session message and chat…
h-lakshman Jul 8, 2024
1aae655
Added a new dependency for syncing messages
h-lakshman Jul 8, 2024
abb0d5a
Removed settings and mask icon from main page
h-lakshman Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added discord icon in sidebar and renamed Signup to Login
h-lakshman committed Jun 17, 2024
commit 1c3c7ee0709b2260355e41da7adce437be1c37a4
9 changes: 8 additions & 1 deletion app/components/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import styles from "./home.module.scss";
import { IconButton } from "./button";
import SettingsIcon from "../icons/settings.svg";
import GithubIcon from "../icons/github.svg";
import DiscordIcon from "../icons/discord.svg";
import AddIcon from "../icons/add.svg";
import AccountIcon from "../icons/account.svg";
import DeleteIcon from "../icons/delete.svg";
@@ -18,6 +19,7 @@ import { useAccessStore, useAppConfig, useChatStore } from "../store";

import {
DEFAULT_SIDEBAR_WIDTH,
DISCORD_URL,
MAX_SIDEBAR_WIDTH,
MIN_SIDEBAR_WIDTH,
NARROW_SIDEBAR_WIDTH,
@@ -184,7 +186,7 @@ export function SideBar(props: { className?: string }) {
) : (
<IconButton
icon={<AccountIcon />}
text={shouldNarrow ? undefined : "Sign Up"}
text={shouldNarrow ? undefined : "Login"}
className={styles["sidebar-bar-button"]}
onClick={() => {
// Open login page
@@ -240,6 +242,11 @@ export function SideBar(props: { className?: string }) {
<IconButton icon={<GithubIcon />} shadow />
</a>
</div>
<div className={styles["sidebar-action"]}>
<a href={DISCORD_URL} target="_blank" rel="noopener noreferrer">
<IconButton icon={<DiscordIcon />} shadow />
</a>
</div>
</div>
<div>
<IconButton
1 change: 1 addition & 0 deletions app/constant.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const OWNER = "InvisibilityInc";
export const REPO = "nextweb";
export const DISCORD_URL = "https://discord.i.inc/";
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;
export const UPDATE_URL = `${REPO_URL}#keep-updated`;
1 change: 1 addition & 0 deletions app/icons/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.