Skip to content

Commit

Permalink
Add tags and tribes feature. #208
Browse files Browse the repository at this point in the history
At database level everything is basically "tags", and "tribes" are essentially just tags on steroids.
They're promoted from tags by setting `tribe:true`. At initial phase, we will have fixed number of
tags which are all promoted to be Tribes right away. Eventually users will be able to create their own
tags and enough of members per tag will create a tribe out of it.
Also search functionaility around tribes is still missing.

Purpose of this initial feature set is to help promoting TR to new
audiences beyond our initial hitchhikers community.
  • Loading branch information
simison committed May 4, 2016
1 parent 629d601 commit 7b2502b
Show file tree
Hide file tree
Showing 78 changed files with 3,353 additions and 498 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ migrations/.migrate
# User uploads
uploads
modules/users/client/img/profile/uploads
modules/tags/client/img/tribe
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ Versions at `package.json` describe API version.

See [API docs](http://developers.trustroots.org/docs/api/)

#### 0.3.2
- Add endpoints for tags and tribes:
- GET `/api/tribes`
- GET `/api/tags`
- GET `/api/tags/:tagSlug`
- GET `/api/tribes/:tribeSlug`
- POST/PUT/DELETE `/api/users/tags`
- GET `/api/users/:username` now returns array tags and tribes by `member` object and array of id's by `memberIds` key.
- GET `/api/users/:username` doesn't return `public` key anymore for other than authenticated user's profile.

#### 0.3.1
- Add endpoints for message thread references:
- GET `/api/references/threads/:userToId`
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"angular-locker": "~2.0.4",
"medium-editor": "~5.15.0",
"angular-confirm-modal": "~1.2.3",
"angulartics-google-analytics": "^0.1.4"
"angulartics-google-analytics": "~0.1.4",
"angulargrid": "~0.5.4"
},
"resolutions": {
"angular": "1.5.3"
Expand Down
3 changes: 2 additions & 1 deletion config/assets/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ module.exports = {
'public/lib/mailcheck/src/mailcheck.js',
'public/lib/angular-mailcheck/angular-mailcheck.js',
'public/lib/angular-locker/dist/angular-locker.js',
'public/lib/angular-confirm-modal/angular-confirm.js'
'public/lib/angular-confirm-modal/angular-confirm.js',
'public/lib/angulargrid/angulargrid.js'
],
less: [
'public/lib/angular-trustpass/src/tr-trustpass.less',
Expand Down
6 changes: 6 additions & 0 deletions config/env/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ module.exports = {
domain: process.env.DOMAIN || 'localhost:3000',
supportEmail: '[email protected]', // TO-address for support requests
profileMinimumLength: 140, // Require User.profile.description to be >=140 chars to send messages
// Strings not allowed as usernames and tag/tribe labels
illegalStrings: ['trustroots', 'trust', 'roots', 're', 're:', 'fwd', 'fwd:', 'reply', 'admin', 'administrator', 'password',
'username', 'unknown', 'anonymous', 'null', 'undefined', 'home', 'signup', 'signin', 'login', 'user',
'edit', 'settings', 'username', 'user', ' demo', 'test', 'support', 'networks', 'profile', 'avatar', 'mini',
'photo', 'account', 'api', 'modify', 'feedback', 'security', 'accounts', 'tribe', 'tag', 'community'
],
mailer: {
from: process.env.MAILER_FROM || '[email protected]',
options: {
Expand Down
3 changes: 2 additions & 1 deletion modules/core/client/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ var AppConfig = (function() {
'trTrustpass',
'angular-mailcheck',
'angular-locker',
'angular-confirm'
'angular-confirm',
'angularGrid'
];

// Load different service dependency for Angulartics depending on environment
Expand Down
8 changes: 8 additions & 0 deletions modules/core/client/directives/tr-boards.client.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@
'file': 'ss-mountainforest.jpg',
'license': 'CC',
'license_url': 'https://creativecommons.org/publicdomain/zero/1.0/', // https://unsplash.com/license
},
'tribes-1': {
// Permission granted for Trustroots (asked by Mikael Korpela)
'name': 'Antonio Fulghieri',
'url': 'https://aaoutthere.wordpress.com/',
'license': 'CC',
'license_url': 'https://creativecommons.org/licenses/by-nc-nd/4.0/',
'file': 'tribes-1.jpg'
}
};

Expand Down
Loading

0 comments on commit 7b2502b

Please sign in to comment.