Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

feat: widget align system #19

Merged
merged 99 commits into from
Sep 24, 2021
Merged

feat: widget align system #19

merged 99 commits into from
Sep 24, 2021

Commits on Jul 5, 2021

  1. wip: align system domain models; structs, getters for each level, add…

    … function and remove function + testing for all so far
    KaWaite committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    b72b03d View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. wip: add WidgetLayout field to plugins; update plugin_manifest, gener…

    …ate types, update convert.go, update extension.go as well as its builder and tests
    KaWaite committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    5719bd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5865098 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Add floating parameter to WidgetLayout to be able to filter widgets t…

    …hat aren't related to the align system.
    
    fixed conversion logic for empty WidgetLayout
    fixed conversion logic for empty DefaultLocation
    KaWaite committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    1c25e0c View commit details
    Browse the repository at this point in the history
  2. Change align_system name to widget_align_system

    KaWaite committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    e3ac80a View commit details
    Browse the repository at this point in the history
  3. Move WidgetLayout to scene package

    Update plugin.WidgetLayout use and add WidgetLayout where necessary
    KaWaite committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    2c95282 View commit details
    Browse the repository at this point in the history
  4. convert if/else chains to switches

    add Move method
    KaWaite committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    d24de7a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5f70891 View commit details
    Browse the repository at this point in the history
  6. Make widgetLayout a pointer

    KaWaite committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    1d5697d View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2021

  1. Fix Remove method, add Reorder method, tests for both move and reorde…

    …r, fix up tests
    KaWaite committed Jul 12, 2021
    Configuration menu
    Copy the full SHA
    2d75f29 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2021

  1. wip: add widget align system to usecases/graphql

    KaWaite committed Jul 19, 2021
    Configuration menu
    Copy the full SHA
    618da73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22df08a View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Remove unneeded widgetlayout in AddWidgetInput

    Pull out widgetlayout and
    conditionally add widget to widgetalignsystem in AddWidget
    Add SetExtended method to Widget
    Add extended to UpdateWidgetParam
    Combine Move and Reorder methods + tests
    KaWaite committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    f0a333c View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Change defaultLocation to currentLocation

    Add WidgetIds and Alignment methods to alignSystem
    Update graphql
    Etc
    KaWaite committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    dece978 View commit details
    Browse the repository at this point in the history
  2. Add SetCurrentLocation method

    Make widgetIds a slice of pointers to the ids
    Update add test to include two additions
    Update logic in scene interactor to be more deliberate
    Update scene controller to avoid assignment if nil
    KaWaite committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    64b01e4 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Conversions for mongo and structs

    Conversions for graphql and structs
    Updated graphql schemas + gens
    KaWaite committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    2df61d7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    093057d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    755500a View commit details
    Browse the repository at this point in the history
  4. Add alignment to graphql and mongodoc

    simplify conditionals/avoid lint warning
    KaWaite committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    4f8d5c4 View commit details
    Browse the repository at this point in the history
  5. Re-rename currentLocation to defaultLocation

    Add align to widget update
    Add widgetLayout to reearth widgets
    Fix/improve conditionals
    KaWaite committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    66fcf58 View commit details
    Browse the repository at this point in the history
  6. Remove unneeded conditional check

    KaWaite committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    13ca55a View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Add align sys and widgetlayout to published JSON

    Add extended bool to sceneWidget (graphql)
    Move up updating align to top of if statements
    Add Equal method to widgetId
    KaWaite committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    600ca5c View commit details
    Browse the repository at this point in the history
  2. Migration for adding widgetLayout to scene

    Migration for adding alignSystem to scene
    KaWaite committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    1af1b55 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cab7774 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2021

  1. merge with main

    KaWaite committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    e9f0c56 View commit details
    Browse the repository at this point in the history
  2. Remove unused type in scene encoder

    Remove commented out code in scene builder
    KaWaite committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    f9502fe View commit details
    Browse the repository at this point in the history
  3. Add conditional in case widgetlayout is nil

    KaWaite committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    08e2193 View commit details
    Browse the repository at this point in the history
  4. Fix tests

    KaWaite committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    2b53ffe View commit details
    Browse the repository at this point in the history
  5. Rename scene Location to WidgetLocation

    Rename graphql Location to WidgetLocation
    Rename mongodoc Location to WidgetLocation
    Fix where mongodoc PluginExtensionDoc type used a type from pkg
    Create a function to handle recreating widget align system in mongodoc and scene builder
    Update tests to include widget layout
    KaWaite committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    cc2d176 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. Fix mongodoc plugin indentation

    Rename toStruct to stringsToWidgetIDs for clarity
    Remove error from ToModelAlignSystem since errors will never be created
    Remove comments in pkg/scene/builder.go
    KaWaite committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    eb93b50 View commit details
    Browse the repository at this point in the history
  2. Remove location from RemoveWidgetInput and related

    Add find function to find location of a widget
    KaWaite committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    83acb2a View commit details
    Browse the repository at this point in the history
  3. Simplify WidgetLayoutInput only has location and index

    Make mandatory id params not pointers
    Fix bug with converting to mongo document where all sections were saving as the same
    Simplify method names in widget align system
    Update methods to work without needing a location
    KaWaite committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    e33b20e View commit details
    Browse the repository at this point in the history
  4. Update naming for clarity

    Cleanup code style for clarity
    Add WidgetLayout values to better test code
    KaWaite committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    b3a407b View commit details
    Browse the repository at this point in the history
  5. Replace plugId and extensionId with widgetId

    WidgetIds -> WidgetIDs
    KaWaite committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    9b2893f View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Add consts for align values

    Include switch case for assign align value
    KaWaite committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    5097a12 View commit details
    Browse the repository at this point in the history
  2. Update WZone, etc to WidgetZoneType style

    Regenerate graphql
    KaWaite committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    0317576 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8a9e9e View commit details
    Browse the repository at this point in the history
  4. Cleanup UpdateWidget controller

    Fix code readability
    Rename to WidgetLocationDocument
    Add new methods to WidgetArea
    Reorganize align sys domain code
    KaWaite committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    0545002 View commit details
    Browse the repository at this point in the history
  5. Cleanup schema.graphql

    Make widgetIDs not pointers
    KaWaite committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    307dccf View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2021

  1. Update align sys consts to WidgetXX

    Rename types in mongodc to XXDocument
    Remove old comments
    Cleanup code
    Use consts instead of strings
    KaWaite committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    0189f63 View commit details
    Browse the repository at this point in the history
  2. widgetlayouts floating field is necessary

    widgetLayouts extended extendable are not
    use consts instead of hardcoded values
    Location is necessary for adding widgets
    KaWaite committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    6a4c63e View commit details
    Browse the repository at this point in the history
  3. test for manifest pkgs layout method

    KaWaite committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    24bc6f1 View commit details
    Browse the repository at this point in the history
  4. add tests in plugin/manifest and scene

    KaWaite committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    c3fcb07 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2021

  1. refactor

    rot1024 committed Aug 6, 2021
    Configuration menu
    Copy the full SHA
    b67657c View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2021

  1. Separate Widget zone, section and area logic.

    Fix Find method to be up to standards.
    Add Id and floating to widgetJSON.
    Fix issue with conversion funcs where they were converting to all the same Section.
    KaWaite committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    5970b2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57cf068 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. Fix migrations for pointer values

    KaWaite committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    2b2d6b3 View commit details
    Browse the repository at this point in the history
  2. Fix widget align sys remove test

    Add tests for WidgetArea, Section and Zone
    KaWaite committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    fe5ff10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e0d538 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2021

  1. Configuration menu
    Copy the full SHA
    15899d3 View commit details
    Browse the repository at this point in the history
  2. Remove unwanted assignment to align on update

    KaWaite committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    a0d2e13 View commit details
    Browse the repository at this point in the history
  3. Add return if findwidgetlocation is returns nil.

    Fix test with race condition error.
    KaWaite committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    ba8d4d4 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2021

  1. Configuration menu
    Copy the full SHA
    5257e74 View commit details
    Browse the repository at this point in the history
  2. Fix extending conditional

    KaWaite committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    22d4c39 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. Configuration menu
    Copy the full SHA
    6a5c321 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Configuration menu
    Copy the full SHA
    b9826df View commit details
    Browse the repository at this point in the history
  2. Fixes from PR review

    KaWaite committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    0a38dd4 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. FindWidgetLocation method now returns int, -1 instead of nil.

    Add New___ methods for Zone, Section and Area.
    Update tests.
    KaWaite committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    54285ea View commit details
    Browse the repository at this point in the history
  2. Fix SetExtended method

    KaWaite committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    a4a1fe3 View commit details
    Browse the repository at this point in the history
  3. Add tests for align system and widget area.

    KaWaite committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    8236911 View commit details
    Browse the repository at this point in the history
  4. Avoid race condition in test

    KaWaite committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    cbe045c View commit details
    Browse the repository at this point in the history
  5. Add tests to widget section

    KaWaite committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    640c086 View commit details
    Browse the repository at this point in the history
  6. Add test to widget section

    KaWaite committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    908475a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dbbb4fe View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. Add Extendable to published scene

    KaWaite committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    05e2b34 View commit details
    Browse the repository at this point in the history
  2. Update schema.graphql

    Co-authored-by: rot1024 <aayhrot@gmail.com>
    KaWaite and rot1024 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    772adac View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Clean up tests.

    Fix Add and AddAll methods so they don't directly manipulate from WidgetAlignSystem.
    KaWaite committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    1cb4155 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. Configuration menu
    Copy the full SHA
    c02eddc View commit details
    Browse the repository at this point in the history
  2. Make convert functions public

    KaWaite committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    efe07af View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. Merge with main

    KaWaite committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    4ef0b30 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    421574d View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. Type widget area vars with named types

    KaWaite committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    80bdc27 View commit details
    Browse the repository at this point in the history
  2. Type widget section vars

    KaWaite committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    740c0eb View commit details
    Browse the repository at this point in the history
  3. Type widget zone constants

    KaWaite committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    36326ce View commit details
    Browse the repository at this point in the history
  4. type WidgetLocation with WidgetZoneType

    KaWaite committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    a58fd43 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    92485a3 View commit details
    Browse the repository at this point in the history
  6. Type WidgetLocations section and area,

    Fix nil pointer errors.
    KaWaite committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    37cdf0f View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. type alignments with WidgetAlignType

    KaWaite committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    55b6129 View commit details
    Browse the repository at this point in the history
  2. Clean up widget area and zone tests

    KaWaite committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    b05c814 View commit details
    Browse the repository at this point in the history
  3. refactor

    rot1024 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    ba0d830 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. pair programming

    rot1024 committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    14e96d4 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. pair pro

    rot1024 committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    b20230b View commit details
    Browse the repository at this point in the history
  2. pair pro

    rot1024 committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    0c4b0b6 View commit details
    Browse the repository at this point in the history
  3. pair pro

    rot1024 committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    c458ee3 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. pair pro

    Co-authored-by: KaWaite <KaWaite@users.noreply.github.com>
    rot1024 and KaWaite committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    6a1238c View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. pair pro

    Co-authored-by: KaWaite <KaWaite@users.noreply.github.com>
    Co-authored-by: HideBa <HideBa@users.noreply.github.com>
    3 people committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    7ae1163 View commit details
    Browse the repository at this point in the history
  2. pair pro (usecase)

    rot1024 committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    1f10f81 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. add setters

    Co-authored-by: KaWaite <KaWaite@users.noreply.github.com>
    Co-authored-by: HideBa <HideBa@users.noreply.github.com>
    3 people committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    8b329af View commit details
    Browse the repository at this point in the history
  2. typo

    rot1024 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    a57c336 View commit details
    Browse the repository at this point in the history
  3. rename and add nil check

    rot1024 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    c68831c View commit details
    Browse the repository at this point in the history
  4. reimpl mongo

    rot1024 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    c2b8802 View commit details
    Browse the repository at this point in the history
  5. rename file

    rot1024 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    1658c5d View commit details
    Browse the repository at this point in the history
  6. update gql

    rot1024 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    d7aae2e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cf598ee View commit details
    Browse the repository at this point in the history
  8. fix

    rot1024 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    a740ed1 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2021

  1. align CENTER -> CENTERED

    KaWaite committed Sep 23, 2021
    Configuration menu
    Copy the full SHA
    b0d3db1 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Configuration menu
    Copy the full SHA
    e6f6ce9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4634b28 View commit details
    Browse the repository at this point in the history
  3. Update manifest.yml

    KaWaite committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    f63fb9b View commit details
    Browse the repository at this point in the history