Skip to content

feat: placeholder in a new chat #765

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

Open
wants to merge 26 commits into
base: dev
Choose a base branch
from

Conversation

skranee
Copy link
Collaborator

@skranee skranee commented Apr 16, 2025

Lmk if you have any suggestions guys
https://trello.com/c/ukeJHNFi/

@skranee skranee requested a review from a team as a code owner April 16, 2025 18:20
Copy link

vercel bot commented Apr 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adamant-im ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2025 1:38pm

@skranee skranee changed the title feat: display getting public key in chatroom feat: placeholder in a new chat Apr 16, 2025
@skranee skranee requested review from adamantmm and bludnic April 16, 2025 18:22
Copy link

github-actions bot commented Apr 16, 2025

Deployed to https://msg-adamant-pr-765.surge.sh 🚀

@skranee
Copy link
Collaborator Author

skranee commented Apr 30, 2025

It seems like the only thing left to do is to fix this weird bug with scrollbar, for now I have absolutely no idea why this happens and how to fix this little thing even though I've spent hours on trying to discover that. If you have any suggestions - I'd be highly greatful for them because I consider that bug annoying and worth of being fixed unless Alexey (@adamant-al) tells the opposite and desides that this bug is not a priority right now.

@skranee skranee marked this pull request as ready for review May 1, 2025 18:06
@skranee skranee marked this pull request as draft May 2, 2025 08:06
@adamantmm
Copy link
Member

@skranee
Is it still a draft? If not, change status and ask to review.

@skranee
Copy link
Collaborator Author

skranee commented May 3, 2025

@skranee Is it still a draft? If not, change status and ask to review.

A draft for now

@skranee skranee marked this pull request as ready for review May 4, 2025 17:09
@dvelikiy
Copy link
Collaborator

dvelikiy commented May 5, 2025

Regarding the bug, it could be separated as another task.

@adamant-al
Copy link
Member

@S-FrontendDev @bludnic
Ps review

@@ -10,13 +10,16 @@
<v-progress-circular
v-show="loading"
indeterminate
color="primary"
size="24"
:class="[classes.spinner, !messages.length ? `${classes.spinner}_no-messages` : '']"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it not object?

:class="{ [classes.spinner]: true, [${classes.spinner}_no-messages`]: !messages.length }"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just another way of setting class names, I think it's more a matter of taste

Comment on lines +95 to +100
const classes = [
`${className}__form`,
{
[`${className}__form--is-active`]: !!message.value
}
]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not right way to use classes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not? they're used as an array, seems fine to me

<div :class="classes">

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd agree if it they were used separately like :class="classes.form" or somethings like that

set: setEmojiPickerOpen
})
const placeholder = computed(() => props.label ?? t('chats.type_a_message'))
const isDesktopDevice = computed(() => !isMobile())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it's not computedable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants