From dd4cd3756e53ef5feadbd5ba6e731f0cdd31b96e Mon Sep 17 00:00:00 2001 From: Arti Mathanda Date: Thu, 14 Oct 2021 15:23:37 +0100 Subject: [PATCH 1/4] Updates status url for component and snapshots --- .../integration/core/footer/__snapshots__/snapshots.js.snap | 4 ++-- .../core/showcase/__snapshots__/screenshots.js.snap | 4 ++-- .../integration/core/showcase/__snapshots__/snapshots.js.snap | 4 ++-- src/core/Footer/component.html.erb | 2 +- src/core/Footer/component.jsx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cypress/integration/core/footer/__snapshots__/snapshots.js.snap b/cypress/integration/core/footer/__snapshots__/snapshots.js.snap index c4e9760f8..f4cb127e1 100644 --- a/cypress/integration/core/footer/__snapshots__/snapshots.js.snap +++ b/cypress/integration/core/footer/__snapshots__/snapshots.js.snap @@ -142,7 +142,7 @@ exports[`Footer Snapshot Test > react > test case common to both #0`] = ` >System status + diff --git a/src/core/Footer/component.jsx b/src/core/Footer/component.jsx index 508bc94c3..5a1634d86 100644 --- a/src/core/Footer/component.jsx +++ b/src/core/Footer/component.jsx @@ -139,7 +139,7 @@ export default function Footer({ paths, urlBase }) { System status - + From cae7f66da8934097a297d53bc25102e7adf13270 Mon Sep 17 00:00:00 2001 From: Arti Mathanda Date: Thu, 14 Oct 2021 15:23:59 +0100 Subject: [PATCH 2/4] Updates URLs for BlogController --- preview/app/controllers/api/blog_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/preview/app/controllers/api/blog_controller.rb b/preview/app/controllers/api/blog_controller.rb index 815139ef7..f0303eb92 100644 --- a/preview/app/controllers/api/blog_controller.rb +++ b/preview/app/controllers/api/blog_controller.rb @@ -8,17 +8,17 @@ def recent_blog_posts { title: "Achieving exactly-once delivery with Ably", link: - "https://www-stats.ably.io/blog/achieving-exactly-once-message-processing-with-ably/", + "https://ably.com/blog/achieving-exactly-once-message-processing-with-ably", pubDate: "Tue, 17 Nov 2020 12:21:08 GMT".to_time.strftime('%b %e, %Y') }, { title: "Why Ably integrates with functions instead of delivering them", - link: "https://www-stats.ably.io/blog/why-we-dont-offer-functions/", + link: "https://ably.com/blog/why-we-dont-offer-functions", pubDate: "Tue, 28 Jul 2020 18:56:47 GMT".to_time.strftime('%b %e, %Y') }, { title: "Adventures in BEAM optimization with our MQTT adapter", - link: "https://www-stats.ably.io/blog/beam-optimization-mqtt/", + link: "https://ably.com/blog/beam-optimization-mqtt", pubDate: "Fri, 17 Jul 2020 09:09:45 GMT".to_time.strftime('%b %e, %Y') }, ] From 5a3c66094e5702e699296716c13857c315f4e609 Mon Sep 17 00:00:00 2001 From: Arti Mathanda Date: Thu, 14 Oct 2021 15:25:23 +0100 Subject: [PATCH 3/4] Updates snapshot tests for Uptime Updates snapshot test --- .../uptime/__snapshots__/snapshots.js.snap | 1012 +++++++++++++++++ 1 file changed, 1012 insertions(+) diff --git a/cypress/integration/core/uptime/__snapshots__/snapshots.js.snap b/cypress/integration/core/uptime/__snapshots__/snapshots.js.snap index a67fc39fc..78f1d5a46 100644 --- a/cypress/integration/core/uptime/__snapshots__/snapshots.js.snap +++ b/cypress/integration/core/uptime/__snapshots__/snapshots.js.snap @@ -443,3 +443,1015 @@ exports[`Uptime Snapshot Test > react > test case common to both #1`] = ` Sorry, we can’t retrieve uptime data right now. `; + +exports[`Code Snapshot Test > react > test case common to both #0`] = ` +
+
var ably = new Ably.Realtime('1WChTA.mc0Biw:kNfiYG4KiPgmHHgH');
+var channel = ably.channels.get('web-pal');
+
+// Subscribe to messages on channel
+channel.subscribe('greeting', function(message) {
+  alert(message.data);
+});
+
+`; + +exports[`Code Snapshot Test > react > test case common to both #1`] = ` +
+
let ably = ARTRealtime(key: "1WChTA.mc0Biw:kNfiYG4KiPgmHHgH")
+let channel = ably.channels.get("web-pal")
+
+// Subscribe to messages on channel
+channel.subscribe("greeting") { message in
+  print("\\(message.data)")
+}
+
+`; + +exports[`Code Snapshot Test > react > test case common to both #2`] = ` +
+
AblyRealtime ably = new AblyRealtime("1WChTA.mc0Biw:kNfiYG4KiPgmHHgH");
+Channel channel = ably.channels.get("web-pal");
+
+/* Subscribe to messages on channel */
+
+MessageListener listener;
+listener = new MessageListener() {
+  @Override
+  public void onMessage(Message message) {
+    System.out.print(message.data);
+  };
+};
+channel.subscribe("greeting", listener);
+
+`; + +exports[`Code Snapshot Test > view component > test case common to both #0`] = ` +
+
var ably = new Ably.Realtime('1WChTA.mc0Biw:kNfiYG4KiPgmHHgH');
+var channel = ably.channels.get('web-pal');
+
+// Subscribe to messages on channel
+channel.subscribe('greeting', function(message) {
+  alert(message.data);
+});
+
+`; + +exports[`Code Snapshot Test > view component > test case common to both #1`] = ` +
+
let ably = ARTRealtime(key: "1WChTA.mc0Biw:kNfiYG4KiPgmHHgH")
+let channel = ably.channels.get("web-pal")
+
+// Subscribe to messages on channel
+channel.subscribe("greeting") { message in
+  print("\\(message.data)")
+}
+
+`; + +exports[`Code Snapshot Test > view component > test case common to both #2`] = ` +
+
AblyRealtime ably = new AblyRealtime("1WChTA.mc0Biw:kNfiYG4KiPgmHHgH");
+Channel channel = ably.channels.get("web-pal");
+
+/* Subscribe to messages on channel */
+
+MessageListener listener;
+listener = new MessageListener() {
+  @Override
+  public void onMessage(Message message) {
+    System.out.print(message.data);
+  };
+};
+channel.subscribe("greeting", listener);
+
+`; + +exports[`Chat button state > react > the button is inactive without Hubspot widget #0`] = ` + +`; + +exports[`Chat button state > vw > the button is inactive without Hubspot widget #0`] = ` + +`; + +exports[`Cookie Message Snapshot Test > react > the message component is visible #0`] = ` + +`; + +exports[`Flash Snapshot Test > renders correcty #0`] = ` +
+
+ + + +

