+
Skip to content

Conversation

rsimon
Copy link
Member

@rsimon rsimon commented Aug 11, 2023

In this PR

This PR adds counter badges to the filter tabs in the Dashboard.

Bildschirmfoto 2023-08-11 um 09 42 39

Beta users had repeatedly reported that a project they had joined did not appear in their dashboard. This is (almost certainly) confusion over the tab filtering, caused by bad UX.

  • If you join a project it will, by design, only appear in your 'Shared with Me' tab.
  • The default tab setting is 'My Projects'
  • If a user has the filter set to 'My Projects' and joins a project, nothing will change. This makes it look like joining didn't work.

With this PR, joining a project will affect the counter value instantly. Badges are also in a "disabled" style while the count is 0. This means that a first-time user will see both a change in the counter value, as a well as a change in the color shade, which should provide slightly better feedback.

Additional note: unlike admin users, normal (Professor/Student) users do not have an 'All Projects' filter setting! It was also commented by a beta user that this would be desirable. I removed the tab briefly before the beta test, because it's default behavior was to list all projects that SELECT query returned from the DB.

This was fine for an Org Admin (who should see everything in the system). But not for a professor, who should not see projects they can't enter (but only "Mine" + "Shared" combined). This view is now made easier by @lwjameson recent RPC function. I will add this to the UI in a separate PR.

@netlify
Copy link

netlify bot commented Aug 11, 2023

Deploy Preview for vico-design ready!

Name Link
🔨 Latest commit 51a7337
🔍 Latest deploy log https://app.netlify.com/sites/vico-design/deploys/64d5e8fdcc17f40008b3858b
😎 Deploy Preview https://deploy-preview-31--vico-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rsimon rsimon merged commit 6b829f1 into main Aug 17, 2023
@rsimon rsimon deleted the RS-dashboard-counter-badges branch August 17, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载