bethlakshmi / gbe-divio-djangocms-python2.7

3rd try is the charm - Divio Cloud, Django CMS, Python 3.x, Django 3.x
Apache License 2.0
6 stars 1 forks source link

How to use "NEWS"? #418

Closed burlexpo closed 1 year ago

burlexpo commented 1 year ago

The first column on the dashboard reads "News". I said there was no way for me to put anything there and you said you were pretty sure there was. I've poked around but I can't find anything. Can you either

bethlakshmi commented 1 year ago

https://www.burlesque-expo.com/admin/gbe/usermessage/162/change/?_changelist_filters=view%3DLandingPageView

Is the location.

I can write docs for how to use these... but I'm not sure my docs will actually help. Should I put something in the wiki?

The docs are faster, but making a text editor for this is doable - it's medium-size.

Let me know if doing that ranks over the occupancy report in #416

burlexpo commented 1 year ago

Having that message be HTML would be amazing - this is more important than the Occupancy Report

Having that message be editable by a non-admin would be great.

Currently, if you put any message in that colum, the header "NEWS" disappears.

bethlakshmi commented 1 year ago

What users do you want to be allowed to do this? Any of our privileged users?

Currently, if you put any message in that colum, the header "NEWS" disappears.

Not sure what you mean - this is what I see:

Screen Shot 2023-03-29 at 10 02 22 AM

bethlakshmi commented 1 year ago

You may be a victim of caching? I cache the user's dashboard on a per-user basis, and I do so pretty aggressively.

There's a LOT of data that gets pulled to build this page, which means for a busy person, the response time can be among our slowest times. And it's the return page for a bunch of normal user flows (bidding, act tech, etc), which means users have a bad experience if I don't.

burlexpo commented 1 year ago

1) If you can send out emails, you can put a message in the News column

2) There used to be a column-header in Vast Shadow (the same style as "Betty Blazie's Stuff") which read "News". Now there's not. There's just this line item hanging out by itself.

burlexpo commented 1 year ago

You may be a victim of caching? I cache the user's dashboard on a per-user basis, and I do so pretty aggressively.

There's a LOT of data that gets pulled to build this page, which means for a busy person, the response time can be among our slowest times. And it's the return page for a bunch of normal user flows (bidding, act tech, etc), which means users have a bad experience if I don't.

No, I see the same thing you do. I just mean the header "News" has disappeared from the top of the column

bethlakshmi commented 1 year ago

That's been gone for 2 years or more? The last time this part of the code changed was Jun 2021.

It does say "News" if you are in a mobile sized view... that's part the tabs that don't look like tabs.

If it ever said "News" in a desktop view, I can't see it in the code... glad to put that in there? I could do a thing that is "if there is content -- put a header that says "News" " - otherwise leave blank.

Long, long ago - this area used to be HTML editable, because I had the ability to have a Django CMS plugin that would let me use it for partial page content - so you could HTML edit text or any other CMS-y thing there, and Django CMS would render it for me. That feature was removed from Django CMS a while back. I think I pulled it in either 2021 or before, because the documentation said the feature was no longer available.

-Betty

On Wed, Mar 29, 2023 at 10:08 AM Scratch @.***> wrote:

You may be a victim of caching? I cache the user's dashboard on a per-user basis, and I do so pretty aggressively.

There's a LOT of data that gets pulled to build this page, which means for a busy person, the response time can be among our slowest times. And it's the return page for a bunch of normal user flows (bidding, act tech, etc), which means users have a bad experience if I don't.

No, I see the same thing you do. I just mean the header "News" has disappeared from the top of the column

— Reply to this email directly, view it on GitHub https://github.com/bethlakshmi/gbe-divio-djangocms-python2.7/issues/418#issuecomment-1488692698, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCVB44WXRTIXFJQJDYINHTW6Q64JANCNFSM6AAAAAAWJLNJFA . You are receiving this because you were assigned.Message ID: @.*** com>

burlexpo commented 1 year ago

My memory isn't perfect, but I'm pretty sure it said "News" this morning when I looked at it.

Regardless. it would be nice if there was a header on that column that said "News" or "Announcements" and if I (and others) were able to add formatted text to that space.

bethlakshmi commented 1 year ago

Can do.