+ Congratulations! You've won the Oscar +

+ +
+
+`; + +exports[`Flash Snapshot Test > renders correcty #1`] = ` +
+
+ + + +

This is a notice

+ +
+
+`; + +exports[`Flash Snapshot Test > renders correcty #2`] = ` +
+
+ + + +

This is an error, very bad

+ +
+
+`; + +exports[`Flash Snapshot Test > renders correcty #3`] = ` +
+
+ + + +

This is an alert

+ +
+
+`; + +exports[`Flash Snapshot Test > renders correcty #4`] = ` +
+
+

+ Some useful information, you are welcome +

+ +
+
+`; + +exports[`Footer Snapshot Test > react > test case common to both #0`] = ` + +`; + +exports[`Footer Snapshot Test > view component > test case common to both #0`] = ` + +`; + +exports[`ControlMobileDropdown > react > renders correctly by default #0`] = ` + +`; + +exports[`ControlMobileDropdown > react > renders correctly on click #0`] = ` + +`; + +exports[`ControlMobileDropdown > vw > renders correctly by default #0`] = ` + +`; + +exports[`ControlMobileDropdown > vw > renders correctly on click #0`] = ` + +`; + +exports[`Notice > react > renders correctly by default #0`] = ` + +`; + +exports[`Notice > vw > renders correctly by default #0`] = ` + +`; From 6cdebff0a12178f232129bad831b31263c3b9038 Mon Sep 17 00:00:00 2001 From: Arti Mathanda Date: Thu, 14 Oct 2021 15:28:16 +0100 Subject: [PATCH 4/4] Publish v4.1.0-dev.5a3c660 and update preview app --- Gemfile.lock | 2 +- lib/ably_ui/version.rb | 2 +- package.json | 2 +- preview/Gemfile | 2 +- preview/Gemfile.lock | 4 ++-- preview/package.json | 2 +- preview/yarn.lock | 8 ++++---- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 340c26b57..b49fed13a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ably-ui (4.1.0) + ably-ui (4.1.0.dev.5a3c660) view_component (~> 2.33.0) GEM diff --git a/lib/ably_ui/version.rb b/lib/ably_ui/version.rb index 1bb4d0a1e..2f1cf6ae5 100644 --- a/lib/ably_ui/version.rb +++ b/lib/ably_ui/version.rb @@ -1,3 +1,3 @@ module AblyUi - VERSION = '4.1.0' + VERSION = '4.1.0.dev.5a3c660' end diff --git a/package.json b/package.json index e23277eab..61d052b65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ably/ably-ui", - "version": "4.1.0", + "version": "4.1.0-dev.5a3c660", "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": "git@github.com:ably/ably-ui.git", "license": "Apache-2.0", diff --git a/preview/Gemfile b/preview/Gemfile index 680a2d473..46f3bd502 100644 --- a/preview/Gemfile +++ b/preview/Gemfile @@ -36,4 +36,4 @@ gem 'view_component', '~> 2.33.0', require: 'view_component/engine' gem 'responders' -gem 'ably-ui', '4.1.0', require: 'ably_ui', source: 'https://rubygems.pkg.github.com/ably' +gem 'ably-ui', '4.1.0.dev.5a3c660', require: 'ably_ui', source: 'https://rubygems.pkg.github.com/ably' diff --git a/preview/Gemfile.lock b/preview/Gemfile.lock index 42a30882a..3baedd2dd 100644 --- a/preview/Gemfile.lock +++ b/preview/Gemfile.lock @@ -2,7 +2,7 @@ GEM remote: https://rubygems.org/ remote: https://rubygems.pkg.github.com/ably/ specs: - ably-ui (4.1.0) + ably-ui (4.1.0.dev.5a3c660) view_component (~> 2.33.0) actioncable (6.0.3.4) actionpack (= 6.0.3.4) @@ -168,7 +168,7 @@ PLATFORMS ruby DEPENDENCIES - ably-ui (= 4.1.0)! + ably-ui (= 4.1.0.dev.5a3c660)! bootsnap (>= 1.4.2) byebug listen (~> 3.2) diff --git a/preview/package.json b/preview/package.json index 2cfe65c6e..41427abdb 100644 --- a/preview/package.json +++ b/preview/package.json @@ -2,7 +2,7 @@ "name": "preview", "private": true, "dependencies": { - "@ably/ably-ui": "4.1.0", + "@ably/ably-ui": "4.1.0-dev.5a3c660", "@babel/preset-react": "^7.12.5", "@rails/ujs": "^6.0.0", "@rails/webpacker": "4.3.0", diff --git a/preview/yarn.lock b/preview/yarn.lock index 91e7ea898..8315fee4c 100644 --- a/preview/yarn.lock +++ b/preview/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@ably/ably-ui@4.1.0": - version "4.1.0" - resolved "https://npm.pkg.github.com/download/@ably/ably-ui/4.1.0/8b2817ab08e7ef9416b05482d9d44b9394ebb0d7fcbda2e4ff017b3e73d08f40#d5771382a96abfc1ce0697e17a48c07125c2fb33" - integrity sha512-8Ri2Zw5YQPBupIRUI6MYKbMWLSR5fTS1coUHaEd6761qBkkqF6m2H8Ly45O0kYRa3+pRl61KysEXgVQTjXIDYQ== +"@ably/ably-ui@4.1.0-dev.5a3c660": + version "4.1.0-dev.5a3c660" + resolved "https://npm.pkg.github.com/download/@ably/ably-ui/4.1.0-dev.5a3c660/508094a5523732595537241eeb5dd67b2bdb453fb90004923ee49fc1daeaff32#6b79efac1583143aac1b371b017f868e3559a47c" + integrity sha512-Hj6Y2/uYKhigo7Z2zMYjXMvpGKP3QREB1D+NpPdjnztgc330gFqo2wradKdqLZXXgBE0cH9fZvhTjQXuLOGbAg== dependencies: array-flat-polyfill "^1.0.1" deepmerge "^4.2.2"