samvera-labs / nurax-pg

This is a Hyrax application configured to use Postgres for metadata storage instead of ActiveFedora.
Apache License 2.0
0 stars 0 forks source link

profile page counts new works as collections #36

Open rjkati opened 2 years ago

rjkati commented 2 years ago

Description of Issue

Depositing a new work increments "Collections created" count on my profile by one and does not increment "works created" count. I expect that depositing a new work would increment the "works created" count, rather than "collections created".

Steps to Reproduce

  1. Navigate to Dashboard -> Your Activity -> Profile
  2. Observe count next to "Collections created" and "Works created"
  3. Navigate to Dashboard -> Works
  4. Click "Add New Work"
  5. Select any type of work, fill out required metadata, upload a file, check deposit agreement and click "Save".
  6. Navigate to Dashboard -> Your Activity -> Profile
  7. Observe that count next to "Collections created" has incremented by one, while the count next to "works created" is unchanged.
gamontoya commented 2 years ago

@rjkati I can't replicate this. Can you share a screenshot of what you expect to see? This is what I see after adding a few collections and works.

007

rjkati commented 2 years ago

@gamontoya This was also happening on nurax-dev and there's an open issue with screenshots (#5568)

I also cannot replicate on either nurax-pg or nurax-dev. Collections and work counts are not displaying on the user profile page for either build. Were these removed, @jlhardes?

jlhardes commented 2 years ago

Part of this seems to be a css issue. The counts are still there but we have white font on a white background and have lost the background bubble that allowed the white font to be visible:

Screen Shot 2022-09-12 at 3 08 05 PM

That is on both nurax-pg and nurax-dev so that issue is a 4.0.0beta1 issue to create. Otherwise, I think this issue of adding works and the collection count increases still exists for nurax-pg since the Work count is still showing 0 and the other issue is @rjkati mentioned is covering that for Hyrax-Valkyrization work.

jlhardes commented 2 years ago

Created new issue for css issue: https://github.com/samvera/hyrax/issues/5856 Collection and Work count numbers not displaying correctly on user profile