WildAid / o-fish-web

Web application for the Officer's Fishery Information Sharing Hub (O-FISH). The web app allows agencies to gain insights from the aggregated information gathered during a routine vessel inspection (submitted via the web app).
Apache License 2.0
31 stars 41 forks source link

Default Homepage for Global Admins #217

Closed o-fish-wildaid closed 3 years ago

o-fish-wildaid commented 3 years ago

For global admins the default homepage upon logging in should be the global dashboard (the /global_agencies page - the page you get if you click 'Dashboard' -> 'Agencies').

Bhavik-Ardeshna commented 3 years ago

Hey I ready to work on this issue

Bhavik-Ardeshna commented 3 years ago

But I am stuck with design and how i login as global admin

am-MongoDB commented 3 years ago

At the moment, you need to create your own Atlas and Realm environment – you can then select your own password. See https://github.com/WildAid/o-fish-realm for details

Bhavik-Ardeshna commented 3 years ago

Hey @am-MongoDB I am not getting code becauz I m new to this field so I cant work

am-MongoDB commented 3 years ago

Could you please explain a bit more what problem you're having?

Bhavik-Ardeshna commented 3 years ago

its very high level proj for me my basics are not strong tu deal with this

On Mon, Sep 28, 2020 at 9:14 PM Andrew Morgan notifications@github.com wrote:

Could you please explain a bit more what problem you're having?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/WildAid/o-fish-web/issues/217#issuecomment-700112968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6L6M3SUXZMBWZUVK5YTBLSICVNLANCNFSM4RZAGCQA .

RitikPandey1 commented 3 years ago

@am-MongoDB I would like to take this task

am-MongoDB commented 3 years ago

@RitikPandey1 - all yours!

RitikPandey1 commented 3 years ago

@am-MongoDB I have created realm backend and also created user on database, but after login I was getting this error

error

am-MongoDB commented 3 years ago

A couple of things to check:

[ ] Have you set realmAppId in config.js to match your Realm app [ ] Using the Realm UI – do you see logs confirming that you'd logged in and/or an error log for the missing function? [ ] Using the Realm UI, go to Functions and confirm that getDashboardStats is there

RitikPandey1 commented 3 years ago

A couple of things to check:

[ ] Have you set realmAppId in config.js to match your Realm app [ ] Using the Realm UI – do you see logs confirming that you'd logged in and/or an error log for the missing function? [ ] Using the Realm UI, go to Functions and confirm that getDashboardStats is there

Ok , I'll check these things

RitikPandey1 commented 3 years ago

@am-MongoDB I was just checked "getDashboardStats" function is missing in realm functions , I try again to import realm code from repo but getting this error err2

RitikPandey1 commented 3 years ago

I'm not too familiar with realm apps, please help

am-MongoDB commented 3 years ago

@RitikPandey1 Something odd seems to have happened when you did the initial import. if the other functions are there (there should be a lot of them) then you could add getDashboardStats through the UI - the code and config can be found at https://github.com/WildAid/o-fish-realm/tree/main/WildAidDemo/functions/getDashboardStats

RitikPandey1 commented 3 years ago

@RitikPandey1 Something odd seems to have happened when you did the initial import. if the other functions are there (there should be a lot of them) then you could add getDashboardStats through the UI - the code and config can be found at https://github.com/WildAid/o-fish-realm/tree/main/WildAidDemo/functions/getDashboardStats

Thanks , it worked now

Sheeri commented 3 years ago

🎉 🙌 🎆 Woo hoo! this issue has been fixed.