-
Notifications
You must be signed in to change notification settings - Fork 1
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
Port upstream commits into lavender #9
Conversation
I was going to create a review but there are so many changes so it's better to comment - in many (probably every) files, branding, URLs, terms (space vs server) seems to be reverted. |
Yeah I'm working on it |
Added a friend request fix but needs an additional patch on upryzing.js |
Coauthor list to add when squash merging:
|
Just to note, this will be manually merged (as to add coauthors in a squash commit) |
Nevermind, turns out I can squash and add coauthors inside of GitHub. Not sure why this isn't documented but ok github |
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.
Review full of nits
Although I am noticing a bunch of changes that override existing commits, so those need to be fixed before we merge these.
@@ -23,7 +23,7 @@ cd lavender | |||
# git submodule init && git submodule update | |||
|
|||
# install all packages | |||
pnpm i | |||
pnpm i --frozen-lockfile |
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.
Why is --frozen-lockfile
here?
When developing, it's important that we keep the lockfile up to date, --frozen-lockfile
should only be used in CI/CD environments (imo)
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.
I have 0 clue, ask the guy who put it on upstream
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.
Although I think its less for developers and more for users that just want newer commits
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.
Hm, maybe.
Might add a disclaimer on the README then
@@ -55,7 +55,7 @@ Any edits to the `uprzying.js` codebase will immediately be reflected while deve | |||
|
|||
```bash | |||
# install packages | |||
pnpm i | |||
pnpm i --frozen-lockfile |
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.
Refer to my previous comment
@@ -109,7 +109,7 @@ export default function ServerOverview(props: ServerSettingsProps) { | |||
</FormGroup> | |||
<FormGroup> | |||
<CategoryButton | |||
description="Server can be joined from Discover" | |||
description="Space can be joined from Discover" |
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.
TODO: i18n
@@ -28,7 +28,7 @@ const Config: SettingsConfiguration<Server> = { | |||
title(key) { | |||
const t = useTranslation(); | |||
return t( | |||
`app.settings.server_pages.${key.replaceAll("/", ".")}.title`, | |||
`app.settings.server_pages.${key.replaceAll("/", ".")}.title` as any, |
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.
Um, doesn't eslint complain about using any here?
Either way, the proper type here should be string
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.
Its either eslint warning or TS error
@@ -62,7 +62,9 @@ export default function Keybinds() { | |||
|
|||
const translateCombo = (combo: KeyCombo, short: boolean) => | |||
combo | |||
.map((key) => t(`keys.${key}.${short ? "short" : "full"}`, {}, key)) | |||
.map((key) => | |||
t(`keys.${key}.${short ? "short" : "full"}` as any, {}, key) |
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.
Again, string
type instead of any
.
}) | ||
} | ||
> | ||
OK |
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.
TODO: i18n
@@ -29,7 +29,8 @@ export function ConversationStart(props: Props) { | |||
</Show> | |||
<Typography variant="conversation-start"> | |||
{t( | |||
`app.main.channel.start.${props.channel.type === "SavedMessages" ? "saved" : "group" | |||
`app.main.channel.start.${ |
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.
oh and HERE it doesn't cast to any
awesome
so cool /s
@@ -48,7 +48,7 @@ export default { | |||
grow: true, | |||
}, | |||
decorators: [ | |||
(props) => ( | |||
(props: any) => ( |
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.
Im going to let this slide just because i have no clue what type props
should be
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.
I don't think it has a type
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.
huh
i guess i'll check it 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.
These are going to be replaced again anyway so 🥴
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.
um
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.
Don't look at me, I've got no clue
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.
yay
😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭 |
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.
I didn't get around to reviewing the whole thing, apologies, but this is what I did spot. GitHub is lagging severely, blocking me from checking each file, so apologies if you already fixed these
<Match when={props.message.member?.timeout}> | ||
<Tooltip content={`User has been timed out for ${dayjs(props.message.member?.timeout).toNow(true)}`} placement="top"> | ||
<MdSchedule {...iconSize(16)} /> | ||
</Tooltip> | ||
</Match> |
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.
you seem to have accidentally removed the timeout indicator
icon: <MdSmartToy fill={theme!.colours.foreground} {...iconSize(20)} />, | ||
icon: <MdSmartToy {...iconSize(20)} />, | ||
title: t("app.settings.pages.bots.title"), | ||
}, | ||
{ | ||
id: "feedback", | ||
icon: <MdRateReview fill={theme!.colours.foreground} {...iconSize(20)} />, | ||
icon: <MdRateReview {...iconSize(20)} />, |
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.
this needs to be re-added for dark mode support
icon: <MdMemory fill={theme!.colours.foreground} {...iconSize(20)} />, | ||
icon: <MdMemory {...iconSize(20)} />, |
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.
ditto
@@ -18,8 +18,6 @@ import MdFace from "@material-design-icons/svg/outlined/face.svg?component-solid | |||
import MdPersonAddAlt from "@material-design-icons/svg/outlined/person_add_alt.svg?component-solid"; |
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.
re-add timeout stuff in this file (see below removals)
<span>your way.</span> | ||
</b> | ||
<span style={{ "text-align": "center", opacity: "0.5" }}> | ||
Connect with Upryzing. |
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.
the text was here
}} | ||
> | ||
<span>Your conversations,</span> | ||
<br /> |
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.
this was removed for leaving a weird gap
|
||
/** | ||
* Load and set a language by the given key | ||
* set a language by the given key |
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.
* set a language by the given key | |
* Set a language by the given key |
TODO