Page MenuHomePhabricator

Vue: Reorder function editor/viewer related files in the front-end
Closed, ResolvedPublic

Description

Description

We have a bit of a mess in the way we are ordering our vue component/view directories, mostly with the files related to the function viewer and editor.

The division between components/function and views/function is completely arbitrary
Function vs ZFunction vs Fn prefix to name function related components is also arbirary

Standardize folders and component naming

▾ components/

▾ editor/
    FnEditorZLanguageSelector.vue
    LeaveEditorDialog.vue
    PublishDialog.vue                                       
▾ function/
  ▾ definition/
      FunctionDefinitionAliases.vue
      FunctionDefinitionFooter.vue
      FunctionDefinitionInputs.vue
      FunctionDefinitionInputsItem.vue
      FunctionDefinitionName.vue
      FunctionDefinitionOutput.vue
    ZFunctionCallRunner.vue
    ZFunctionEvaluator.vue
    ZFunctionTesterReport.vue
    ZImplementationList.vue
    ZImplementationListItem.vue
    ZInlineTesterCall.vue
    ZInlineTesterValidation.vue
    ZLabelBlockAliases.vue
    ZTesterAdHoc.vue
    ZTesterImplResult.vue
    ZTesterList.vue
    ZTesterListItem.vue

▾ views/

▾ function/
  ▾ about/
      FunctionViewerAboutAliases.vue
      FunctionViewerAboutDetails.vue
      FunctionViewerAboutExamples.vue
      FunctionViewerAboutNames.vue
  ▾ details/
      FunctionViewerDetailsSidebar.vue
      FunctionViewerDetailsTable.vue
  ▾ partials/
      FunctionViewerSidebar.vue
      TesterTableStatus.vue
    FunctionAbout.vue
    FunctionDefinition.vue
    FunctionDetails.vue
  DefaultView.vue
  FunctionEditor.vue
  FunctionViewer.vue
  ZObjectEditor.vue
  ZObjectViewer.vue

Completion checklist

Event Timeline

Change 885393 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Restructure vue directories following some unified criteria

https://gerrit.wikimedia.org/r/885393

Change 885393 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Restructure vue directories following some unified criteria

https://gerrit.wikimedia.org/r/885393