atomic_view 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d26209da003c20d55578d1f8c1036c7f2d6d8f479e1eafadba499aebe8b417a6
4
- data.tar.gz: '0781dfbfd8ddf9d8a1f2e5be5a13b1f2e3511cc776ba4feb39e439933885f1f7'
3
+ metadata.gz: d7120d8b41d9ae45240522c5a367173b81f956d774fdea60daffb0aaf847ec79
4
+ data.tar.gz: f260f604781d0eabaf7dca862fdf2a2b0732fe9849dad8cc1194f98124023242
5
5
  SHA512:
6
- metadata.gz: 242b73833f14000d4efdd0d41f2be4a5352bc8548fc8bfeddd90501578d8b351c85cfc034a9fc1d64f75809dc4fb206d02dfabc137aa81842d8408dfa4951c3b
7
- data.tar.gz: f591c5a4004651687bdb6229c7b44a44b20084615c48e52d97cc378b339a67f6237ec33edbb8a80a3e2c41faba79b07055c4975749d846c0c2b05b5e287c871c
6
+ metadata.gz: da7268e98bcee1c90b5dad55ced6bfffa5b2aebc0ec4f68bcfad3b20250ea7286ccd252f44e9549254efe9afdea9f193bf599791ea5796a04bb631ac5da5388c
7
+ data.tar.gz: 7b19b21b753d280daf7cdb157845f84bc6b6d7731b1628ae27e9d7fccd1938c4600713ca60977714c6f35f4c061e5883fbe1a8f1a977ea1d26fe141397d54e49
@@ -2,13 +2,14 @@
2
2
 
3
3
  module AtomicView
4
4
  module Components
5
- # ShowPage
5
+ # Page
6
6
  #
7
- # The layout shell for a single-record detail page: a PageHeaderComponent
8
- # up top, an optional full-width `highlight` region below it, then a
7
+ # The layout shell for a single-record page: a PageHeaderComponent up
8
+ # top, an optional full-width `highlight` region below it, then a
9
9
  # two-column body -- the default content block as the main column, and an
10
10
  # optional `sidebar` slot as a second column. This is layout only -- it
11
- # has no opinion about what a record's detail page actually contains.
11
+ # has no opinion about what the page actually contains, so it fits show,
12
+ # edit, and new pages alike (a form is just content in the main column).
12
13
  # `highlight` is deliberately not called "stepper" or "progress": it's
13
14
  # just a full-width slot for whatever sits between the header and the
14
15
  # body (a lifecycle stepper, a banner, nothing at all) -- naming it after
@@ -17,7 +18,7 @@ module AtomicView
17
18
  # "details panel" -- fill it with a CardComponent, a plain `<dl>`,
18
19
  # whatever the record calls for.
19
20
  #
20
- # render(AtomicView::Components::ShowPageComponent.new) do |page|
21
+ # render(AtomicView::Components::PageComponent.new) do |page|
21
22
  # page.with_breadcrumbs { link_to "Rentals", rentals_path, class: "text-xs font-semibold text-primary" }
22
23
  # page.with_title { "RS002 · Karen Wilson" }
23
24
  # page.with_badge { render(BadgeComponent.new) { "Active" } }
@@ -38,7 +39,7 @@ module AtomicView
38
39
  # the main column from `sm:` up) matches every existing hand-rolled show
39
40
  # page in the consuming app -- that's the "good defaults" this component
40
41
  # exists to stop re-typing, not a novel layout choice.
41
- class ShowPageComponent < AtomicView::Component
42
+ class PageComponent < AtomicView::Component
42
43
  renders_one :breadcrumbs
43
44
  renders_one :title
44
45
  renders_one :badge
@@ -5,7 +5,7 @@ module AtomicView
5
5
  # PageHeader
6
6
  #
7
7
  # The title/breadcrumb/badge/actions cluster shared by IndexPageComponent
8
- # and ShowPageComponent (and usable standalone, e.g. above a lazily-loaded
8
+ # and PageComponent (and usable standalone, e.g. above a lazily-loaded
9
9
  # turbo-frame fragment that has no page shell of its own). Every region is
10
10
  # a free-form slot -- this component only lays them out, it has no
11
11
  # opinion about hrefs, badge variants, or what an action is.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtomicView
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Warrington
@@ -239,6 +239,8 @@ files:
239
239
  - lib/atomic_view/components/navigation_tree_component/item_component.html.erb
240
240
  - lib/atomic_view/components/navigation_tree_component/item_component.rb
241
241
  - lib/atomic_view/components/number_field_component.rb
242
+ - lib/atomic_view/components/page_component.html.erb
243
+ - lib/atomic_view/components/page_component.rb
242
244
  - lib/atomic_view/components/page_header_component.html.erb
243
245
  - lib/atomic_view/components/page_header_component.rb
244
246
  - lib/atomic_view/components/pagination_component.html.erb
@@ -251,8 +253,6 @@ files:
251
253
  - lib/atomic_view/components/segmented_control_component.rb
252
254
  - lib/atomic_view/components/select_component.html.erb
253
255
  - lib/atomic_view/components/select_component.rb
254
- - lib/atomic_view/components/show_page_component.html.erb
255
- - lib/atomic_view/components/show_page_component.rb
256
256
  - lib/atomic_view/components/submit_component.rb
257
257
  - lib/atomic_view/components/table_component.rb
258
258
  - lib/atomic_view/components/table_component/cell_component.html.erb