-
Notifications
You must be signed in to change notification settings - Fork 0
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
scheme editor side panel #124
Conversation
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.
looks good! just a few nits
arches_lingo/src/arches_lingo/components/scheme/editor/SchemeEditor.vue
Outdated
Show resolved
Hide resolved
2a278d9
to
874b141
Compare
7ea336a
to
b141d12
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.
looks good overall, just a few minor things
<script lang="ts"> | ||
const MAXIMIZE = "maximize"; | ||
const SIDE = "side"; | ||
const CLOSE = "close"; | ||
</script> | ||
|
||
<script setup lang="ts"> |
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.
these two script tags should be combined
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.
I can't; because these are used in defineEmits, I get an eslint check hook error when trying to commit that. There's a good explanation for that behavior here. Alternatively, I can do an eslint ignore as is mentioned in that post.
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.
oh fair. In that case I'd say either export them to constants.ts
or don't use the variables in defineEmits
. IMO we should avoid double <script>
tags when possible
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.
reverted to strings, these feel more natural locally defined than in constants.
@@ -0,0 +1,64 @@ | |||
<script lang="ts"> | |||
const MAXIMIZE = "maximize"; |
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.
these could arguably be moved to constants.ts
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.
This seems odd, since the constant is only really used locally. If we were reusing it across multiple components, that would make more sense.
<div> | ||
<h2>{{ $gettext("Scheme Editor Tools") }}</h2> | ||
<div> | ||
<Button @click="toggleSize" |
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.
nit: probably the formatter's fault, but IMO this should be either
<Button @click="toggleSize">
or
<Button
@click="toggleSize"
>
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.
Not sure why the formatter originally allowed this to happen - but it did! Maybe there were more attributes on this button originally.
arches_lingo/src/arches_lingo/components/scheme/report/SchemeSection.vue
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/scheme/editor/SchemeEditor.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/scheme/editor/SchemeEditor.vue
Outdated
Show resolved
Hide resolved
9605a1a
to
f9695ac
Compare
b138af1
to
2b96c94
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.
looks good! just one comment and should be g2g 👍
</template> | ||
<style scoped> | ||
.header { | ||
background-color: #ddd; |
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.
background color should be some primevue variable so it can respond to theme changes
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.
lgtm! 🚀
d5280ed
to
dc9c36f
Compare
00ddb33
to
d077e81
Compare
No description provided.