Skip to content

Commit 76b99fa

Browse files
committed
Merge branch 'develop'
2 parents 0b605ef + 9868306 commit 76b99fa

File tree

26 files changed

+188
-109
lines changed

26 files changed

+188
-109
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
**Purpose:**
1+
## Purpose:
22

33

4-
**JIRA:**
4+
## JIRA:
55

66

7-
**Changes:**
7+
## Steps to Take On Prod
8+
9+
10+
## Changes:
811
* Changes to setup
912
*
1013

@@ -13,23 +16,23 @@
1316

1417
* Migrations
1518
*
16-
19+
1720
* Library changes
1821
*
1922

2023
* Side effects
2124
*
2225

23-
**Screenshots**
26+
## Screenshots
2427
* Before
2528

2629
* After
2730

2831

29-
**QA Links:**
32+
## QA Links:
3033

3134

32-
**How to Verify These Changes**
35+
## How to Verify These Changes
3336
* Specific pages to visit
3437
*
3538

@@ -40,7 +43,7 @@
4043
*
4144

4245

43-
**Relevant PRs/Dependencies:**
46+
## Relevant PRs/Dependencies:
4447

4548

46-
**Additional Information**
49+
## Additional Information

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem 'rails', '~> 5.0.1'
1212

1313
# Cortex-specific
1414
gem 'cortex-exceptions', '= 0.0.4'
15-
gem 'cortex-plugins-core', '= 0.11.1'
15+
gem 'cortex-plugins-core', '= 0.11.2'
1616

1717
# API
1818
gem 'grape', '~> 0.17'

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ GEM
137137
concurrent-ruby (1.0.4)
138138
connection_pool (2.2.1)
139139
cortex-exceptions (0.0.4)
140-
cortex-plugins-core (0.11.1)
140+
cortex-plugins-core (0.11.2)
141141
cells (~> 4.1)
142142
cells-haml (~> 0.0.10)
143143
cells-rails (~> 0.0.6)
@@ -435,8 +435,8 @@ GEM
435435
json_spec (1.1.4)
436436
multi_json (~> 1.0)
437437
rspec (>= 2.0, < 4.0)
438-
jsonb_accessor (1.0.0.beta.2)
439-
activerecord (>= 5.0.0)
438+
jsonb_accessor (1.0.0.beta.3)
439+
activerecord (>= 5.0)
440440
pg (>= 0.18.1)
441441
kaminari (0.17.0)
442442
actionpack (>= 3.0.0)
@@ -725,7 +725,7 @@ DEPENDENCIES
725725
cells-rails (~> 0.0.7)
726726
codeclimate-test-reporter (~> 0.6)
727727
cortex-exceptions (= 0.0.4)
728-
cortex-plugins-core (= 0.11.1)
728+
cortex-plugins-core (= 0.11.2)
729729
database_cleaner (~> 1.5)
730730
deep_cloneable (~> 2.2.2)
731731
devise (~> 4.2.0)

app/api/v1/resources/posts.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ class Posts < Grape::API
4646
posts_page
4747
end
4848

49+
desc 'Show all published posts', { entity: ::V1::Entities::Post, nickname: "allPostFeed" }
50+
paginate per_page: 10000
51+
get 'feed/all_posts' do
52+
require_scope! 'view:posts'
53+
authorize! :view, ::Post
54+
55+
posts = ::GetPosts.call(params: declared(clean_params(params), include_missing: false), tenant: current_tenant, published: true).posts
56+
posts_page = ::V1::Entities::Post.represent posts.to_a
57+
end
58+
4959
desc 'Show published post authors'
5060
get 'feed/authors' do
5161
present Author.published.distinct, with: ::V1::Entities::Author

app/assets/javascripts/authentication.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
//= require material
66

77
//= require base
8+
//= require authentication/login
89

910
// require turbolinks # temporarily disabled
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var login_tab_change = function() {
2+
$('.login_tab').on('click', function(ev) {
3+
var value = this.text;
4+
$('#user_email').focus();
5+
6+
if (value === 'Legacy') {
7+
$('.legacy_value').val(1)
8+
} else {
9+
$('.legacy_value').val(0)
10+
}
11+
}
12+
}
13+
14+
$(document).ready(login_tab_change);
15+
$(document).on('page:load', login_tab_change);

app/assets/stylesheets/application.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@import 'components/flash';
2525
@import 'components/form';
2626
@import 'components/header';
27+
@import 'components/index';
2728
@import 'components/jumbo-button';
2829
@import 'components/notes';
2930
@import 'components/sidebar';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.mdl-data-table {
2+
white-space: normal;
3+
}
4+
15
.mdl-data-table th {
26
@extend .text-style-4;
37
}

app/assets/stylesheets/components/dialog.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.mdl-dialog {
22
width: 80%;
33
max-height: 80%;
4+
padding: 0;
5+
overflow-x: hidden;
46
overflow-y: auto;
57
}
68

@@ -10,6 +12,12 @@
1012
font-size: 1.17rem;
1113
}
1214

15+
.mdl-dialog__content {
16+
box-sizing: border-box;
17+
padding: 0;
18+
width: 100%;
19+
}
20+
1321
.content-item-button {
1422
display: flex;
1523
justify-content: center;

app/assets/stylesheets/components/form.scss

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ footer .mdl-button {
77
.mdl-textfield {
88
width: auto;
99
display: block;
10+
11+
.tooltip-icon {
12+
position: absolute;
13+
right: 0;
14+
top: 8%;
15+
}
16+
}
17+
18+
.mdl-textfield__label {
19+
font-size: $base-font-size !important;
20+
}
21+
22+
.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,
23+
.mdl-textfield--floating-label.is-focused .mdl-textfield__label {
24+
color: $color-black !important;
1025
}
1126

1227
form {
@@ -24,9 +39,13 @@ form {
2439
}
2540

2641
// Tags
27-
28-
div.bootstrap-tagsinput input {
29-
width: 100% !important;
42+
.bootstrap-tagsinput {
43+
width: 100%;
44+
border-radius: 0 !important;
45+
border-top: none;
46+
border-right: none;
47+
border-left: none;
48+
border-bottom: 1px solid $color-grey-light;
3049
}
3150
.cortex-bootstrap .label {
3251
border-radius: 0.75em;
@@ -42,3 +61,7 @@ div.bootstrap-tagsinput input {
4261
}
4362

4463
// Extras
64+
.tooltip-icon {
65+
color: $color-grey;
66+
font-size: $base-font-size * 1.25;
67+
}

0 commit comments

Comments
 (0)