Coder Social home page Coder Social logo

ushahidi / platform-client-mzima Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 94.0 11.56 MB

License: Other

JavaScript 4.47% Shell 0.09% TypeScript 58.91% HTML 19.62% SCSS 16.38% Dockerfile 0.09% Makefile 0.03% Java 0.07% Swift 0.16% Ruby 0.10% CSS 0.09%
hacktoberfest

platform-client-mzima's People

Contributors

amtryingmybest avatar angamanga avatar appleeyes avatar aquilaafuadajo avatar blessingpeters avatar caleno-r avatar chiemezuo avatar dmitryfast avatar ifycode avatar kvengerov avatar mannyandem avatar mh-asmi avatar mhdamaan79 avatar miraxes avatar mmwandigha avatar mugobrian avatar oyenuga17 avatar rajutkarsh07 avatar rwubakwanayo avatar shakirandagire avatar tuxpiper avatar ushahidlee avatar webong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform-client-mzima's Issues

[USH-926] CAM 2023 Mobile menu: Close button and share button color gone, Share button missing

Describe the bug
Happens for the web client's Mobile menu:

  • Close button color is gone
  • Share button has two issues it's hidden and the color is probably gone too

To Reproduce
Steps to reproduce the behaviour:

  1. Go to the map view or any of the 4 views of the web client mzima: https://mzima-release.staging.ush.zone/map
  2. Resize the browser to mobile or tablet
  3. Click on the hamburger menu to open the mobile menu
  4. See that close button no longer has color and share button is missing and no longer at the bottom of the mobile menu.

Expected look (Screenshot)
See screenshot for how the close and share button is supposed to look like in the mobile menu

Image

Note: If you can't see the screenshot added on github, open the issue on linear (request for access to linear through our Gitter community channel or on slack).

Additional context

  • It's possible that the color of the share button is affected too. Check this out too when you fix.
  • Also see comments on this PR to help understand better: #382

USH-926

Quick Tour content (Notion document)

Send “where to find what” type of content to the quick tour doc, and add the links to the terminologies section of the documents (for the features listed) below.

Completed

  • Post filtering
  • Saved searches
  • User roles and management

To do

  • Surveys (surveys & post)
  • Posts (surveys & post)
  • Categories
  • Collections
  • Datasources
  • Donations
  • Post Editing
  • Post Locking*
  • Translation
  • Bulk actions

Note
This list will always grow and/or be updated

[USH-901] CAM 2023: Routing to "post not found"

Issues

  • "Post not found" design does not look good on resize from desktop to tablet and mobile
  • Tablet and mobile re-routes to "page not found" instead of "post not found", same thing on resize back to desktop
  • It will be nice for "Post not found" to have its own route/url, even though it only occupies some part of the page

Video

routing-post-not-found.mov

If you can't see/play the video added on github, open the issue on linear (request for access to linear through our Gitter community channel or on slack).

From SyncLinear.com | USH-921

[USH-927] Mobile Client: Back button not working once you try to search for a deployment

Describe the bug
Back button not working once you try to search for a deployment

To Reproduce
Steps to reproduce the behavior:

  1. Open mzima mobile client in xcode or android studio
  2. Go to profile > switch deployment, you will find the deployments screen where there is a search input and list of deployments to choose from
  3. Click on the search input to open up search in full screen
  4. Click on the back button to try to go back to the deployments screen
  5. See that the back button does not work

Expected behavior
Back button should take user back to the deployments screen

Screenshots

Image

If you can't see the screenshot added on github, open the issue on linear (request for access to linear through our Gitter community channel or on slack).

USH-927

e2e-add child category

Categories have child categories under them. A child category takes on the permissions of the parent category it is created under.

  • Navigate to categories page
  • Create a category as a parent category
  • Who can see the category:
    - Admin, Translation, Technology
  • Create a category as a child category under the parent category (Select Parent Category that was created in earlier step)
  • Verify child category created listed under Parent category
  • Open child category
  • Verify visibility matches parent category

[USH-918] Rename menu-list-non-links Angular component name to better reflect its purpose

Issue description

Rename menu-list-non-links Angular component name to better reflect its purpose in the web application

How to reproduce or check for this issue

Suggested/expected output

Rename the menu-list-non-links Angular component to menu-modal-popups instead (without breaking the functionality).

USH-918

Data View - sorting actions by date updated

