Skip to content

Commit 682d7d4

Browse files
authored
Merge pull request #466 from matestack/next-release
1.0.1 Release
2 parents 50ed0b3 + 86882e6 commit 682d7d4

Some content is hidden

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

44 files changed

+302
-341
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v1.0.1 Release
4+
5+
This release contains bugfixes.
6+
7+
### Bugfixes
8+
9+
* Fixed javascript automatic scroll top on page transition for short pages #462
10+
* Enable async components on app level, only usable in pages and components before #458
11+
* Fixed duplicate directory error when using matestack-ui-core with webpacker #460
12+
13+
314
## v1.0.0 Release
415

516
Please note that this release contains breaking changes and soft deprecations. To make things easy for users of the current `v0.7.*` version, we have provided **Migration TODOs** at the end of each chapter.

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6.5-alpine3.9
1+
FROM ruby:2.7.2-alpine3.12
22

33
RUN gem install bundler:2.1.4
44

Dockerfile.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6.5-alpine3.9
1+
FROM ruby:2.7.2-alpine3.12
22

33
RUN gem install bundler:2.1.4
44

@@ -20,14 +20,14 @@ RUN apk update && apk upgrade \
2020
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
2121
&& echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
2222
&& apk add --no-cache \
23-
chromium@edge=72.0.3626.121-r0 \
23+
chromium@edge \
2424
nss@edge \
2525
&& rm -rf /var/lib/apt/lists/* \
2626
/var/cache/apk/* \
2727
/usr/share/man \
2828
/tmp/*
2929

30-
RUN apk add chromium-chromedriver@edge=72.0.3626.121-r0
30+
RUN apk add chromium-chromedriver@edge
3131

3232
ENV CHROME_BIN=/usr/bin/chromium-browser \
3333
CHROME_PATH=/usr/lib/chromium/

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ group :development, :test do
2020
gem 'capybara'
2121
gem 'webpacker', '~> 4.0'
2222
gem 'pg', '>= 0.18', '< 2.0'
23-
gem 'selenium-webdriver', '~> 3.142', '>= 3.142.7'
23+
gem 'selenium-webdriver'
2424
gem 'puma'
2525
gem 'simplecov', require: false, group: :test
2626
gem 'byebug'

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ GEM
197197
rspec-support (3.9.2)
198198
rspec-wait (0.0.9)
199199
rspec (>= 3, < 4)
200-
rubyzip (2.2.0)
200+
rubyzip (2.3.0)
201201
safe_yaml (1.0.5)
202202
selenium-webdriver (3.142.7)
203203
childprocess (>= 0.5, < 4.0)
@@ -257,7 +257,7 @@ DEPENDENCIES
257257
rspec-rails (~> 3.8)
258258
rspec-retry
259259
rspec-wait (~> 0.0.9)
260-
selenium-webdriver (~> 3.142, >= 3.142.7)
260+
selenium-webdriver
261261
simplecov
262262
trailblazer-cells
263263
turbolinks

app/concepts/matestack/ui/core/app/store.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ const store = new Vuex.Store({
4040
return getScrollParent(node.parentNode)
4141
}
4242
}
43-
getScrollParent(document.getElementsByClassName("matestack-page-root")[0]).scrollTop = 0
43+
var scrollParent = getScrollParent(document.getElementsByClassName("matestack-page-root")[0])
44+
if(scrollParent){
45+
scrollParent.scrollTop = 0;
46+
}
47+
// getScrollParent(document.getElementsByClassName("matestack-page-root")[0]).scrollTop = 0
4448
}
4549
},
4650
actions: {

app/lib/matestack/ui/core/rendering/main_renderer.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ def render(controller_instance, page_class, options)
2121
render_matestack_object(controller_instance, page_instance)
2222
elsif (params[:component_key].present? && params[:component_class].blank?)
2323
# async component rerendering from non isolated context
24+
app_instance = app_class.new(page_class, controller_instance, context)
2425
component_key = params[:component_key]
2526
page_instance = page_class.new(controller_instance: controller_instance, context: context)
26-
render_component(component_key, page_instance, controller_instance, context)
27+
render_component(component_key, app_instance, controller_instance, context)
2728
elsif (params[:component_class].present? && params[:component_key].blank?)
2829
# isolated component rendering
2930
component_class = params[:component_class]
@@ -75,15 +76,15 @@ def render_matestack_object(controller_instance, object, opts = {}, render_metho
7576
controller_instance.render rendering_options
7677
end
7778

78-
def render_component(component_key, page_instance, controller_instance, context)
79+
def render_component(component_key, app_or_page_instance, controller_instance, context)
7980
matched_component = nil
8081

81-
page_instance.matestack_set_skip_defer(false)
82+
app_or_page_instance.matestack_set_skip_defer(false)
8283

83-
page_instance.prepare
84-
page_instance.response
84+
app_or_page_instance.prepare
85+
app_or_page_instance.response
8586

86-
matched_component = dig_for_component(component_key, page_instance)
87+
matched_component = dig_for_component(component_key, app_or_page_instance)
8788

8889
unless matched_component.nil?
8990
render_matestack_object(controller_instance, matched_component, {}, :render_content)

builder/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '2.6.5'
4+
ruby '2.7.2'
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
77
gem 'rails', '~> 5.2.0'

builder/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ DEPENDENCIES
177177
webpacker
178178

179179
RUBY VERSION
180-
ruby 2.6.5p114
180+
ruby 2.7.2p137
181181

182182
BUNDLED WITH
183183
2.1.4

docs/guides/000-installation/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Rails 6+ apps use webpacker by default. Rails 5 and below apps use the asset pip
2727
Add 'matestack-ui-core' to your `package.json` by running:
2828

2929
```
30-
$ yarn add https://github.com/matestack/matestack-ui-core#v1.0.0
30+
$ yarn add https://github.com/matestack/matestack-ui-core#v1.0.1
3131
$ yarn install
3232
```
3333

@@ -127,11 +127,11 @@ For further reading check out the [basic building blocks](/docs/guides/200-basic
127127

128128
## Usage
129129

130-
There are two ways to use matestack.
130+
There are two ways to use matestack.
131131

132132
### Full matestack
133133

134-
First, as we call it, _full matestack_, enabling all features and developing with all benefits. Learn more about the _full matestack_ approach by following the [tutorial](/docs/guides/100-tutorial/README.md) or reading about matestacks [basic building blocks](/docs/guides/200-basic_building_blocks/README.md).
134+
First, as we call it, _full matestack_, enabling all features and developing with all benefits. Learn more about the _full matestack_ approach by following the [tutorial](/docs/guides/100-tutorial/README.md) or reading about matestacks [basic building blocks](/docs/guides/200-basic_building_blocks/README.md).
135135

136136
### Integration in existing projects
137137

0 commit comments

Comments
 (0)