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

Fix/data centric monitoring #57

Merged
merged 19 commits into from
Aug 22, 2024
Merged

Fix/data centric monitoring #57

merged 19 commits into from
Aug 22, 2024

Conversation

maaikelimper
Copy link
Collaborator

No description provided.

Copy link
Member

@david-i-berry david-i-berry left a comment

Choose a reason for hiding this comment

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

Some minor comments.

Noting the release schedule they can probably be ignored / converted to issues for addressing in the future,

@@ -30,7 +30,7 @@
"vue-router": "^4.0.0",
"vue-tel-input": "^8.3.1",
"vue3-apexcharts": "^1.4.4",
"vuetify": "^3.4.0",
"vuetify": "^3.7.0",
Copy link
Member

Choose a reason for hiding this comment

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

3.7.0 or >= 3.7.0?

<TopicHierarchySelector :value="topicSelected" @update:modelValue="newValue => topicSelected = newValue"/>
</v-card-item>
<v-card-title>Select dataset identifier</v-card-title>
<v-col cols="12">
Copy link
Member

Choose a reason for hiding this comment

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

should the selector be wrapped in a v-card-rext?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, re-using v-card-text for every component, instead of just plain text, is often bad practice because the component very easily overflows. We should be using the Vuetify grid system as much as possible to accurately position components. I'm not going to change every instance of this, only the situations where I found the aforementioned cutoffs.

return {
id: feature.properties.identifier,
topic: feature.properties['wmo:topicHierarchy'],
metadata: {
Copy link
Member

Choose a reason for hiding this comment

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

why is this duplicated?

Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental residual from a previous idea, which was to have this component re-usable as both a data ID selector and topic selector. This ended up unnecessarily complicated for the time constraints.


const fetchOptions = async () => {
// Get dataset IDs
if (testMode) {
Copy link
Member

Choose a reason for hiding this comment

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

I really dislike like, is there not a better way? At a minimum can we not have static json files rather than embedding the test data in the code?

Copy link
Contributor

Choose a reason for hiding this comment

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

This can be addressed in the future

@@ -82,7 +82,7 @@
</v-card-text>
<v-container>
<v-text-field label="wis2box auth token for 'processes/wis2box'" v-model="token" rows="1"
:append-icon="showToken ? 'mdi-eye' : 'mdi-eye-off'" :type="showToken ? 'text' : 'password'"
:append-icon="showToken ? 'mdi-eye' : 'mdi-eye-off'" :type="showToken ? 'text' : 'password'" autocomplete="one-time-code"
Copy link
Member

Choose a reason for hiding this comment

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

why one time code?

Copy link
Contributor

Choose a reason for hiding this comment

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

There is an issue with Chrome attempting to autofill components based on its type being password. @maaikelimper has experienced various glitches thanks to Chrome's insistence. There's no official way to disable autofill, the closest we have found is this HTML tag autocomplete, which when set to one-time-code should make Chrome see it as a fresh password (like the OTP used in 2FA) and thus no autofill.

@@ -390,7 +390,7 @@
</v-card-title>
<v-card-text>
<v-text-field label="wis2box auth token for 'processes/wis2box'" v-model="token" rows="1"
:append-icon="showToken ? 'mdi-eye' : 'mdi-eye-off'" :type="showToken ? 'text' : 'password'"
:append-icon="showToken ? 'mdi-eye' : 'mdi-eye-off'" :type="showToken ? 'text' : 'password'" autocomplete="one-time-code"
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@maaikelimper maaikelimper merged commit 7fe07c2 into main Aug 22, 2024
2 checks passed
@maaikelimper maaikelimper deleted the fix/data-centric-monitoring branch August 22, 2024 15:01
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.

3 participants