* Don't show @everyone in the role picker
* Show some text on the image picker talking about Discord CDN
* Correct == in todos
This commit is contained in:
jude 2024-04-11 15:40:50 +01:00
parent 5e99a6f9de
commit bb2128a7ed
3 changed files with 10 additions and 3 deletions

View File

@ -16,7 +16,9 @@ export const Mentions = ({ input }) => {
collection: [ collection: [
{ {
trigger: "@", trigger: "@",
values: (roles || []).map(({ id, name }) => ({ key: name, value: id })), values: (roles || [])
.filter((role) => role.name === "@everyone")
.map(({ id, name }) => ({ key: name, value: id })),
allowSpaces: true, allowSpaces: true,
selectTemplate: (item) => `<@&${item.original.value}>`, selectTemplate: (item) => `<@&${item.original.value}>`,
menuItemTemplate: (item) => `@${item.original.key}`, menuItemTemplate: (item) => `@${item.original.key}`,

View File

@ -21,7 +21,7 @@ export const GuildTodos = () => {
<> <>
<h2>Server</h2> <h2>Server</h2>
{sortedTodos {sortedTodos
.filter((todo) => todo.channel_id == null) .filter((todo) => todo.channel_id === null)
.map((todo) => ( .map((todo) => (
<> <>
<Todo todo={todo} key={todo.id} /> <Todo todo={todo} key={todo.id} />
@ -33,7 +33,7 @@ export const GuildTodos = () => {
<> <>
<h2>#{channel.name}</h2> <h2>#{channel.name}</h2>
{sortedTodos {sortedTodos
.filter((todo) => todo.channel_id == channel.id) .filter((todo) => todo.channel_id === channel.id)
.map((todo) => ( .map((todo) => (
<> <>
<Todo todo={todo} key={todo.id} /> <Todo todo={todo} key={todo.id} />

View File

@ -37,6 +37,11 @@ const ImagePickerModal = ({ setModalOpen, setImage }) => {
}} }}
onSubmitText={"Save"} onSubmitText={"Save"}
> >
<p>
Please note: if you attach an image directly from Discord, it will not be visible in
the dashboard, but will be visible on reminders. Other image-sharing sites such as
Imgur don't have this issue.
</p>
<input <input
class="input" class="input"
id="urlInput" id="urlInput"