Skip to content

Commit a7fc1f2

Browse files
committed
Merge branch 'release/20.10.0'
2 parents fb9930d + d0655cc commit a7fc1f2

File tree

68 files changed

+690
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+690
-387
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [20.10.0] - 2020-09-30
8+
### Added
9+
- registry brand name to navbar
10+
- headTags so that favicon changes for branded registries
11+
- Reorder contributors through dragging and dropping
12+
- Add campaign queryParam for collections and registries
13+
14+
### Changed
15+
- Update analytics to registries discover
16+
- Reduce font-size for Registry Discover search results
17+
- page title to have provider brand display first
18+
19+
### Fixed
20+
- navbar styling to have buttons with same height
21+
- provider link on branded navbar
22+
- 404ing recent registrations links
23+
24+
### Removed
25+
- color change for disabled buttons
26+
- old style for navbar buttons
27+
- tags toggle on discover pages
28+
729
## [20.9.1] - 2020-09-03
830
### Changed
931
- pull keen analytics from partitioned collections

app/app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const { modulePrefix } = config;
99
const App = Application.extend({
1010
modulePrefix,
1111
Resolver,
12-
1312
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
1413
engines: {
1514
collections: {

app/models/contributor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ export default class ContributorModel extends OsfModel.extend(Validations) {
4141
@attr('boolean') bibliographic!: boolean;
4242
@attr('fixstring') unregisteredContributor?: string;
4343
@attr('number') index!: number;
44+
@attr('string') sendEmail!: 'default' | 'preprint' | 'false';
45+
46+
// Write-only attributes
4447
@attr('fixstring') fullName!: string;
4548
@attr('fixstring') email!: string;
46-
@attr('string') sendEmail!: 'default' | 'preprint' | 'false';
4749

4850
@belongsTo('user', { inverse: 'contributors' })
4951
users!: DS.PromiseObject<UserModel> & UserModel;

app/services/meta-tags.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ export interface PropMetaTagAttrs {
4848
content: Content;
4949
}
5050

51-
export type MetaTagAttrs = NameMetaTagAttrs | PropMetaTagAttrs;
51+
export interface LinkMetaTagAttrs {
52+
rel: string;
53+
href: string;
54+
}
55+
56+
export type MetaTagAttrs = NameMetaTagAttrs | PropMetaTagAttrs | LinkMetaTagAttrs;
5257

5358
export interface HeadTagDef {
5459
type: string;

app/styles/_accessibility.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
border-color: darken($brand-success, 15%);
1010
}
1111

12+
&[disabled],
13+
&[disabled]:hover,
1214
:global(&.disabled),
1315
:global(&.disabled):hover {
1416
color: darken($brand-success, 85%);
@@ -31,7 +33,7 @@
3133
background-color: $brand-info;
3234
border-color: darken($brand-info, 5%);
3335

34-
&:hover {
36+
&:hover:not([disabled]) {
3537
background-color: darken($brand-info, 10%);
3638
border-color: darken($brand-info, 15%);
3739
}
@@ -42,7 +44,7 @@
4244
background-color: $brand-danger;
4345
border-color: darken($brand-danger, 5%);
4446

45-
&:hover {
47+
&:hover:not([disabled]) {
4648
background-color: darken($brand-danger, 10%);
4749
border-color: darken($brand-danger, 15%);
4850
}

app/styles/_components.scss

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,20 @@
420420
color: rgba(255, 255, 255, 0.8);
421421
}
422422

423-
#navbarScope .btn-top-login,
423+
#navbarScope .button-container {
424+
display: flex;
425+
}
426+
424427
#navbarScope .btn-top-signup {
425-
padding: 2px 30px;
426-
margin-top: 5px;
427-
line-height: 1.7;
428+
padding: 4px 13px;
429+
margin-top: 3px;
430+
font-size: 15px;
431+
}
432+
433+
#navbarScope .btn-top-login {
434+
padding: 4px 17px;
435+
margin-top: 3px;
436+
font-size: 15px;
428437
}
429438

430439
.navbar-default {
@@ -852,20 +861,6 @@
852861
}
853862
}
854863

855-
/* Overrides for signup button */
856-
#navbarScope .btn-top-signup {
857-
padding: 4px 13px;
858-
margin-top: 3px;
859-
font-size: 15px;
860-
}
861-
862-
/* Overrides for Sign in button */
863-
#navbarScope .btn-top-login {
864-
padding: 4px 17px;
865-
margin-top: 3px;
866-
font-size: 15px;
867-
}
868-
869864
/* sm screen formatting */
870865
@media screen and (min-width: 768px) {
871866

lib/app-components/addon/components/branded-navbar/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default class BrandedNavbar extends Component {
2727
signupUrl: string = this.signupUrl;
2828
translateKey: string = this.translateKey;
2929
showNavLinks: boolean = false;
30+
campaign: string = `${this.theme.id}-collections`;
3031

3132
myProjectsUrl = serviceLinks.myProjects;
3233

lib/app-components/addon/components/branded-navbar/template.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
@onLinkClicked={{action (mut this.showNavLinks) false}}
7272
@headline={{t 'app_components.branded_navbar.on_the_osf'}}
7373
@externalLink={{true}}
74+
@campaign={{this.campaign}}
7475
/>
7576
</ul>
7677
</BsCollapse>

lib/app-components/addon/components/project-contributors/list/component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export default class List extends Component {
8181
this.contributors.removeObject(contributor);
8282
this.contributors.insertAt(newIndex, contributor);
8383

84-
contributor.set('index', newIndex);
84+
contributor.setProperties({
85+
index: newIndex,
86+
});
8587

8688
yield this.get('saveAndHighlight').perform(contributor);
8789
});

lib/app-components/addon/components/project-contributors/list/item/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
}
2020

2121
.row {
22+
display: flex;
2223
border-top: 1px solid #eee !important;
2324
padding-top: 2px;
2425

0 commit comments

Comments
 (0)