You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/11/08 11:46:47 UTC

[GitHub] [beam] alexeyinkin opened a new pull request, #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

alexeyinkin opened a new pull request, #24031:
URL: https://github.com/apache/beam/pull/24031

   - Resolves #23926 
   
   ------------------------
   
   Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
   
    - [ ] [**Choose reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and mention them in a comment (`R: @username`).
    - [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
    - [ ] Update `CHANGES.md` with noteworthy changes.
    - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/get-started-contributing/#make-the-reviewers-job-easier).
   
   To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
   
   GitHub Actions Tests Status (on master branch)
   ------------------------------------------------------------------------------------------------
   [![Build python source distribution and wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Go tests](https://github.com/apache/beam/workflows/Go%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] pabloem merged pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
pabloem merged PR #24031:
URL: https://github.com/apache/beam/pull/24031


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] github-actions[bot] commented on pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #24031:
URL: https://github.com/apache/beam/pull/24031#issuecomment-1307443002

   Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016807387


##########
playground/frontend/lib/modules/examples/components/example_list/example_item_actions.dart:
##########
@@ -36,8 +36,8 @@ class ExampleItemActions extends StatelessWidget {
     return Row(
       children: [
         if (example.isMultiFile) multifilePopover,
-        if (example.complexity != Complexity.unspecified)
-          ComplexityWidget(complexity: example.complexity),
+        if (example.complexity != null)

Review Comment:
   `null` is always better than a null-constant in an enum. Advantages include:
   - Less identifiers.
   - More distinction from other values.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016804636


##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/http_example_loader.dart:
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import 'package:collection/collection.dart';
+import 'package:http/http.dart' as http;
+
+import '../../cache/example_cache.dart';
+import '../../models/example.dart';
+import '../../models/example_base.dart';
+import '../../models/example_loading_descriptors/http_example_loading_descriptor.dart';
+import 'example_loader.dart';
+
+class HttpExampleLoader extends ExampleLoader {
+  final HttpExampleLoadingDescriptor descriptor;
+
+  const HttpExampleLoader({
+    required this.descriptor,
+    // TODO(alexeyinkin): Remove when this lands: https://github.com/dart-lang/language/issues/1813
+    required ExampleCache exampleCache,
+  });
+
+  @override
+  Future<Example> get future async {
+    final response = await http.get(descriptor.uri);

Review Comment:
   The same as with failing of any existing loader: infinite loading.
   Filed a separate issue: https://github.com/apache/beam/issues/24033



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016821542


##########
playground/frontend/playground_components/lib/src/controllers/snippet_editing_controller.dart:
##########
@@ -29,22 +28,39 @@ class SnippetEditingController extends ChangeNotifier {
   final Sdk sdk;
   final CodeController codeController;
   Example? _selectedExample;
-  String _pipelineOptions;
+  String _pipelineOptions = '';
 
   SnippetEditingController({
     required this.sdk,
-    Example? selectedExample,
-    String pipelineOptions = '',
-  })  : codeController = CodeController(
+  }) : codeController = CodeController(
           language: sdk.highlightMode,
+          namedSectionParser: const BracketsStartEndNamedSectionParser(),
           webSpaceFix: false,
-        ),
-        _selectedExample = selectedExample,
-        _pipelineOptions = pipelineOptions;
+        );
 
   set selectedExample(Example? value) {
     _selectedExample = value;
     setSource(_selectedExample?.source ?? '');
+

Review Comment:
   `+`



##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/empty_example_loader.dart:
##########
@@ -34,14 +34,11 @@ class EmptyExampleLoader extends ExampleLoader {
 

Review Comment:
   `+`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016780065


##########
playground/frontend/playground_components/lib/src/models/example_base.dart:
##########
@@ -48,32 +49,35 @@ extension ExampleTypeToString on ExampleType {
 /// and other large fields.
 /// These objects are fetched as lists from [ExampleRepository].
 class ExampleBase with Comparable<ExampleBase>, EquatableMixin {
-  final Sdk sdk;
-  final List<String> tags;
-  final ExampleType type;
-  final String name;
-  final String path;
-  final String description;
+  final Complexity? complexity;
   final int contextLine;
+  final String description;
   final bool isMultiFile;
   final String? link;
+  final String name;
+  final String path;
   final String pipelineOptions;
-  final Complexity complexity;
+  final Sdk sdk;
+  final List<String> tags;
+  final ExampleType type;
+  final ExampleViewOptions viewOptions;
 
   const ExampleBase({
-    required this.sdk,
     required this.name,
     required this.path,
-    required this.description,
-    required this.tags,
+    required this.sdk,
     required this.type,
+    this.complexity,
     this.contextLine = 1,
+    this.description = '',
     this.isMultiFile = false,
     this.link,
-    required this.pipelineOptions,
-    required this.complexity,
+    this.pipelineOptions = '',
+    this.tags = const [],
+    this.viewOptions = ExampleViewOptions.empty,
   });
 
+  // TODO(alexeyinkin): Use all fields, https://github.com/apache/beam/issues/23979

Review Comment:
   This is because it is hard to look up all usages of the `operator ==`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on PR #24031:
URL: https://github.com/apache/beam/pull/24031#issuecomment-1307441653

   R: @damondouglas 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016768854


##########
playground/frontend/lib/modules/examples/models/example_token_type.dart:
##########
@@ -19,11 +19,18 @@
 import 'package:playground_components/playground_components.dart';
 
 enum ExampleTokenType {

Review Comment:
   Token is a string. So this is the type of that string.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016776223


##########
playground/frontend/playground_components/lib/src/widgets/editor_textarea.dart:
##########
@@ -149,15 +149,12 @@ class _EditorTextAreaState extends State<EditorTextArea> {
   }
 
   int _getIndexOfContextLine() {
-    int ctxLineNumber = widget.example!.contextLine;
-    String contextLine = widget.codeController.text.split('\n')[ctxLineNumber];
+    final contextLine = widget.example!.contextLine;

Review Comment:
   Let's do one thing at a time. This is not a regression, there has already been `!` here.
   
   Anyway we plan get rid of the numeric context line in the phase 3 and have it scrolled to a given hidden comment.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] alexeyinkin commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
alexeyinkin commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016811747


##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/http_example_loader.dart:
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import 'package:collection/collection.dart';
+import 'package:http/http.dart' as http;
+
+import '../../cache/example_cache.dart';
+import '../../models/example.dart';
+import '../../models/example_base.dart';
+import '../../models/example_loading_descriptors/http_example_loading_descriptor.dart';
+import 'example_loader.dart';
+
+class HttpExampleLoader extends ExampleLoader {

Review Comment:
   Example loaders and descriptors are some of the most self-describing classes in the package.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Malarg commented on a diff in pull request #24031: Configure flutter_code_editor options with Hugo shortcode (#23926)

Posted by GitBox <gi...@apache.org>.
Malarg commented on code in PR #24031:
URL: https://github.com/apache/beam/pull/24031#discussion_r1016552272


##########
playground/frontend/lib/modules/examples/models/example_token_type.dart:
##########
@@ -19,11 +19,18 @@
 import 'package:playground_components/playground_components.dart';
 
 enum ExampleTokenType {

Review Comment:
   May be `ExampleTokenSourceType`?



##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/http_example_loader.dart:
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import 'package:collection/collection.dart';
+import 'package:http/http.dart' as http;
+
+import '../../cache/example_cache.dart';
+import '../../models/example.dart';
+import '../../models/example_base.dart';
+import '../../models/example_loading_descriptors/http_example_loading_descriptor.dart';
+import 'example_loader.dart';
+
+class HttpExampleLoader extends ExampleLoader {

Review Comment:
   Would be nice if `ExampleLoader` and it's descendants were covered by the documentation



##########
playground/frontend/playground_components/lib/src/models/example_base.dart:
##########
@@ -48,32 +49,35 @@ extension ExampleTypeToString on ExampleType {
 /// and other large fields.
 /// These objects are fetched as lists from [ExampleRepository].
 class ExampleBase with Comparable<ExampleBase>, EquatableMixin {
-  final Sdk sdk;
-  final List<String> tags;
-  final ExampleType type;
-  final String name;
-  final String path;
-  final String description;
+  final Complexity? complexity;
   final int contextLine;
+  final String description;
   final bool isMultiFile;
   final String? link;
+  final String name;
+  final String path;
   final String pipelineOptions;
-  final Complexity complexity;
+  final Sdk sdk;
+  final List<String> tags;
+  final ExampleType type;
+  final ExampleViewOptions viewOptions;
 
   const ExampleBase({
-    required this.sdk,
     required this.name,
     required this.path,
-    required this.description,
-    required this.tags,
+    required this.sdk,
     required this.type,
+    this.complexity,
     this.contextLine = 1,
+    this.description = '',
     this.isMultiFile = false,
     this.link,
-    required this.pipelineOptions,
-    required this.complexity,
+    this.pipelineOptions = '',
+    this.tags = const [],
+    this.viewOptions = ExampleViewOptions.empty,
   });
 
+  // TODO(alexeyinkin): Use all fields, https://github.com/apache/beam/issues/23979

Review Comment:
   Is this a big feature that we can't do here?



##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/empty_example_loader.dart:
##########
@@ -34,14 +34,11 @@ class EmptyExampleLoader extends ExampleLoader {
 

Review Comment:
   unused import



##########
playground/frontend/playground_components/lib/src/controllers/example_loaders/http_example_loader.dart:
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import 'package:collection/collection.dart';
+import 'package:http/http.dart' as http;
+
+import '../../cache/example_cache.dart';
+import '../../models/example.dart';
+import '../../models/example_base.dart';
+import '../../models/example_loading_descriptors/http_example_loading_descriptor.dart';
+import 'example_loader.dart';
+
+class HttpExampleLoader extends ExampleLoader {
+  final HttpExampleLoadingDescriptor descriptor;
+
+  const HttpExampleLoader({
+    required this.descriptor,
+    // TODO(alexeyinkin): Remove when this lands: https://github.com/dart-lang/language/issues/1813
+    required ExampleCache exampleCache,
+  });
+
+  @override
+  Future<Example> get future async {
+    final response = await http.get(descriptor.uri);

Review Comment:
   What if request fails?



##########
playground/frontend/playground_components/lib/src/widgets/editor_textarea.dart:
##########
@@ -149,15 +149,12 @@ class _EditorTextAreaState extends State<EditorTextArea> {
   }
 
   int _getIndexOfContextLine() {
-    int ctxLineNumber = widget.example!.contextLine;
-    String contextLine = widget.codeController.text.split('\n')[ctxLineNumber];
+    final contextLine = widget.example!.contextLine;

Review Comment:
   Are you sure, that there won't be a situation, when example is null. After code investigation i seen that it could be if we haven't selected example. Are this situation possible?



##########
playground/frontend/playground_components/lib/src/models/example_loading_descriptors/http_example_loading_descriptor.dart:
##########
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import '../sdk.dart';
+import 'example_loading_descriptor.dart';
+
+class HttpExampleLoadingDescriptor extends ExampleLoadingDescriptor {

Review Comment:
   I think `ExampleLoadingDescriptor` also should be covered by docs



##########
playground/frontend/playground_components/lib/src/controllers/snippet_editing_controller.dart:
##########
@@ -29,22 +28,39 @@ class SnippetEditingController extends ChangeNotifier {
   final Sdk sdk;
   final CodeController codeController;
   Example? _selectedExample;
-  String _pipelineOptions;
+  String _pipelineOptions = '';
 
   SnippetEditingController({
     required this.sdk,
-    Example? selectedExample,
-    String pipelineOptions = '',
-  })  : codeController = CodeController(
+  }) : codeController = CodeController(
           language: sdk.highlightMode,
+          namedSectionParser: const BracketsStartEndNamedSectionParser(),
           webSpaceFix: false,
-        ),
-        _selectedExample = selectedExample,
-        _pipelineOptions = pipelineOptions;
+        );
 
   set selectedExample(Example? value) {
     _selectedExample = value;
     setSource(_selectedExample?.source ?? '');
+

Review Comment:
   We can check value on null here before configuring controller:
   ```
       final viewOptions = value?.viewOptions;
       if (viewOptions != null) {
         final readOnlySectionNames = viewOptions.readOnlySectionNames;       <- extracted just for not exceed 80 chars :)
         codeController.readOnlySectionNames = readOnlySectionNames.toSet();
   
         codeController.visibleSectionNames = viewOptions.showSectionNames.toSet();
   
         if (viewOptions.foldCommentAtLineZero) {
           codeController.foldCommentAtLineZero();
         }
   
         if (viewOptions.foldImports) {
           codeController.foldImports();
         }
   
         final unfolded = viewOptions.unfoldSectionNames;
         if (unfolded.isNotEmpty) {
           codeController.foldOutsideSections(unfolded);
         }
       }
   ```



##########
playground/frontend/lib/modules/examples/components/example_list/example_item_actions.dart:
##########
@@ -36,8 +36,8 @@ class ExampleItemActions extends StatelessWidget {
     return Row(
       children: [
         if (example.isMultiFile) multifilePopover,
-        if (example.complexity != Complexity.unspecified)
-          ComplexityWidget(complexity: example.complexity),
+        if (example.complexity != null)

Review Comment:
   Why did you changed this logic?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org