Skip to content
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

Missing redirect on mapper frontend, if no project is specified #2116

Open
DanielJDufour opened this issue Jan 25, 2025 · 3 comments
Open

Missing redirect on mapper frontend, if no project is specified #2116

DanielJDufour opened this issue Jan 25, 2025 · 3 comments
Assignees
Labels
bug Something isn't working docs Improvements or additions to documentation effort:low Likely a few hours frontend Related to frontend code priority:low Backlog of tasks that will be addressed in time

Comments

@DanielJDufour
Copy link
Collaborator

Describe the bug
I go to http://fmtm.localhost:7050/mapnow and none of the tasks I created appear

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'http://fmtm.localhost:7050/mapnow
  2. View the empty map

Expected behavior
I would expect it to zoom to the project(s) I created. Or maybe give a list of projects to select from.

Screenshots

Image

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] iPhone SE (size using Chrome dev tools)
  • OS: [e.g. iOS8.1] MacOS
  • Browser [e.g. stock browser, safari] Chrome
  • Version [e.g. 22]

Additional context
When I add a 1 to the url it works: http://fmtm.localhost:7050/mapnow/1

I'm still learning how to get started, but I think if someone goes to this page for the first time they might need some more help.

@DanielJDufour DanielJDufour added the bug Something isn't working label Jan 25, 2025
@spwoodcock spwoodcock added docs Improvements or additions to documentation priority:low Backlog of tasks that will be addressed in time effort:low Likely a few hours bug Something isn't working frontend Related to frontend code and removed bug Something isn't working docs Improvements or additions to documentation labels Jan 25, 2025
@spwoodcock
Copy link
Member

spwoodcock commented Jan 25, 2025

I was temped to say this is a documentation issue, but on second thought this page should not be accessible.

We have two things to address here.

Mapper Manual

  • @manjitapandey the mapper guide is out of date now.
  • https://docs.fmtm.dev/manuals/mapping/#step-2-access-the-mapper-frontend
  • The two ways to access the mapper page:
    • Click on a project card on the home page, while on a mobile device (the developer experience for this is not great currently, as the developer is on a non-mobile device and its based on the browser UserAgent. Perhaps there is a way to address this).
    • Mapper is sent a direct link via other communication channel by their project manager (e.g. WhatsApp).

/mapnow page

  • This should only be accessible with a project id in the URL.
  • The nginx proxy rule (that directs to the mapper frontend) might need tweaking.
  • We should have a not found page, or similar, if the user goes here without providing an id. Or alternatively, just redirect to the home page.

@spwoodcock spwoodcock added the docs Improvements or additions to documentation label Jan 25, 2025
@manjitapandey
Copy link
Contributor

Thanks, You guys totally make sense. I will again proofread the documentation and update wherever things needs modification.

@manjitapandey manjitapandey self-assigned this Jan 27, 2025
@manjitapandey
Copy link
Contributor

I was thinking mapper frontend is a bit technical term for general users to read on documentation. I think we should change the term to more general term like mapper's page or mapper's view. Welcome to any sort of suggestions.
cc: @ramyaragupathy

@spwoodcock spwoodcock changed the title Missing Redirect? Missing redirect on mapper frontend, if no project is specified Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs Improvements or additions to documentation effort:low Likely a few hours frontend Related to frontend code priority:low Backlog of tasks that will be addressed in time
Projects
None yet
Development

No branches or pull requests

4 participants