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

Town Square MVP #5744

Merged
merged 44 commits into from
Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
05196a6
town square initial commit
owocki Dec 31, 2019
17131eb
feed is working
owocki Jan 2, 2020
e6d96b1
adds commenting/liking functionality
owocki Jan 2, 2020
8100c41
make fix
owocki Jan 2, 2020
0763287
resets migrations + also starts to lay the groundwork for offers
owocki Jan 2, 2020
a4141f8
show offers on townsquare
owocki Jan 4, 2020
89a6f95
fix for activity stream
owocki Jan 6, 2020
334033f
offers
owocki Jan 6, 2020
37ab937
timers
owocki Jan 7, 2020
957aa1a
UI for town square/ actions
owocki Jan 7, 2020
5883c12
adds flag feature + also limits text box input
owocki Jan 7, 2020
f3f721b
a few small fixes
owocki Jan 7, 2020
1272622
make fix
owocki Jan 7, 2020
69d9f7f
responsiveness
owocki Jan 7, 2020
8535a5c
town square emails now hooked up"
owocki Jan 8, 2020
bb702cc
action views
owocki Jan 8, 2020
c684e3f
preview offer button
owocki Jan 8, 2020
d015367
activity feed links
owocki Jan 8, 2020
81c6891
comment emails
owocki Jan 8, 2020
969e374
make fix
owocki Jan 8, 2020
8f4aadf
merge conflicts
owocki Jan 8, 2020
e13b4e1
live updates on town square
owocki Jan 9, 2020
247e83f
make fix
owocki Jan 9, 2020
f8fa9b2
special announcements
owocki Jan 9, 2020
437e19b
support for activity feed view counts
owocki Jan 9, 2020
a2f4aef
cleanup
owocki Jan 9, 2020
d054a6a
random QA fixes
owocki Jan 9, 2020
545419a
javascript updates on activity
owocki Jan 9, 2020
a924c99
unfurl links for town square
owocki Jan 9, 2020
12764a4
make fix
owocki Jan 9, 2020
cb44ead
Merge branch 'stable' into kevin/townsquare
owocki Jan 9, 2020
5fb1259
make fix
owocki Jan 9, 2020
e1e3490
html cleanup
owocki Jan 9, 2020
dfe444d
submit actions via the web
owocki Jan 9, 2020
3288bbb
code
owocki Jan 13, 2020
748d396
Merge branch 'master' into kevin/townsquare
owocki Jan 13, 2020
52b6426
Merge branch 'master' into kevin/townsquare
owocki Jan 13, 2020
a54f11e
activity feed on grants profile
owocki Jan 13, 2020
8a5f911
ability to write on each others walls, flag profiles
owocki Jan 13, 2020
25141ea
activity tabs on kudos
owocki Jan 13, 2020
ded9e88
staff can INSTANTly remove an item by flagging it
owocki Jan 13, 2020
abd3563
DL code review
owocki Jan 14, 2020
39564e0
wall posts
owocki Jan 15, 2020
eec30f9
typo
owocki Jan 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
'inbox',
'feeswapper',
'oauth2_provider',
'compliance'
'townsquare',
'compliance',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -155,7 +156,7 @@

TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['chat/templates/', 'retail/templates/', 'dataviz/templates', 'kudos/templates', 'inbox/templates', 'quests/templates'],
'DIRS': ['chat/templates/', 'retail/templates/', 'dataviz/templates', 'kudos/templates', 'inbox/templates', 'quests/templates', 'townsquare/templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down
16 changes: 15 additions & 1 deletion app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import retail.views
import revenue.views
import tdi.views
import townsquare.views
from avatar.router import router as avatar_router
from dashboard.router import router as dbrouter
from grants.router import router as grant_router
Expand Down Expand Up @@ -113,6 +114,8 @@
url(r'^api/v0.1/profile/(.*)?/viewers.csv', dashboard.views.profile_viewers, name='profile_viewers'),
url(r'^api/v0.1/profile/(.*)?/spent.csv', dashboard.views.profile_spent, name='profile_spent'),
url(r'^api/v0.1/profile/banner', dashboard.views.change_user_profile_banner, name='change_user_profile_banner'),
path('api/v0.1/activity/<int:activity_id>', townsquare.views.api, name='townsquare_api'),
path('api/v0.1/emailsettings/', townsquare.views.emailsettings, name='townsquare_emailsettings'),
url(r'^api/v0.1/activity', retail.views.create_status_update, name='create_status_update'),
url(
r'^api/v0.1/profile/(.*)?/jobopportunity',
Expand Down Expand Up @@ -349,7 +352,7 @@
re_path(r'^modal/extend_issue_deadline/?', dashboard.views.extend_issue_deadline, name='extend_issue_deadline'),

# brochureware views
re_path(r'^$', retail.views.index, name='index'),
re_path(r'^home/?$', retail.views.index, name='home'),
re_path(r'^pricing/$', retail.views.pricing, name='pricing'),
re_path(r'^subscribe/$', retail.views.subscribe, name='subscribe'),
re_path(r'^about/?', retail.views.about, name='about'),
Expand All @@ -361,6 +364,16 @@
re_path(r'^results/?(?P<keyword>.*)/?', retail.views.results, name='results_by_keyword'),
re_path(r'^results/?', retail.views.results, name='results'),
re_path(r'^activity/?', retail.views.activity, name='activity'),
re_path(r'^townsquare/?', townsquare.views.index, name='townsquare'),
re_path(r'^$', townsquare.views.index, name='inex'),
Copy link
Contributor

Choose a reason for hiding this comment

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

typo? "inex"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

path('action/<int:offer_id>/<slug:offer_slug>/go', townsquare.views.offer_go, name='townsquare_offer_go'),
path('action/new', townsquare.views.offer_new, name='townsquare_offer_new'),
path(
'action/<int:offer_id>/<slug:offer_slug>/decline',
townsquare.views.offer_decline,
name='townsquare_offer_decline'
),
path('action/<int:offer_id>/<slug:offer_slug>', townsquare.views.offer_view, name='townsquare_offer_view'),
url(r'^help/dev/?', retail.views.help_dev, name='help_dev'),
url(r'^help/repo/?', retail.views.help_repo, name='help_repo'),
url(r'^help/faq/?', retail.views.help_faq, name='help_faq'),
Expand Down Expand Up @@ -468,6 +481,7 @@
name='unread_notifications_email_weekly_roundup'
),
path('_administration/email/new_bounty_rejection', retail.emails.new_bounty_rejection, name='new_bounty_rejection'),
path('_administration/email/comment', retail.emails.comment, name='comment_email'),
path(
'_administration/email/new_bounty_acceptance',
retail.emails.new_bounty_acceptance,
Expand Down
171 changes: 171 additions & 0 deletions app/assets/v2/css/actions.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@

.announce-bot {
margin-top: 10px;
text-align: center;
}

.announce-bot img {
width: 200px;
max-width: 200px;
}

.announce-bot2 img {
width: 250px;
max-width: 250px;
}

.announce-bot3 img {
width: 250px;
max-width: 250px;
}

.announce-bot4 img {
width: 250px;
max-width: 250px;
}

.announce {
text-align: center;
border-radius: 5px;
background-color: #fdedee;
padding: 3px;
position: relative;
margin-top: 25px;
margin-bottom: 25px;
margin-left: auto;
margin-right: auto;
width: 90%;
}

.announce:after {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 0;
height: 0;
border: 20px solid transparent;
border-bottom-color: #fdedee;
border-top: 0;
border-left: 0;
margin-left: -10px;
margin-top: -20px;
}

.announce a {
color: black;
}
.announce a.btn {
background-color: #f2c3c4;
}
.announce a.decline {
font-style: italic;
}

.announce h4 {
border-bottom: 3px solid #fdedee;
}

.announce5 h4 {
border-bottom: 3px solid #def390 !important;
}

.announce5:after {
border-bottom-color: #def390 !important;
}

.announce5 {
background-color: #def390 !important;
}

.announce5 a.btn {
background-color: #cee370 !important;
}

.announce4 h4 {
border-bottom: 3px solid #fce5ac !important;
}

.announce4:after {
border-bottom-color: #fce5ac !important;
}

.announce4 {
background-color: #fce5ac !important;
}

.announce4 a.btn {
background-color: #dcc58c !important;
}

.announce3 h4 {
border-bottom: 3px solid #d0f9f4 !important;
}

.announce3:after {
border-bottom-color: #d0f9f4 !important;
}

.announce3 {
background-color: #d0f9f4 !important;
}

.announce3 a.btn {
background-color: #b0d9d4 !important;
}

.announce2 h4 {
border-bottom: 3px solid #a4affc !important;
}

.announce2:after {
border-bottom-color: #a4affc !important;
}

.announce2 {
background-color: #a4affc !important;
}

.announce2 a.btn {
background-color: #849ffc !important;
}

.announce6 h4 {
border-bottom: 3px solid #fde9ed !important;
}

.announce6:after {
border-bottom-color: #fde9ed !important;
}

.announce6 {
background-color: #fde9ed !important;
}

.announce6 a.btn {
background-color: #ddb9bd !important;
}

#announce {
width: 9%;
display: block;
background-color: #d9d8e7;
border-radius: 5px;
text-align: center;
margin-top: 5px;
padding-top: 0px;
}

#announce img {
margin: 0px auto;
margin-top: -150px;
margin-bottom: -50px;
width: 200px;
height: 200px;
}

.announce a.btn:hover {
color: black;
font-weight: bold;
background-color: #f5d3d4;
}
74 changes: 72 additions & 2 deletions app/assets/v2/css/activity_stream.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,71 @@

#new_activity_notifier{
text-align: center;
background-color: #f0f0f0;
border: 1px solid #eee;
cursor: pointer;
padding: 5px 10px;
border-radius: 3px;
color: black;
}
#activities{
text-align: left;
}
.action{
padding: 3px;
border-radius: 5px;
}
.sup{
vertical-align: super;
font-size: smaller;
}
.action i,
a .sup{
color: black;
}
.action:hover{
background-color: #fafafa;
}
.action.open{
background-color: #eeeeee;
}
.comment_container.filled{
text-align: left;
width: 300px;
background-color: #f2f2f2;
padding: 5px;
border-radius: 5px;
}
.comment_container img{
border-radius: 20px;
max-width: 20px;
}
.comment_container li{
list-style: none;
}
.comment_container a{
color: black;
font-weight: bold;
}
.comment_container .post_comment{
float: right;
background-color: #eeeeee;
padding: 5px 10px;
border-radius: 5px;
color: black;
font-weight: bold;
}
.comment_container .post_comment:hover{
float: right;
background-color: #e9e9e9;
padding: 5px 10px;
border-radius: 5px;
color: black;
font-weight: bold;
}
.like_activity:hover, .flag_activity:hover, .comment_activity:hover, .copy_activity:hover{
text-decoration: none;
font-weight: bolder;
}
.activity_stream .avatar {
width: 2.5rem;
height: 2.5rem;
Expand Down Expand Up @@ -54,7 +121,10 @@
}

@media (max-width: 767.98px) {

.comment_container.filled{
text-align: center;
margin: 0px auto;
}
.activity-info {
text-align: center;
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/v2/css/grants/detail.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.grant_details .box {
.grant_details span.box {
width: 20px;
height: 20px;
margin-right: 10px;
Expand Down
Loading