Sorting by Date Updated

  • Login and navigate to Data View
  • Click on Sorting
  • Click on Date Updated(Newest first)
  • Verify posts are sorted by date updated newest first
  • CIick on Sorting
  • Click on Date Updated (Oldest first)
  • Verify posts are sorted by date updated oldest first

General Settings: Edit page

  • Navigate to General Settings page
  • Edit. deployment name
  • Edit Description
  • Save
  • Verify changes reflect
  • Verify API Key field should have a value

Settings - General

  • Navigate to Settings - "…/settings/general"
  • Add text " - Automated" to the Deployment name
  • Click Save button
  • Verify deployment name changes top right side
  • Edit description field
  • Click Save button
  • Verify description is updated

Data View - view sent in response

Verify automated response sent in shows up in Data view as a card

Details can be seen are

  • "Automated Title Response"
  • "Automated Description Response"
  • Name of respondent
  • Status "Under Review"

[USH-916] Rename menu-list-links Angular component name to better reflect its purpose

Issue description

Rename menu-list-links Angular component name to better reflect its purpose in the web application

How to reproduce or check for this issue

Suggested/expected output

Rename the menu-list-links Angular component to menu-nav-views instead (without breaking the functionality).

From SyncLinear.com | USH-916

Data View - sorting actions by date created

Sorting by Date created

  • Login and navigate to Data View
  • Click on Sorting
  • Verify Date Created(Newest first) is highlighted/selected
  • Verify posts are sorted by date created newest first
  • Click on Sorting
  • Click Date Created (Oldest first)
  • Verify posts are sorted by date created oldest first

Short text field submission fails

During the post submission, the short text field is not detected in the CI environment. Figure out why, and a fix for it other than removing or skipping that field.

Users

  • Delete more than one user

Update cypress version

Update cypress to the latest stable version.
Ensure tests pass with same consistency and nothing is broken after the update

Role Permissions

  • Log in users with various permissions levels and verify limitations

Login: Login Programatically

  • Test the user-flow through the UI just one time.
  • Subsequent tests will have the platform logged into programatically.

[USH-913] Mobile Client: Cannot connect to local backend API to app yet

Issue description

The mobile client cannot connect to and therefore does not allow for testing or developing with the backend API locally.

How to reproduce the issue

  • Follow the instructions to install and run the backend locally on your computer on the backend API's readme: https://github.com/ushahidi/platform#setup-essentials
  • Test mobile client for android and/or iOS to see that issue described is present. Follow the instructions to clone, setup and launch the mobile client locally at: https://github.com/ushahidi/platform-client-mzima#platform-client-mzima.
  • Go to the mobile client's env.json file and change the backend_url to your backend's localhost url as shown in the readme.
  • On the app's user interface, go through or skip the mobile app's walkthrough, then navigate to the list of deployments. The local backend is not in the list.

Suggested/expected output

At the point where app detects that the backend url returned uses localhost, make it possible to find the locally hosted deployment on the list. It should run the locally hosted app successfully.

Screenshot

Screenshot 2023-10-08 at 10 42 00

If you can't see the screenshot added on github, open the issue on linear (request for access to linear through our Gitter community channel or on slack).

USH-913

Categories

Automate and verify creation of a parent category

  • Log in as admin
  • Navigate to categories (/settings/categories)
  • Click Add Category
  • Enter Category name (Automated Category)
  • Enter Description name (Automated Description)
  • Leave Parent Category name empty
  • Verify Everyone is selected for category
  • Save to create Category
  • Verify newly created category exists in list of Categories

e2e-verify Share button for post

  • Open a post
  • Verify link in web address contains '../feed/102642/view?page=1&mode=POST'

**need to find an ID for specific post

Main content (Notion document)

Completed

  • Post filtering
  • Saved searches
  • User roles and management

To do

  • Surveys (surveys & post)
  • Posts (surveys & post)
  • Categories
  • Collections
  • Datasources
  • Donations
  • Post Editing
  • Post Locking*
  • Translation
  • Bulk actions

Note
This list will always grow and/or be updated

Collections

  • Login as an admin
  • Navigate to collections
  • Create a new collection
  • Click Add Collection
    • Enter name as: "Automated Collection"
    • Enter Description as: "Automated Description"
    • Select "Only me" radio button
    • Click Save
  • Add post to Collection
  • Verify post added to Collection

[USH-914] The purpose of the "Add new post" button is not reflected in its Angular component name

Issue description

The purpose of the "Add new post" button is not reflected in way the component is named in the code.

How to reproduce or check for this issue

Suggested/expected output

Rename the Angular component to add-web-post-button instead (without breaking the functionality).

