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

[ENG-5024] feature/insti-dash-improv #2395

Merged
merged 110 commits into from
Nov 20, 2024
Merged

Conversation

futa-ikeda
Copy link
Contributor

@futa-ikeda futa-ikeda commented Nov 15, 2024

Purpose

Summary of Changes

Screenshot(s)

Side Effects

QA Notes

futa-ikeda and others added 30 commits August 20, 2024 17:03
-   Ticket: [ENG-6074]
-   Feature flag: n/a

## Purpose
- Rewrite existing institutional dashboard page to use OsfLayout and add tabs

## Summary of Changes
- Update app router to add new subroutes to institutional dashboard
- Add new component to handle layout of institutional dashboard subroutes (went this route instead of adding OsfLayout with an `{{outlet}}` to the parent route, as there may be some changes in layout based on subroutes)
- Move components to Summary and Users tab
- Trim any unneeded classes
- Update test
## Purpose

Make sure the institutional dashboard can display all relevant information. 

## Summary of Changes

- add fields to user model
- adds fields to mirage factories
-   Ticket: [ENG-6078][ENG-6080]
-   Feature flag: n/a

## Purpose
- Add new URL field to institution model for getting to archived reports
- Add link to archived reports to the institutional dashboard pages

## Summary of Changes
- Update institution model and update mirage
- Update institution-dashboard-wrapper to include new link
- Update how model hook works so we don't have to pass around a taskInstance
  - Update args and such for this
  - Remove controller
- Glimmer-ize the institutional-user-list component
-   Ticket: []
-   Feature flag: n/a

## Purpose
- Address some CR comments from prior PR #2296

## Summary of Changes
- Add a new arg `@fakeButton` to `OsfLink` to easily make a link look like a button (which maybe isn't a pattern we want to encourage, but at least now it's DRY when we do it 😬 )
- Update wording for hover text for reports
- Have link open in a new window
…2300)

-   Ticket: [https://openscience.atlassian.net/browse/ENG-6116]
-   Feature flag: n/a

## Purpose

This updates the old flaky institutional dashboard table with a new one that 

## Summary of Changes

- updates templates and css for new sorting arrow
- adds new sorting arrow component (Product conversations supported not reusing SortButton)
- adds tests to new componet
- add to component code to allow toggling the arrow
-   Ticket: [ENG-6181]
-   Feature flag: n/a

## Purpose
- Update mirage view for trove index-card-search to return some more realistic results

## Summary of Changes
- Replace placekittens with placecats
- Remove hard-coded return object in mirage/views/search.ts
  - add a new factory-type object that creates resourceMetadata for index-cards of a given type
-   Ticket: [https://openscience.atlassian.net/browse/ENG-6117]
-   Feature flag: n/a

## Purpose

Add the ability to filter users by Orcid status, ensure filter works with sorting.

## Summary of Changes

- adds slider inputs to user institutional dashboard tab
- adds component code to make Orcid filters work
- adds template code for layout.
…2320)

-   Ticket: [https://openscience.atlassian.net/browse/ENG-6194]
-   Feature flag: n/a

## Purpose

Allow institutional admin to show/hide columns with department filter and sort arrows.

## Summary of Changes

- Made template columns somewhat dynamic
- made component recognize filtering columns
- fixed up css to make presentable
…ForOpenScience/ember-osf-web into improve-mobile-styling-inst-dashboard

* 'feature/insti-dash-improv' of https://github.com/CenterForOpenScience/ember-osf-web:
  Removed old tests
  Fixed some api issues
  Added a new test and removed an old one
  Added a new total count kpi

# Conflicts:
#	translations/en-us.yml
…ForOpenScience/ember-osf-web into improve-mobile-styling-inst-dashboard

* 'feature/insti-dash-improv' of https://github.com/CenterForOpenScience/ember-osf-web:
  Added a test with test-data elements
  Updates to add the project total

# Conflicts:
#	translations/en-us.yml
…t-dashboard

[ENG-6191] Improve Styling and Add Total Users Label
futa-ikeda and others added 14 commits November 7, 2024 16:42
* Update getters in institution dashboard controllers

* Update getters in search-result model
…tons

[ENG-6280][ENG-6281] Add download dashboard buttons move archive link
-   Ticket: [No ticket]
-   Feature flag: n/a

## Purpose
- Update placeholder text when there is no data for a given column

## Summary of Changes
- Use a simple `-` to denote missing values
- Add placeholder text if no contributors are no longer affiliated for a project/registration/preprint
* Prevent first-page button from showing up on the first page

* Reset page on sort or filter change
@coveralls
Copy link

coveralls commented Nov 15, 2024

Pull Request Test Coverage Report for Build 11938601452

Details

  • 483 of 543 (88.95%) changed or added relevant lines in 28 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-2.7%) to 60.88%

Changes Missing Coverage Covered Lines Changed/Added Lines %
app/institutions/dashboard/projects/controller.ts 20 21 95.24%
app/institutions/dashboard/registrations/controller.ts 20 21 95.24%
app/institutions/dashboard/route.ts 1 2 50.0%
app/models/institution-user.ts 0 1 0.0%
app/packages/osfmap/jsonld.ts 12 13 92.31%
lib/osf-components/addon/components/osf-layout/component.ts 3 4 75.0%
app/models/index-card.ts 4 8 50.0%
app/models/search-result.ts 15 20 75.0%
app/institutions/dashboard/-components/object-list/contributors-field/component.ts 19 26 73.08%
lib/osf-components/addon/components/index-card-searcher/component.ts 18 25 72.0%
Files with Coverage Reduction New Missed Lines %
app/models/search-result.ts 2 66.67%
Totals Coverage Status
Change from base Build 11598072954: -2.7%
Covered Lines: 2783
Relevant Lines: 4362

💛 - Coveralls

Copy link
Contributor

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks good. There are a couple of comments we probably don't need, but I'll let you take care of that or not.

Comment on lines +14 to +16
/*
import InstitutionSummaryMetricModel from 'ember-osf-web/models/institution-summary-metric';
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, will address this in a follow-up PR after this is merged to prevent any frivolous Percy runs

Comment on lines +85 to +110
/**
* I need to determine if this is going to be a feature or not
test('it renders the without data correctly', async function(this: EnginesIntlTestContext, assert) {
const data = Object({
total: 0,
title: 'This is the title',
icon: 'building',
});

this.set('data', data);


await render(hbs`
<Institutions::Dashboard::-Components::ChartKpiWrapper::ChartKpi
@data={{this.data}}
/>
`);

assert.dom('[data-test-kpi-title]')
.hasText('This is the title');
assert.dom('[data-test-kpi-data]')
.hasText('No data for institution found.');
assert.dom('[data-test-kpi-icon]')
.hasAttribute('data-icon', 'building');
});
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we determined if this is a feature or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this won't be needed, so will address this in a follow-up PR as well

@futa-ikeda futa-ikeda merged commit 386b08e into develop Nov 20, 2024
10 checks passed
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.

5 participants