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

Mechanism to take Leaf off-line temporarily for maintenance #453

Closed
artgoldberg opened this issue Sep 23, 2021 · 5 comments
Closed

Mechanism to take Leaf off-line temporarily for maintenance #453

artgoldberg opened this issue Sep 23, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@artgoldberg
Copy link

artgoldberg commented Sep 23, 2021

It would be handy to automatically take Leaf off-line temporarily for maintenance.

Please see discussion #446 .

Thanks
Arthur

@artgoldberg
Copy link
Author

artgoldberg commented Oct 11, 2021

A related question is "What queries should be executed against the LeafDB to determine whether it is being actively used?" While I know that we need to create a dev instance, we don't have one yet. I want to take Leaf off-line without disrupting current users.

@artgoldberg
Copy link
Author

Top priority
Upon further reflection, the most useful advice for me currently would be instructions on how to add a text banner to Leaf in the blank space on the top left. (See image.)
image
I know it will require changing code in leaf/src/ui-client/src/components but I'm not enough of a UI hacker to figure out how to make the change. With the ability to create a banner, I can announce regular times when Leaf is unavailable (such as every evening from 8 to 11 pm), and all Leaf users will see the announcements. And if I want to change the times, I can wait until the next time period and change the announcement.

Thanks
Arthur

@mh2727
Copy link
Contributor

mh2727 commented Oct 13, 2021

Hi @artgoldberg

To help you get started to implement this change in Leaf, you can edit this file: https://github.com/uwrit/leaf/blob/master/src/ui-client/src/containers/Header/Header.tsx.

Notice the Header.tsx file has a Navbar tag starting at line 56. You should be able to add your HTML in that section there to display the information.

There may or may not be CSS changes that need to be made to ensure the UI behaves as expected. The CSS file can be located here: https://github.com/uwrit/leaf/blob/master/src/ui-client/src/containers/Header/Header.css.

Hopefully this helps with your request.

--
Mehadi Hassan

@artgoldberg
Copy link
Author

artgoldberg commented Oct 14, 2021 via email

@ndobb
Copy link
Member

ndobb commented Oct 20, 2021

@artgoldberg, I think there may be a few interrelated features to be added here that could help most Leaf sites. Let's discuss at our next chat. I don't think adding them would be too heavy a lift.

@ndobb ndobb added the enhancement New feature or request label Oct 20, 2021
@ndobb ndobb self-assigned this Oct 20, 2021
@ndobb ndobb closed this as completed Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants