postiz-app icon indicating copy to clipboard operation
postiz-app copied to clipboard

🐛 Bug Report: Add a loading in the media uploader

Open nevo-david opened this issue 1 year ago • 18 comments

📜 Description

In the media uploader we need to add a loader before it shows the media, at the moment it just says there is not media until we see something.

👟 Reproduction steps

👍 Expected behavior

👎 Actual Behavior with Screenshots

💻 Operating system

MacOS

🤖 Node Version

20

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • [X] I checked and didn't find similar issue

Are you willing to submit PR?

None

nevo-david avatar Mar 18 '24 06:03 nevo-david

Can i work on this issue? kindly assign it to me! What should I use as a loading image?

bottlewook avatar Mar 18 '24 10:03 bottlewook

Of course, Thank you!

I have created a component called "LoadingComponent" in apps/frontend/src/components/layout/loading.tsx You can just show this component.

I am assigning this to you.

nevo-david avatar Mar 18 '24 10:03 nevo-david

Can you tell me on which pages this image upload feature is used?

bottlewook avatar Mar 18 '24 11:03 bottlewook

Look for MediaComponent

nevo-david avatar Mar 18 '24 11:03 nevo-david

Sorry, I don't know the API key so I can't test it locally

bottlewook avatar Mar 18 '24 12:03 bottlewook

@bottlewook which API keys are missing for you?

nevo-david avatar Mar 19 '24 03:03 nevo-david

스크린샷 2024-03-19 오후 1 15 45

I actually can't log in, so I don't know how the image upload works. so I can't work on it. Sorry. 스크린샷 2024-03-19 오후 1 33 22

스크린샷 2024-03-19 오후 1 33 52

bottlewook avatar Mar 19 '24 04:03 bottlewook

@bottlewook I pushed a new version that doesn't require a key, can you take the new version and try again?

nevo-david avatar Mar 19 '24 04:03 nevo-david

@nevo-david Yes, I'll try again!

bottlewook avatar Mar 19 '24 04:03 bottlewook

Sorry, I'm getting this error again

스크린샷 2024-03-19 오후 1 52 20

bottlewook avatar Mar 19 '24 04:03 bottlewook

it's a different error, I will upload today the quick start guide on how to install the project. You didn't connect your Postgres

nevo-david avatar Mar 19 '24 04:03 nevo-david

Thanks for the guide, I'll work on it as soon as you post it.

bottlewook avatar Mar 19 '24 04:03 bottlewook

@bottlewook check this out :) https://docs.gitroom.com/quickstart

nevo-david avatar Mar 19 '24 09:03 nevo-david

@nevo-david I read the documentation you sent me, installed postsql in docker, and tried it, but I get this error 스크린샷 2024-03-19 오후 6 55 32

bottlewook avatar Mar 19 '24 09:03 bottlewook

After you install Postgres and Redis you have to add them into the .env like

REDIS_URL="redis://localhost:6379"
DATABASE_URL="postgres://root:<your_password>@localhost:5432/gitroom"

is the one you specified when you installed postgres

nevo-david avatar Mar 19 '24 09:03 nevo-david

@nevo-david check PR plz~

bottlewook avatar Mar 19 '24 11:03 bottlewook

Gone through previous chat, I totally understand what you are requesting I'll submit the PR

rahil1202 avatar May 01 '24 14:05 rahil1202

Hi @nevo-david, I wanted to explore this issue, but I don't see any channels added...? Can you tell me what I did wrong in setting up the project?

shreykul avatar May 04 '24 06:05 shreykul