Skip to content

Commit 18e54e4

Browse files
authored
Merge pull request #111 from indentlabs/user-feedback
User feedback
2 parents 0322e67 + 9ddcb31 commit 18e54e4

15 files changed

+108
-24
lines changed

CHANGELOG.rdoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
Please add each new change as its own line to the top of the list below when a pull request is made in the format MM/DD: FEATURE/BUGFIX. :)
4+
5+
--
6+
7+
Most recent changes:
8+
9+
10/05 Added additional fields to Locations: laws, climate, founding story, and sports.
10+
10/05 Added a "Nature" tab to Characters containing new fields, and moved the "Fave" tab fields under "Social".
11+
10/05 Added a "Rules" tab to Universes containing fields for detailing magic systems, laws of physics, and technologies.
12+
10/05 Fixed a bug that prevented the "Hairstyle" field from saving on Characters.
13+
10/05 Fixed a bug that prevented the "Language" field from saving on Locations.
14+
10/04 Added the ability to download Notebook contents in JSON, TXT, or CSV.

README.rdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Finally, run the server with
8282

8383
rails server
8484

85-
== Deployment to indentapp.com
85+
== Deployment to notebook.ai
8686

8787
Deployment to the live stage will only be done by approved developers, and consists of a deployment of
8888

@@ -92,11 +92,11 @@ Deployment to the live stage will only be done by approved developers, and consi
9292

9393
- run regression tests on staging environment
9494

95-
- deploy from staging to live (viewed at indentapp.com)
95+
- deploy from staging to live (viewed at notebook.ai)
9696

9797

9898
== Thanks
9999

100100
Feel free to get in touch if you have any questions, comments, or concerns! :)
101101

102-
(c) Andrew Brown 2014
102+
(c) Andrew Brown 2016

app/controllers/characters_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ def content_param_list
1212
[
1313
:universe_id, :user_id,
1414
:name, :age, :role, :gender, :age, :archetype, :height, :weight, :haircolor,
15-
:facialhair, :eyecolor, :race, :skintone, :bodytype, :identmarks,
16-
:religion, :politics, :prejudices, :occupation, :pets,
15+
:facialhair, :eyecolor, :race, :skintone, :bodytype, :identmarks, :hairstyle,
16+
:religion, :politics, :prejudices, :occupation, :pets, :aliases,
1717
:mannerisms, :birthday, :education, :background,
18+
:motivations, :flaws, :talents, :hobbies, :personality_type,
1819
:fave_color, :fave_food, :fave_possession, :fave_weapon, :fave_animal,
1920
:notes, :private_notes, :privacy,
2021
siblingships_attributes: [:id, :sibling_id, :_destroy],

app/controllers/locations_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ def content_params
1111
def content_param_list
1212
[
1313
:universe_id, :user_id, :name, :type_of, :description, #:map,
14-
:population, :currency, :motto,
14+
:population, :currency, :motto, :language,
1515
:area, :crops, :located_at, :established_year, :notable_wars,
16-
:notes, :private_notes, :privacy,
16+
:notes, :private_notes, :privacy, :laws, :climate, :founding_story,
17+
:sports,
1718

1819
# Relations
1920
#todo might be able to inject/reflect these from :relates concern implementation

app/controllers/universes_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def content_param_list
1010
[
1111
:user_id,
1212
:name, :description,
13+
:laws_of_physics, :magic_system, :technologies,
1314
:history,
1415
:privacy,
1516
:notes, :private_notes

app/models/character.rb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,26 @@ def self.attribute_categories
5151
{
5252
overview: {
5353
icon: 'info',
54-
attributes: %w(name role gender age archetype universe_id)
54+
attributes: %w(name role gender age archetype aliases universe_id)
5555
},
5656
looks: {
5757
icon: 'face',
5858
attributes: %w(weight height haircolor hairstyle facialhair eyecolor race skintone bodytype identmarks)
5959
},
60+
nature: {
61+
icon: 'fingerprint',
62+
attributes: %w(mannerisms motivations flaws prejudices talents hobbies personality_type)
63+
},
6064
social: {
6165
icon: 'groups',
62-
attributes: %w(best_friends archenemies religion politics prejudices occupation)
66+
attributes: %w(best_friends archenemies religion politics occupation fave_color fave_food fave_possession fave_weapon fave_animal)
6367
},
64-
# TODO: remove schema for mannerisms
6568
history: {
6669
icon: 'info',
6770
attributes: %w(birthday birthplaces education background)
6871
},
69-
faves: {
70-
icon: 'star',
71-
attributes: %w(fave_color fave_food fave_possession fave_weapon fave_animal)
72-
},
7372
family: {
74-
icon: 'face',
73+
icon: 'device_hub',
7574
attributes: %w(mothers fathers spouses siblings children)
7675
},
7776
notes: {

app/models/location.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ def self.attribute_categories
4646
# TODO: map
4747
culture: {
4848
icon: 'face',
49-
attributes: %w(leaders population language currency motto)
49+
attributes: %w(leaders population language currency motto laws sports)
5050
},
5151
cities: {
5252
icon: 'business',
5353
attributes: %w(capital_cities largest_cities notable_cities)
5454
},
5555
geography: {
5656
icon: 'map',
57-
attributes: %w(area crops located_at)
57+
attributes: %w(area crops located_at climate)
5858
},
5959
history: {
6060
icon: 'book',
61-
attributes: %w(established_year notable_wars)
61+
attributes: %w(founding_story established_year notable_wars)
6262
},
6363
notes: {
6464
icon: 'edit',

app/models/universe.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def self.attribute_categories
4444
icon: 'book',
4545
attributes: %w(history)
4646
},
47+
rules: {
48+
icon: 'gavel',
49+
attributes: %w(laws_of_physics magic_system technologies)
50+
},
4751
notes: {
4852
icon: 'edit',
4953
attributes: %w(notes private_notes)

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def to_xml(options={})
3636
end
3737

3838
def name
39-
self[:name].blank? ? 'Anonymous author' : self[:name]
39+
self[:name].blank? && self.persisted? ? 'Anonymous author' : self[:name]
4040
end
4141

4242
def content

app/views/content/index.html.erb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,24 @@
88
<% end %>
99

1010
<% if @content.any? %>
11-
<h4>You've created <%= pluralize(@content.count, content_type) %></h4>
11+
<h4>
12+
You've created <%= pluralize(@content.count, content_type) %>
13+
<% if @content.count > 0 %>
14+
<small class="right">
15+
<%= link_to new_polymorphic_path(@content.build), class: "btn white #{content_type_class.color}-text" do %>
16+
+
17+
<i class="material-icons <%= content_type_class.color %>-text">
18+
<%= content_type_class.icon %>
19+
</i>
20+
<% end %>
21+
</small>
22+
<% end %>
23+
</h4>
1224
<%= render partial: 'content/list/list', locals: { content_list: @content } %>
1325
<%= link_to "Create another #{content_type}", new_polymorphic_path(@content.build), :class => 'btn' %>
1426

1527
<% elsif @content.empty? %>
16-
<div class="center">
28+
<div class="center" style="margin-bottom: 50px;">
1729
<h4>You haven't created any <%= content_type.pluralize %> yet!</h4>
1830
<h1>
1931
<i class="material-icons <%= content_type_class.color %>-text" style="font-size: 200%">

0 commit comments

Comments
 (0)