From cc5d08af2827257086d7f6eb334e0de54862b4c6 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 20 Jun 2022 01:52:58 -0400 Subject: [PATCH] tweak --- packages/webpage-refactor/README.md | 2 ++ packages/webpage-refactor/components/comparisonActuator.js | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/webpage-refactor/README.md b/packages/webpage-refactor/README.md index 81e5c1a..38db172 100644 --- a/packages/webpage-refactor/README.md +++ b/packages/webpage-refactor/README.md @@ -105,5 +105,7 @@ Distributed under the MIT License. See LICENSE.txt for more information. - [ ] Add functionality like names, etc. - I also don't feel like doing this - [ ] Look back at Amazon thing which has been running +- [ ] Simplify Graph and DynamicSquiggleChart components +- [ ] Add squiggle component to initial comparison? [^1]: The program takes each element as a reference point in turn, and computing the possible distances from that reference point to all other points, and taking the geometric mean of these distances. This produces a number representing the value of each element, such that the ratios between elements represent the user's preferences: a utility function. However, this isn't perfect; the principled approach woud be to aggregate the distributions rather than their means. But this principled approach is much more slowly. For the principled approach, see the `utility-tools` repository. diff --git a/packages/webpage-refactor/components/comparisonActuator.js b/packages/webpage-refactor/components/comparisonActuator.js index b0edc22..4244fbf 100644 --- a/packages/webpage-refactor/components/comparisonActuator.js +++ b/packages/webpage-refactor/components/comparisonActuator.js @@ -6,8 +6,10 @@ export function ComparisonActuator({ moveToNextStep, isListOrdered, }) { - const initialComparisonString = "x to y"; - const [comparisonString, setComparisonString] = useState("x to y"); + const initialComparisonString = ""; + const [comparisonString, setComparisonString] = useState( + initialComparisonString + ); const onChangeComparisonString = async (event) => { if (!isListOrdered) { await setComparisonString(event.target.value); @@ -34,6 +36,7 @@ export function ComparisonActuator({