Skip to content

Commit

Permalink
Merge pull request #253 from ably/WEB-2689
Browse files Browse the repository at this point in the history
WEB-2689 - Update meganav for atomic examples to include Chat Admin Privileges
  • Loading branch information
aralovelace authored Jan 13, 2023
2 parents 3a3feef + 46cb5e5 commit c3e700f
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ably-ui (8.7.0.dev.c29ac14)
ably-ui (8.7.0.dev.3fee7c0)
view_component (>= 2.33, < 2.50)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/ably_ui/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AblyUi
VERSION = '8.7.0.dev.c29ac14'
VERSION = '8.7.0.dev.3fee7c0'
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ably/ui",
"version": "8.7.0-dev.c29ac14",
"version": "8.7.0-dev.3fee7c0",
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion preview/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ gem 'view_component', '~> 2.33.0', require: 'view_component/engine'

gem 'responders'

gem 'ably-ui', '8.7.0.dev.c29ac14', require: 'ably_ui'
gem 'ably-ui', '8.7.0.dev.3fee7c0', require: 'ably_ui'

# https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias
gem 'psych', '< 4'
Expand Down
4 changes: 2 additions & 2 deletions preview/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
ably-ui (8.7.0.dev.c29ac14)
ably-ui (8.7.0.dev.3fee7c0)
view_component (>= 2.33, < 2.50)
actioncable (6.0.5.1)
actionpack (= 6.0.5.1)
Expand Down Expand Up @@ -175,7 +175,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
ably-ui (= 8.7.0.dev.c29ac14)
ably-ui (= 8.7.0.dev.3fee7c0)
bootsnap (>= 1.4.2)
byebug
dotenv-rails
Expand Down
2 changes: 1 addition & 1 deletion preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "preview",
"private": true,
"dependencies": {
"@ably/ui": "8.7.0-dev.c29ac14",
"@ably/ui": "8.7.0-dev.3fee7c0",
"@babel/preset-react": "^7.12.5",
"@rails/ujs": "^6.0.0",
"@rails/webpacker": "4.3.0",
Expand Down
8 changes: 4 additions & 4 deletions preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@ably/[email protected].c29ac14":
version "8.7.0-dev.c29ac14"
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-8.7.0-dev.c29ac14.tgz#1cf1f79ca41827500de68dcc57cea284a618376d"
integrity sha512-lTcxGZ0EAKTzQZTPB93Cx214WdDg7G3qFRTq/HK0GGdl1NbrHGf4BZopmDh78G8T193AbIaeam2XkyQaajMxyg==
"@ably/[email protected].3fee7c0":
version "8.7.0-dev.3fee7c0"
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-8.7.0-dev.3fee7c0.tgz#a4c177b90efa2026a0698f9d66edc2732e81f1c2"
integrity sha512-CyY1vnaMoIRcMcqXIPyPcgByFu5qbpQYz7GqNAO+0DElrdlWoTX76Qu0Wr3JQqcnQXqXwnKHtiqfPDI7H6Lcdg==
dependencies:
addsearch-js-client "^0.7.0"
array-flat-polyfill "^1.0.1"
Expand Down
12 changes: 6 additions & 6 deletions src/core/MeganavContentPlatform/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
<p class="ui-meganav-media-copy">Display a list of user actions in realtime.</p>
<% end %>
</li>
<li>
<%= link_to abs_url("/examples/live-charts"), class: "ui-meganav-media group" do %>
<p class="ui-meganav-media-heading">Live Charts</p>
<p class="ui-meganav-media-copy">Visualise live metrics and data in a chart.</p>
<% end %>
</li>
<li>
<%= link_to abs_url("/examples/live-cursors"), class: "ui-meganav-media group" do %>
<p class="ui-meganav-media-heading">Live Cursors</p>
Expand All @@ -54,6 +48,12 @@
<p class="ui-meganav-media-copy">See when a user is typing a message.</p>
<% end %>
</li>
<li>
<%= link_to abs_url("/examples/chat-admin-privileges"), class: "ui-meganav-media group" do %>
<p class="ui-meganav-media-heading">Chat Admin Privileges</p>
<p class="ui-meganav-media-copy">Control who can take admin actions in a digital space.</p>
<% end %>
</li>
</ul>

<%= render(AblyUi::Core::FeaturedLink.new(url: abs_url("/examples"), text_size: 'text-p3')) do %>Explore all live examples<% end %>
Expand Down
12 changes: 6 additions & 6 deletions src/core/MeganavContentPlatform/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ const MeganavContentPlatform = ({ paths, absUrl }) => (
<p className="ui-meganav-media-copy">Display a list of user actions in realtime.</p>
</a>
</li>
<li>
<a href={absUrl("/examples/live-charts")} className="ui-meganav-media group">
<p className="ui-meganav-media-heading">Live Charts</p>
<p className="ui-meganav-media-copy">Visualise live metrics and data in a chart.</p>
</a>
</li>
<li>
<a href={absUrl("/examples/live-cursors")} className="ui-meganav-media group">
<p className="ui-meganav-media-heading">Live Cursors</p>
Expand All @@ -63,6 +57,12 @@ const MeganavContentPlatform = ({ paths, absUrl }) => (
<p className="ui-meganav-media-copy">See when a user is typing a message.</p>
</a>
</li>
<li>
<a href={absUrl("/examples/chat-admin-privileges")} className="ui-meganav-media group">
<p className="ui-meganav-media-heading">Chat Admin Privileges</p>
<p className="ui-meganav-media-copy">Control who can take admin actions in a digital space.</p>
</a>
</li>
</ul>
<FeaturedLink url={absUrl("/examples")} textSize="text-p3">
Explore all live examples
Expand Down

0 comments on commit c3e700f

Please sign in to comment.