Browse Source

better naming for apps

Guénaël Muller 7 years ago
parent
commit
aab5c2d3e9

+ 9 - 9
tracim/models/applications.py View File

57
     main_route='/#/workspaces/{workspace_id}/contents?type=file',
57
     main_route='/#/workspaces/{workspace_id}/contents?type=file',
58
 )
58
 )
59
 
59
 
60
-pagemarkdownplus = Application(
61
-    label='Rich Markdown Files',  # TODO - G.M - 24-05-2018 - Check label
62
-    slug='contents/pagemarkdownplus',
60
+markdownpluspage = Application(
61
+    label='Markdown Plus Documents',  # TODO - G.M - 24-05-2018 - Check label
62
+    slug='contents/markdownpluspage',
63
     icon='file-code',
63
     icon='file-code',
64
     hexcolor='#f12d2d',
64
     hexcolor='#f12d2d',
65
     is_active=True,
65
     is_active=True,
66
     config={},
66
     config={},
67
-    main_route='/#/workspaces/{workspace_id}/contents?type=pagemarkdownplus',
67
+    main_route='/#/workspaces/{workspace_id}/contents?type=markdownpluspage',
68
 )
68
 )
69
 
69
 
70
-pagehtml = Application(
70
+htmlpage = Application(
71
     label='Text Documents',  # TODO - G.M - 24-05-2018 - Check label
71
     label='Text Documents',  # TODO - G.M - 24-05-2018 - Check label
72
-    slug='contents/pagehtml',
72
+    slug='contents/htmlpage',
73
     icon='file-text-o',
73
     icon='file-text-o',
74
     hexcolor='#3f52e3',
74
     hexcolor='#3f52e3',
75
     is_active=True,
75
     is_active=True,
76
     config={},
76
     config={},
77
-    main_route='/#/workspaces/{workspace_id}/contents?type=pagehtml',
77
+    main_route='/#/workspaces/{workspace_id}/contents?type=htmlpage',
78
 )
78
 )
79
 # TODO - G.M - 08-06-2018 - This is hardcoded lists of app, make this dynamic.
79
 # TODO - G.M - 08-06-2018 - This is hardcoded lists of app, make this dynamic.
80
 # List of applications
80
 # List of applications