On Wed, Mar 29, 2023 at 10:42 AM Scratch @.***> wrote:

My memory isn't perfect, but I'm pretty sure it said "News" this morning when I looked at it.

Regardless. it would be nice if there was a header on that column that said "News" or "Announcements" and if I (and others) were able to add formatted text to that space.

— Reply to this email directly, view it on GitHub https://github.com/bethlakshmi/gbe-divio-djangocms-python2.7/issues/418#issuecomment-1488759818, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCVB4YW4FF3YFG3PN5FEW3W6RC5RANCNFSM6AAAAAAWJLNJFA . You are receiving this because you were assigned.Message ID: @.*** com>

bethlakshmi commented 1 year ago

OK, based on our talk last night, what you really want is #242 - which you are right, I never implemented because I ran into all sorts of walls on it.

I'm gonna make another look to see if anything has gotten better from last time.

If nothing works, I will write something very bare bones. Minimum features would be:

I'll end up doing what ever I think is fastest/easiest in terms of posting/hiding and the date controls.

Anything else?

burlexpo commented 1 year ago

Bare bones HTML functionality (at a minimum). I don't need to be able to insert images or tables, but things like bold, italic, and underline; a couple of layers of header; ordered and unordered lists; and links would all be really useful.

burlexpo commented 1 year ago

Some potentially useful links https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/django_assessment_blog https://blog.logrocket.com/use-django-rest-framework-to-build-a-blog/ (do we use REST?) https://djangopackages.org/packages/p/wagtail/ - Wagtail. Maybe more powerful than we want, but updated frequently https://djangopackages.org/packages/p/django-bona-blog/ -- looks like a basic Blog with the feature set we want

bethlakshmi commented 1 year ago

Yeah I just looked through a bunch of the stuff listed here:

And no - we don't use REST - it's a common tool for having a thick front end -- and that's something I've been dancing around doing, but that moves this project from "medium" to "huge"

I think I'm going to do:

https://github.com/dmptrluke/django-published

and just write the rest of it. This module gives me clean functionality for the publication date controls, and the rest isn't too hard. By only including a low level tool, I will then be able to write the display stuff, which is where we need something pretty custom.

burlexpo commented 1 year ago

Django-published looks good

bethlakshmi commented 1 year ago

How do we want navigation to work? Easiest is special menu - I can let privileged users use that to manage the list of news articles and edit/create/delete.

Looking at it - we could put the item in either "Manage" or "Contact" -- any preference?

bethlakshmi commented 1 year ago

@burlexpo - Great news - I've got the first draft of the complete feature done.

I just put it on the test site: https://burlesque-expo-stage.us.aldryn.io/main/

Features:

To Do:

Questions:

bethlakshmi commented 1 year ago

Just changed Special --> Contact menu item to Special --> Manage

For the record - I have no copy of an email or ticket saying you wanted to do the Special --> Manage menu. The last info from you on this is that django published looked good.

burlexpo commented 1 year ago

_anything I should change in terms of the public list or the public article _details?__

Can we increase the font size of the headline/article name just a smidge, and put a line break between the title and the date? Also, de-bold the date but maybe italicize it

should I limit the # of articles shown? Right now it's infinite, capping them to a number would be easy Are we showing summaries on the front page or the entire article? Ideally, we just show the first few lines in the NEWS column and the click for the full article

The answer to this decides how many articles I want to show

is it worth it to have a separate page listing the news articles? If not, easy to delete Yes, very worth it

anything else you think we need in terms of the privileged user management side?

I just want to make sure that I can write a bunch of articles when I have time and schedule them to go up (or come down) in the future.

bethlakshmi commented 1 year ago
bethlakshmi commented 1 year ago

Got in the striped rows. And it sorts by published date or most recent update date Testing is done.

This is big, so the pr will probably take me 3-5 days.

burlexpo commented 1 year ago

@bethlakshmi - The articles are displayed with the oldest article on the top. Can we reverse the order (so the newest is closest to the top)?

burlexpo commented 1 year ago

And it sorts by published date or most recent update date

Which means there's no way to backdate an article, right?

bethlakshmi commented 1 year ago

Publishing right now!!!! 🥳 🎉

Also wrote docs for it: https://github.com/bethlakshmi/gbe-divio-djangocms-python2.7/wiki/News-Articles