From SyncLinear.com | USH-914

Create a CONTRIBUTING.md file

This will be linked from the README file.
It will outline how to make contributions to the test automation suite.

Look into the e2e tests running correctly for PRs from forked repos

e2e tests run but they don't pass. This has to do with the secrets. The user credentials are secrets in the main repo and it seems in forked repos, with the secrets missing, the tests don't pass.
Figure out a way around this so that contributors can see their tests run in the CI

e2e-disable user sign up

Sign ups can be disabled for deployments. As a result, the Sign Up link is not available

  • Log in as admin
  • Navigate to settings
  • Click on Disable User sign up
  • Save changes
  • Verify the Disable user sign up checkbox stays checked
  • Log out
  • Verify the Sign Up link is unavailable. Log in button should have only Log In fields and no Sign up links

Data View: Filters

Filter posts by Surveys

  • Logging in, navigate to Data View
  • Verify count on Results: 176 and Current results: 20/176
  • Click Clear to unselect all Selected Surveys
  • Verify Results count is 0
  • Select the survey Counting and Results
  • Verify Result count is 9, matching count on Survey
  • Select Survey Polling Station Administration
  • Verify Result count is now 13
  • Select Survey Positive events
  • Verify Result count is now 22
  • Verify Current Results figure is 20/22
  • Click Filters to reveal filters
  • Click Clear All filters
  • Verify count on Results: 176 and Current results: 20/176

[USH-920] Complete the steps to enable bot automate adding contributors to the platform client (mzima)

Description

All you need to work on is step 3 from the all contributors doc page. Don't bother about steps 1 and 2 from the all contributors doc page.

Expected solution

In summary:

  • Add the .all-contributorsrc file to the root of the platform client (mzima) repo
  • Follow example from the backend platform API's .all-contributorsrc file, to add content to the .all-contributorsrc file you created. Note: The content should be modified to suit the platform client (mzima) repo accordingly, and the contributors property should have an empty array like this instead: "contributors": []

USH-920

Data View - sort posts by post date

Sorting by Post Date

  • Login and navigate to Data View
  • Click on Sorting
  • Click on Post Date (Newest first)
  • Verify posts are sorted by post date newest first
  • CIick on Sorting
  • Click on Post Date (Oldest first)
  • Verify posts are sorted by post date oldest first

Surveys - submit a response to a Survey

  • Navigate to Surveys page
  • Open Survey with name "Full Length Survey-with image-field-don't delete"
  • Type in responses to all fields in the survey as such:
  • Title => "Automated Title Response"
  • Description => "Automated Description Response"
  • Short Text Field => "Automated Short Text Response"
  • Long Text Field => "Automated Long Text Response"
  • Number Decimal Field => 99.9
  • Number Integer Field => 100
  • Date & Time Field => Click checkmark to accept current time
  • Select Field => Select S1
  • Radio Button => Select R2
  • Checkbox Field => Select F3
  • Click Submit to send response to Survey
  • Verify confirmation modal
  • Click Ok to dismiss portal
  • Verify user is sent to Data View

e2e-verify Share button contents

The Share button appears on various pages of the platform. Let's verify the contents of the link to be shared that appears on the modals on the different pages.

  • In Map page, click Share button
  • Verify link in web address contains '..../map'
  • Verify Twitter and Facebook buttons have correct links to twitter and facebook respectively
  • Navigate to Data View
  • Verify link in web address contains '../feed?page=1'

[USH-900] CAM 2023 Data/Feed view User Interface unstable on resize and on load

Problems (interactions with UI)

  • Some components/elements just disappear on the page on resize or after interacting with some other elements on the page.
  • Post details behave weird: It some times appears more than once and uses both mobile and desktop appearances at some point.

Problems (with code)

Similar to the sidebar issues we fixed sometime ago, there are also code-related problems that affect the data/feed view's UI, or that makes it possible to break other things:

  • Some things that could have been taken care of with CSS were done with javascript
  • Code around this place is delicate and not really centralized. So while trying to fix the UI issues, you could be breaking collections (or maybe even saved searches, but collections majorly for now)

Proposed solution

Restructure both styles and javascript code for the feed view and components used within it.

Video 1: On resize related UI issues

feed-view-ui-unstable.mov

Video 2: Button focus and on load related UI issues

feed-view-btn-and-onload-ui.mov

If you can't see/play the videos added on github, open the issue on linear (request for access to linear through our Gitter community channel or on slack).

From SyncLinear.com | USH-922

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.