Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev sequencing #1275

Merged
merged 67 commits into from
May 17, 2024
Merged

Dev sequencing #1275

merged 67 commits into from
May 17, 2024

Conversation

cohansen
Copy link
Contributor

@cohansen cohansen commented May 9, 2024

Depends on: NASA-AMMOS/aerie#1444

Easiest rebase of my life? I was expecting this to be a lot worse. Needs thorough testing and review.

Adds the new sequence editor and a major refactor of how we are using dictionaries. All dictionaries are now part of a parcel that needs to be assigned to items that previously pointed directly to a command dictionary.

To Test:

  • Create a new parcel that contains some different dictionaries.
  • Navigate to the sequence editor page
  • Create a new sequence using the new grammar

Everything else should be working nominally.

@cohansen cohansen requested review from joswig and goetzrrGit May 9, 2024 23:49
@cohansen cohansen self-assigned this May 9, 2024
@cohansen cohansen requested a review from a team as a code owner May 9, 2024 23:49
@cohansen cohansen requested review from AaronPlave and duranb May 9, 2024 23:49
Copy link
Collaborator

@duranb duranb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few superficial things:

  1. I'd really like to see this as not a submodule of the project. It looks like moving it under /src shouldn't affect anything from a cursory look.
  2. Can we change all the kebab cased svelte files to match the current convention of CamelCased?
  3. Can we explicitly declare every variable and its type in the svelte files? I know svelte lets us just implicitly define variables in the reactive statements, but I feel that explicitly defining the type on declaration helps not make mistakes later on if we have to refactor.

Copy link
Collaborator

@duranb duranb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding a way to merge the sub module @cohansen! I'm still working through this, but I've posted my initial thoughts so far.

Just a heads up so you can start thinking about it, one thing that I would like is to have unit tests for all the new utility TS files. It doesn't have to be for this PR if you don't think you have time, but I will be asking for it in the next sprint.

Also, do you mind fleshing out the PR description a little more? Ideally, it would be nice to have a testing procedure of sorts.

src/utilities/new-sequence-editor/command_banananation.xml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
vite.config.js Outdated Show resolved Hide resolved
src/types/global-type.ts Outdated Show resolved Hide resolved
src/types/sequencing.ts Outdated Show resolved Hide resolved
src/utilities/gql.ts Outdated Show resolved Hide resolved
src/components/sequencing/form/utils.ts Show resolved Hide resolved
cohansen and others added 23 commits May 16, 2024 19:21
…enamed new svelte files to match our standard
* Sequence Editor changes:

* Modify button placement ( they are pretty ugly)
* SeqJSON editor is collapsable now
* Prevent the user from shrinking the panel too small

* vertically align icons in button

* remove store for sequence editor rows

* change mime type of text file

* style css gutter to allow for non-interactive display

* cleanup comments

* remove typo

* remove typo

---------

Co-authored-by: bduran <bryan.duran@jpl.nasa.gov>
@joswig joswig merged commit d0150f9 into develop May 17, 2024
5 checks passed
@joswig joswig deleted the dev-sequencing branch May 17, 2024 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants