-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added option for horizontal table of contents #265
Conversation
Your demo site is ready! 🚀 Visit it here: https://ramp4-pcar4.github.io/storylines-editor/horizontal_tabs/#/en/editor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @KashishMistry)
src/components/editor/helpers/metadata-content.vue
line 75 at r1 (raw file):
<br /> <label class="mr-15">{{ $t('editor.tocOrientation') }}:</label> <select class="border-solid border border-black p-1" name="toc" id="toc" @change="metadataChanged">
Tested this by running the server locally and checking the config manually after saving. Found a couple of things:
-
It doesn't seem like the orientation is being saved to the file. Changing the
name
attribute totocOrientation
should fix this. -
The dropdown also doesn't default to the correct value. Try adding
v-model="metadata.tocOrientation"
here and addtocOrientation
to the metadata prop (see other comment) and see if this works!
src/components/editor/helpers/metadata-content.vue
line 95 at r1 (raw file):
export default class MetadataEditorV extends Vue { @Prop() metadata!: {
Add tocOrientation
here
f36c2cc
to
c97a28a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @RyanCoulsonCA)
src/components/editor/helpers/metadata-content.vue
line 75 at r1 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
Tested this by running the server locally and checking the config manually after saving. Found a couple of things:
It doesn't seem like the orientation is being saved to the file. Changing the
name
attribute totocOrientation
should fix this.The dropdown also doesn't default to the correct value. Try adding
v-model="metadata.tocOrientation"
here and addtocOrientation
to the metadata prop (see other comment) and see if this works!
Donethanks.
src/components/editor/helpers/metadata-content.vue
line 95 at r1 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
Add
tocOrientation
here
Donethanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @KashishMistry)
src/components/editor/helpers/metadata-content.vue
line 75 at r1 (raw file):
Previously, KashishMistry (Kashish Mistry) wrote…
Donethanks.
Looks good! If you load an existing product that doesn't have tocOrientation
in the config the dropdown is blank, but I'm not sure that this is a huge deal as long as we display the vertical table of contents by default.
c97a28a
to
1151eb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @KashishMistry)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @RyanCoulsonCA)
src/components/editor/helpers/metadata-content.vue
line 75 at r1 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
Looks good! If you load an existing product that doesn't have
tocOrientation
in the config the dropdown is blank, but I'm not sure that this is a huge deal as long as we display the vertical table of contents by default.
Yes, it should default to vertical if there is no tocOrientation
specified
1151eb7
to
b563560
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @RyanCoulsonCA)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, 5 of 5 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @RyanCoulsonCA)
b563560
to
0b8500d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, 3 of 5 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @KashishMistry)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @KashishMistry)
Related Item(s)
ramp4-pcar4/story-ramp#402 (not in this repo)
Changes
Notes
Option in the metadata panel:
Tested in editor preview by creating a local
story-ramp
package:Testing
Steps:
This has been tested in the editor preview using by creating a local
story-ramp
package based on the adjacent PR.There isn't a way to test whether the functionality works because there is another PR open in the story-ramp repo that is meant to implement the functionality. If there are any other methods to test, that would be appreciated, thanks!This change is