Giter Club home page Giter Club logo

sims-portal's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

sims-portal's Issues

Remove start and end dates from assignment

The availability report tool will manage start and end dates, but when someone supports a response, it should just be binary: they either did or did not do something, and the products they produce or support on will serve as the key metric of support.

Add validation on badge upload

Submitting the upload form for adding (not assigning) a badge in the system without attaching a file gives a generic 502. Add validation on upload route to produce error message if no file attached.

Shrink header fonts on ribbon

On mobile, the Surge Information Management Support title gets truncated. Let's shrink the size of the title and the nav links a bit.

Slack API user list rate limit

The read.users endpoint on the Slack API only allows you to ping it once per minute, which can cause problems when multiple people are signing up at once as that call is necessary for validating that they are a SIMS member.

Propose looking into a Redis layer to cache that list in order to avoid multiple calls.

Add email conflict validation on profile edit

Implement similar logic as the registration route that checks for existing emails before accepting the user input. Trying to change your email to one that is already associated with someone does throw an error in werkzeug but it should give the end user a more legible error via Flash()

Overhaul surge alert ingest with new data model

The script that downloads new surge alerts and sends the information to the SIMS Slack doesn't capture the new Molnix tag for rotation number. Need to update the DB model to include that field, then add to the Slack message that gets sent.

Profile photo upload challenge

I can't seem to upload a profile photo. I attach the image and click Save Profile, but nothing happens. But I see that Dan was able to upload his photo so I'm not sure why it isn't working for me.

Add Slack link to user verification step

When Admins approve a new user registration, they should have a link that verifies opens their contact in Slack to verify that they entered their own and not someone elses.

Add cron job heartbeat

Configure the cron job with the GET request to Betterstack with each cron job. See site documentation for the specific GET request to fire.

Maintain 1-1 user profile tier

Right now, the front end manages the logic on what tier to display users at for each profile type. For example, if a user is listed as Geospatial Tier 1, then has someone "upgrade" them to Tier 2, the Tier 1 record remains, but the front end handles how to show which via a simple max(). However, this can cause issues when downgrading users.

Proposed fix: include a conditional in the route for assigning new profile tiers that deletes the existing record if user already has one assigned for that type.

Add availability as a separate process

Currently, the Portal collects a person's availability as part of an existing assignment. Discussions have revealed it would make more sense to keep that as a standalone table in the DB, which people report outside of an assignment.

Let's add a table, linked to an emergency and user, that collect's a person's reported availability and interest. You would navigate to the emergency and click an "I'm Interested in Supporting" button that would then replicate the availability route. The guidance would have to make it clear that when you do that, you're blocking off time to be available for tasks that come in that match your skills.

profile image disappeared

i had uploaded a profile image, and the URL is showing as https://d3s70q3c7pqvju.cloudfront.net/static/assets/img/avatars/1a4f0396aeb2ed85.jpg (instead of the default.jpg) but it's not loading

Screen Shot 2023-03-16 at 2 37 36 PM

Error in Admin Backend delete

When trying to delete some of the previously added profile tiers (either if is just one or multiple) gets an error when trying to save.
image

Fix d3.js visualization on index

The spinning globe cuts off points too early as they rotate. I've isolated the issue with how I'm using the return value in the drawMarkers function, but changing the gdistance to keep them on the globe longer also makes them appear too soon.

All Members view doesn't load all users

The SQL query feeding the table of users visible when logged in limits results to those that have at least one assignment due to the way the JOIN was done. Need to change the query to show people with zero assignments too.

Add quick actions box to emergency page

Below the nav-buttons, add a box that offers quick actions for users tagged as remote supporters to the emergency:

  • Jump to assignment
  • Jump to feedback
  • Jump to product upload

Add caching on Trello API call

In looking through the logs, I'm realizing that the call to Trello on page load when viewing emergency records is unnecessary. Let's add flask-cache decorator to that page view function and store Trello data for a set period of time to limit the pings.

Migrate RCRCSIMS.org domain to Route53 on AWS

Right now, the domain is registered on markmonitor.com (not sure why it's there). IT and AWS support walked me through pointing the nameservers to the AWS container via CloudFront, but raised that it would be easier to simply manage everything on Route53 directly in AWS as well. IT seemed to have just one person on the team that knew how to access MarkMonitor, and that feels like a risk.

Nice-to-have: About Page once logged in

I'm not sure if this was intentional or not, but when I log in I can no longer see the About page. The default "home" page is the dashboard. It but might be nice to view the remote profiles on the About page without having to log out and then log back in.

Display SIMS products automatically on GO emergency page

A longer-term, nice-to-have feature to further integrate the GO Platform and the SIMS Portal might be to add a connection between the publicly-approved portfolio for the event on the documents tab:

Screen Shot 2023-06-17 at 10 35 32 AM

I think we could simply accept incoming requests that serves up the S3 location of the thumbnail, and then link back to the product page on the SIMS Portal.

Add link to assignment on Slack alerts

When users update their availability, the message that goes out right now is a generic "Thanks for reporting your availability" with no contextual info or links. Add a link back to the assignment and include the emergency name in the message.

Add "legacy" members section to Members page

Right now, the cards feeding the Members page on the external side of the site show all "Active" members. But would be nice to not just completely remove access to people's profiles once they move on.

Add section at bottom of page, with a link from the top, that shows cards for "Inactive" members as well. Should be relatively straightforward:

  1. Add SQLAlchemy call to DB that's identical to the existing one, just filtered for "Inactive"
  2. Add container to view with same structure to loop the cards.

If that page ends up getting too heavy with lots of members, will need to add pagination to save load times.

502 on new badge upload

If you try to submit a new badge without attaching a file, you get a generic 502 error. I need to add validation on the upload route.

Untag yourself as product collaborator

Users can tag themselves as collaborators on products that have been posted to the portal, but there currently isn't a way to untag yourself. The route to assign yourself currently:

  • Checks that you are not the original poster
  • Indexes all user IDs associated with the product's collaborator_ids column and loops over it with the user ID of the person trying to add themselves
  • Appends the ID if not already present.

A route to remove an ID from that list would need to run a similar validation, then run remove() on the list.

Turn off globe on landing page for mobile users

It works fine on my phone, but sounds like older phones freeze up when trying to load the spinning globe on the landing page. Should be able to just turn off that div when the screen size is small.

Reported by Paul K.

Jack of All Trades badge auto-assign fails

The database conversion from SQLite to Postgres seems to have created an issue with the SQL query used to generate the list of existing users:

Jack of All Trades Auto-Assign Failed: invalid literal for int() with base 10: 'Geospatial'

Test out if converting this query to SQLAlchemy would solve the issue.

Updating availability

When updating availability and unchecking previously added dates, user receives a notification that availability was updated.
But when trying to updated once again availability, all previously unchecked dates appear again checked.

Member count on emergency page double counts

When a SIMS Remote Coordinator also serves as a remote supporter (either in parallel or before/after the SIMS Co assignment), the counter above the table ends up double counting them. Need to add a distinct filter to the SQL.

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.