1. 20 May, 2020 5 commits
    • Thomas Randolph's avatar
      b26e89ca
    • Thomas Randolph's avatar
      Show a link in the UI to load the content of a `renamed` file · 5c09b29f
      Thomas Randolph authored
      And: reduce all the possible state combinations to a FSM
      
      Per design review, this component needed a bunch more
      interactivity. Most critically, around displaying and responding
      to a load error.
      
      Rather than set a bunch of flags and toggle various elements
      based on a collection of booleans, I think it's much easier to
      reason about this component if it has a Finite State Machine
      representing its possible states and transitions between them.
      
      The two notable logic additions here are a rudimentary FSM
      (`transition`) and a state checker (`is`).
      
      `transition` defines all the ways the component can go from
      one state to another. If a transition is attempted that doesn't
      match one of these declared transitions, it does nothing.
      Every transition always results in a declared state.
      these two things combined make it much easier to reason
      about what the component should look like at any given
      moment.
      
      Other than the state machine (which should be replaced with
      something like @xstate/fsm), the rest of these changes are
      text changes from UX/technical writing review.
      5c09b29f
    • Thomas Randolph's avatar
      Pass the diffFile down so the renamed viewer can use it · c7f3bc74
      Thomas Randolph authored
      Also updates other components that eventually
      use the same component
      c7f3bc74
    • Thomas Randolph's avatar
      Remove global flash message · f44fe3fe
      Thomas Randolph authored
      Per our design docs, global flash messages aren't appropriate
      in this context (or virtually anywhere!), so there's no reason
      to catch this error here.
      f44fe3fe
    • Evan Read's avatar
      Merge branch 'docs-fence-languages-cleanup-2' into 'master' · 863ee664
      Evan Read authored
      Change codeblock fence languages to full name 2
      
      See merge request gitlab-org/gitlab!32502
      863ee664
  2. 19 May, 2020 35 commits