81
 applications = [
81
 applications = [
82
-    pagehtml,
83
-    pagemarkdownplus,
82
+    htmlpage,
83
+    markdownpluspage,
84
     file,
84
     file,
85
     thread,
85
     thread,
86
     calendar,
86
     calendar,

+ 3 - 3
tracim/tests/functional/test_system.py View File

25
         res = res.json_body
25
         res = res.json_body
26
         application = res[0]
26
         application = res[0]
27
         assert application['label'] == "Text Documents"
27
         assert application['label'] == "Text Documents"
28
-        assert application['slug'] == 'contents/pagehtml'
28
+        assert application['slug'] == 'contents/htmlpage'
29
         assert application['icon'] == 'file-text-o'
29
         assert application['icon'] == 'file-text-o'
30
         assert application['hexcolor'] == '#3f52e3'
30
         assert application['hexcolor'] == '#3f52e3'
31
         assert application['is_active'] is True
31
         assert application['is_active'] is True
32
         assert 'config' in application
32
         assert 'config' in application
33
         application = res[1]
33
         application = res[1]
34
-        assert application['label'] == "Rich Markdown Files"
35
-        assert application['slug'] == 'contents/pagemarkdownplus'
34
+        assert application['label'] == "Markdown Plus Documents"
35
+        assert application['slug'] == 'contents/markdownpluspage'
36
         assert application['icon'] == 'file-code'
36
         assert application['icon'] == 'file-code'
37
         assert application['hexcolor'] == '#f12d2d'
37
         assert application['hexcolor'] == '#f12d2d'
38
         assert application['is_active'] is True
38
         assert application['is_active'] is True

+ 5 - 5
tracim/tests/functional/test_user.py View File

47
         assert sidebar_entry['icon'] == ""
47
         assert sidebar_entry['icon'] == ""
48
 
48
 
49
         sidebar_entry = workspace['sidebar_entries'][2]
49
         sidebar_entry = workspace['sidebar_entries'][2]
50
-        assert sidebar_entry['slug'] == 'contents/pagehtml'
50
+        assert sidebar_entry['slug'] == 'contents/htmlpage'
51
         assert sidebar_entry['label'] == 'Text Documents'
51
         assert sidebar_entry['label'] == 'Text Documents'
52
-        assert sidebar_entry['route'] == '/#/workspaces/1/contents?type=pagehtml'  # nopep8
52
+        assert sidebar_entry['route'] == '/#/workspaces/1/contents?type=htmlpage'  # nopep8
53
         assert sidebar_entry['hexcolor'] == "#3f52e3"
53
         assert sidebar_entry['hexcolor'] == "#3f52e3"
54
         assert sidebar_entry['icon'] == "file-text-o"
54
         assert sidebar_entry['icon'] == "file-text-o"
55
 
55
 
56
         sidebar_entry = workspace['sidebar_entries'][3]
56
         sidebar_entry = workspace['sidebar_entries'][3]
57
-        assert sidebar_entry['slug'] == 'contents/pagemarkdownplus'
58
-        assert sidebar_entry['label'] == 'Rich Markdown Files'
59
-        assert sidebar_entry['route'] == "/#/workspaces/1/contents?type=pagemarkdownplus"    # nopep8
57
+        assert sidebar_entry['slug'] == 'contents/markdownpluspage'
58
+        assert sidebar_entry['label'] == 'Markdown Plus Documents'
59
+        assert sidebar_entry['route'] == "/#/workspaces/1/contents?type=markdownpluspage"    # nopep8
60
         assert sidebar_entry['hexcolor'] == "#f12d2d"
60
         assert sidebar_entry['hexcolor'] == "#f12d2d"
61
         assert sidebar_entry['icon'] == "file-code"
61
         assert sidebar_entry['icon'] == "file-code"
62
 
62
 

+ 5 - 5
tracim/tests/functional/test_workspaces.py View File

48
         assert sidebar_entry['icon'] == ""
48
         assert sidebar_entry['icon'] == ""
49
 
49
 
50
         sidebar_entry = workspace['sidebar_entries'][2]
50
         sidebar_entry = workspace['sidebar_entries'][2]
51
-        assert sidebar_entry['slug'] == 'contents/pagehtml'
51
+        assert sidebar_entry['slug'] == 'contents/htmlpage'
52
         assert sidebar_entry['label'] == 'Text Documents'
52
         assert sidebar_entry['label'] == 'Text Documents'
53
-        assert sidebar_entry['route'] == '/#/workspaces/1/contents?type=pagehtml'  # nopep8
53
+        assert sidebar_entry['route'] == '/#/workspaces/1/contents?type=htmlpage'  # nopep8
54
         assert sidebar_entry['hexcolor'] == "#3f52e3"
54
         assert sidebar_entry['hexcolor'] == "#3f52e3"
55
         assert sidebar_entry['icon'] == "file-text-o"
55
         assert sidebar_entry['icon'] == "file-text-o"
56
 
56
 
57
         sidebar_entry = workspace['sidebar_entries'][3]
57
         sidebar_entry = workspace['sidebar_entries'][3]
58
-        assert sidebar_entry['slug'] == 'contents/pagemarkdownplus'
59
-        assert sidebar_entry['label'] == 'Rich Markdown Files'
60
-        assert sidebar_entry['route'] == "/#/workspaces/1/contents?type=pagemarkdownplus"    # nopep8
58
+        assert sidebar_entry['slug'] == 'contents/markdownpluspage'
59
+        assert sidebar_entry['label'] == 'Markdown Plus Documents'
60
+        assert sidebar_entry['route'] == "/#/workspaces/1/contents?type=markdownpluspage"    # nopep8
61
         assert sidebar_entry['hexcolor'] == "#f12d2d"
61
         assert sidebar_entry['hexcolor'] == "#f12d2d"
62
         assert sidebar_entry['icon'] == "file-code"
62
         assert sidebar_entry['icon'] == "file-code"
63
 
63