Skip to content

Status page certificate expiry - #3357

Merged
louislam merged 8 commits into
louislam:masterfrom
tarun7singh:status-page-expiry
Jul 31, 2023
Merged

Status page certificate expiry#3357
louislam merged 8 commits into
louislam:masterfrom
tarun7singh:status-page-expiry

Conversation

@tarun7singh

@tarun7singh tarun7singh commented Jul 4, 2023

Copy link
Copy Markdown
Contributor

⚠️⚠️⚠️ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma

Tick the checkbox if you understand [x]:

  • I have read and understand the pull request rules.

Description

Fixes #2451
Fixes #3456
Fixes #2522

Type of change

  • User interface (UI)
  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I ran ESLint and other linters for modified files
  • I have performed a self-review of my own code and tested it
  • I have commented my code, particularly in hard-to-understand areas
    (including JSDoc for methods)
  • My changes generate no new warnings

Screenshots (if any)

Screenshot 2023-07-04 at 7 17 16 PM

@tarun7singh

Copy link
Copy Markdown
Contributor Author

@louislam This pull request is ready fo review, let me know if we need any style changes on how expiry is shown on the status page

Comment thread server/model/status_page.js Outdated
Comment thread src/pages/StatusPage.vue Outdated
Comment thread src/components/PublicGroupList.vue Outdated
Comment thread src/components/PublicGroupList.vue Outdated
Comment thread src/components/PublicGroupList.vue Outdated
Comment thread src/components/PublicGroupList.vue Outdated
@click="$refs.monitorSettingDialog.show(group, monitor)"
/>
</span>
<p v-if="showCertificateExpiry" class="item-name"> Expiry: {{ formatExpiry(monitor) }} </p>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Disclaimer: I am not a designer => feel free to overrule
From a design perspective, I don't like how this looks like a regular title (a user would not be able to pick up, that this is an expiry notice).

What do you think: Could we move this to a subtle or tag and still keep the current design?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should i try showing it as pill like the uptime percetage, with colors for showing how soon it will be expiring?
My reason for avoiding that was to not clutter the ui.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, a pill is what I meant with tag. This would be one option.

@tarun7singh tarun7singh Jul 6, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Here's the pill/tags based design i came up with, which one do you prefer?

  1. Expiry inside the pill
    Screenshot 2023-07-06 at 1 36 50 PM

  2. Expiry outside the pill
    Screenshot 2023-07-06 at 1 35 46 PM

I think second option looks much better but name of the monitor is getting confusing.

Color is green for expiry of more than 7 days
Color is red for everything else

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@louislam Do you have any preference out of the above two designs?

Comment thread src/components/PublicGroupList.vue Outdated
@louislam louislam added this to the 1.23.0 milestone Jul 8, 2023

@CommanderStorm CommanderStorm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My concerns have been addressed. (if you mark them as resolved, they are not shown any more ^^)

I (not a desiger/bdfl => this requires Louis vote) am unsure if the Pills' design fits, but I think this has a solid chance and looks close enough.

Comment thread src/components/PublicGroupList.vue Outdated
Comment thread src/components/PublicGroupList.vue
@chakflying

Copy link
Copy Markdown
Collaborator

Expiry should not be shown if monitor type is not HTTPS.

@louislam

Copy link
Copy Markdown
Owner

image

I might prefer to put in front of the tag list. Like this.

@tarun7singh

Copy link
Copy Markdown
Contributor Author

I have incorporated tags design as suggested by @louislam and added check for monitor type (@chakflying ).
Screenshot 2023-07-17 at 1 53 47 AM

@tarun7singh

Copy link
Copy Markdown
Contributor Author

This is ready to be merged @CommanderStorm & @louislam

@CommanderStorm

Copy link
Copy Markdown
Collaborator

Could you add Resolves #3456 to the description?

@maurerle

maurerle commented Jul 20, 2023

Copy link
Copy Markdown

And also
resolves #2522 (well, it is not sortable, but sorting according to tags would be a quite different feature..?)

@tarun7singh

Copy link
Copy Markdown
Contributor Author

@maurerle
I can add #2522 to the description but should we create a new issue for the sortable part?

@CommanderStorm

Copy link
Copy Markdown
Collaborator

should we create a new issue for the sortable part?

I think this is included in #1610 => no need to create another issue

@louislam
louislam merged commit 27ce472 into louislam:master Jul 31, 2023
@tarun7singh
tarun7singh deleted the status-page-expiry branch July 31, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

5 participants