Commit Graph

675 Commits

Author SHA1 Message Date
Emanuel Schütze
11521c4ff2
Merge pull request #5012 from GabrielInTheWorld/paragraphDeleted
Fixes saving amendments with deleted paragraphs
2019-09-12 17:36:18 +02:00
GabrielMeyer
ad10a2b0d7 Fixes can create amendments if having permissions 2019-09-12 17:07:11 +02:00
GabrielMeyer
7ad8a40764 Fixes saving amendments with deleted paragraphs 2019-09-12 17:06:49 +02:00
GabrielMeyer
97d0f92430 Fixes loading of data and hiding spinner 2019-09-12 13:52:45 +02:00
Emanuel Schütze
30502a95c6
Merge pull request #5004 from GabrielInTheWorld/buildForVerdi
Adds amount of waiting speakers for xlsx-export
2019-09-12 11:39:27 +02:00
Tobias Hößl
3d23eb26d3
Fix location of change recommendation annotations 2019-09-12 10:47:57 +02:00
GabrielMeyer
cc3047a284 Adds amount of waiting speakers for xlsx-export 2019-09-12 10:45:24 +02:00
Sean
11922c2a12
Merge pull request #4979 from GabrielInTheWorld/sortingCallList
Implements the possibility to sort trees by a given property
2019-09-11 11:29:09 +02:00
Emanuel Schütze
b4f1c7d0f4 Updated translations 2019-09-10 17:42:19 +02:00
Emanuel Schütze
b949761404
Merge pull request #4997 from GabrielInTheWorld/funWithState
Changes the order of states in filter
2019-09-10 17:31:13 +02:00
GabrielMeyer
028ce16bb9 Changes the order of states in filter
- 'Done' and 'undone' are moved up to top.
2019-09-10 17:08:34 +02:00
Sean Engelhardt
c33fbc2198 Add amendment overview list as pdf
Adds an option to export the/a table of amendments as pdf
2019-09-10 15:08:55 +02:00
Emanuel Schütze
44f16b6125
Merge pull request #4989 from tsiegleauq/amendment-list-title
Add the title too the amendments page
2019-09-10 13:26:49 +02:00
Sean Engelhardt
96f88b54d5 Add the title too the amendments page
Adds an observable view model of the parent motion to the amendment list page to show the title
2019-09-10 12:28:37 +02:00
GabrielMeyer
1ec5dfbb88 Implements the possibility to sort trees by a given property
- Separates the base sorting function to a lower service, called `base-sort.service`.
- Adds the `tree-sort.service`.
2019-09-09 15:44:08 +02:00
Emanuel Schütze
89375ae133 Updated translations 2019-09-09 11:01:35 +02:00
Emanuel Schütze
4665c5be32
Merge pull request #4984 from tsiegleauq/motion-list-menu-order
Reorder motion list menu
2019-09-05 15:33:10 +02:00
Sean Engelhardt
ff2b520013 Reorder motion list menu
Changes the order of the motion list menu
2019-09-05 14:59:22 +02:00
Emanuel Schütze
20f1f982ae
Merge pull request #4976 from GabrielInTheWorld/improvingSuperSearch
Improves the global search to find IDs
2019-09-05 14:17:27 +02:00
Emanuel Schütze
5c83eb824a
Merge pull request #4974 from tsiegleauq/amendment-sort-by-line
Add sort service for amendments
2019-09-05 14:14:11 +02:00
Sean Engelhardt
91329a8338 Add sort service for amendments
Adds the posibility to sort amendments by the parents identifier
and line number.

Patches the amendment model by their diff lines in runtime
2019-09-05 13:49:27 +02:00
GabrielMeyer
bd9d93061d Fixes permissions for motion-blocks
- Only users with permission `motions.can_manage` can remove motions from motion-block.
2019-09-04 12:04:33 +02:00
GabrielMeyer
1d5b1b4fed Improves the global search to find IDs
- Considers the 'id' of objects for search.
2019-09-04 11:31:03 +02:00
Emanuel Schütze
367c06bb02
Merge pull request #4949 from GabrielInTheWorld/lostDeep
Cleans up the stylesheets a little bit
2019-09-03 22:04:02 +02:00
Emanuel Schütze
a193cc1e3f
Merge pull request #4973 from GabrielInTheWorld/fixSpinner
Improves the spinner
2019-09-03 13:33:44 +02:00
GabrielMeyer
d354461784 Cleans up the stylesheets a little bit
- Removes all `::ng-deep`
- Merges some re-used styles to one stylesheet
- The icon to open the global search will always be seen in the headbar
2019-09-02 17:33:42 +02:00
GabrielMeyer
32bfd4599a Improves the spinner
- The spinner shouldn't appear, if the user is logged in.
2019-09-02 17:01:01 +02:00
Emanuel Schütze
216c279d48 Fixed motion submitter check. 2019-09-02 11:23:10 +02:00
GabrielMeyer
ef8508d2d2 Improves some user-interfaces for motion-detail 2019-08-30 11:16:14 +02:00
Sean Engelhardt
985aeb095b Enhance amendment list and routing logic
Enhances routing logic and amendment list
2019-08-28 14:30:41 +02:00
GabrielMeyer
c49ea53ab1 Checks, if content is too large and hide it in 'meta-text-block'
- Also updates the library 'css-element-queries'.
- Builds a directive to check, if the scroll-height of an element
has changed.
2019-08-27 10:00:04 +02:00
Sean
13e18c82e3 Prevent wrong bulk-change-state operations
Prevents to change the state of multiple motions, if given motions are
in different workflows
2019-08-26 17:11:40 +02:00
Sean
e3a7cbf935
Merge pull request #4890 from GabrielInTheWorld/freshSearch
Implements the 'global search' and moves the 'global spinner' to 'site.component'
2019-08-26 16:53:38 +02:00
Emanuel Schütze
900ba55a06
Merge pull request #4942 from tsiegleauq/tinymce-mobile-save
Add usage hints to tinymce mobile
2019-08-26 15:28:04 +02:00
Sean Engelhardt
af8b49450b Enhance amendment wizard
- close button instead of back-button
- "are you sure" prompt if chances to the wizard were made
- edit and save events, like every other view
- enhanced next, previous, create logic that follows validation

also:
- fixed a bug with custom cancel events in the head-bar
- mobile button has the correct icon again
2019-08-26 13:51:25 +02:00
GabrielMeyer
5f29732e26 Implements the global 'super-search.component'
- Moves the 'spinner.component' to 'site.component'
- Replaces also the 'spinner.service' with an 'overlay.service', that handles all request to
show an element on an overlay.
2019-08-26 11:30:20 +02:00
Emanuel Schütze
b1c02133ee
Merge pull request #4941 from tsiegleauq/firefox-amendment-list
Add manual change detection in amendment list
2019-08-23 08:37:16 +02:00
Emanuel Schütze
afb804b7a2
Merge pull request #4939 from tsiegleauq/filter-has-speaker
Add speakers-filter to motion list
2019-08-23 08:35:47 +02:00
Sean Engelhardt
49ea32f495 Add usage hints to tinymce mobile
shows "dont forget to save" and "touch the book to edit" messages if the tinymce
mobile editor was called from motion comments and personal notes
2019-08-22 17:47:31 +02:00
Sean Engelhardt
04c51949be Add manual change detection in amendment list
Again a firefox issue.
Cycleing change detection crashed the browser
2019-08-22 16:07:54 +02:00
Sean Engelhardt
dee41593c4 Add speakers-filter to motion list
The motion list (and the amendment list) now have an option to filter if speakers are present on the corresponding LOS-object to the displayed motions
2019-08-22 15:39:18 +02:00
Sean Engelhardt
0939df17c9 Fix empty PDF TOC page
Fixed a bug that occured, when the pdf TOC had no motions without a category.
In this case, an empty page, that was reserved for motions without category
was printed
2019-08-22 10:47:37 +02:00
Emanuel Schütze
b80ac3ac68
Merge pull request #4936 from emanuelschuetze/translation-20190821
Updated translations
2019-08-21 15:26:01 +02:00
Emanuel Schütze
8f8c359874
Merge pull request #4935 from tsiegleauq/storage-key
Readd filter store keys
2019-08-21 15:23:29 +02:00
Emanuel Schütze
c0aaa2d53c Updated translations 2019-08-21 15:11:57 +02:00
Sean Engelhardt
5a7b32e3cd Readd filter store keys
Adds custom storage keys to the filter list again
prevents a problem that appears on minified code
2019-08-21 14:53:07 +02:00
Emanuel Schütze
ae110b9db1
Merge pull request #4934 from tsiegleauq/firefox-exporter-comment-bug
Fix firefox comment export
2019-08-21 14:43:30 +02:00
Sean Engelhardt
323a0604a1 Fix firefox comment export
Fixes an issue where motion comments where breaking the
motion export dialog in firefox
2019-08-21 14:15:49 +02:00
Emanuel Schütze
862d8cdee9 New config to hide referring motions in slide and detail view
Rework motion slide:
- move referring motions to h2 subtitle
- move identifier to h1 main title
- reduce subtitle line
2019-08-21 14:00:17 +02:00
Emanuel Schütze
d3c56efdc5
Merge pull request #4920 from emanuelschuetze/configDefaults
Rework config defaults.
2019-08-21 13:48:55 +02:00
Emanuel Schütze
f981106524 Rework config defaults.
- move motion setttings from settings.py to config that user can change
  it while runtime
- show help text for config fields as tooltip
2019-08-21 13:19:44 +02:00
Sean
180aad853b
Merge pull request #4933 from GabrielInTheWorld/fixAttachments
Fixes directories as attachments
2019-08-21 11:34:09 +02:00
GabrielMeyer
4dd79296e8 Fixes directories as attachments
- Directories are not available anymore.
2019-08-21 10:57:22 +02:00
Sean
df429a7d8a
Merge pull request #4930 from GabrielInTheWorld/showNumberOrLetIt
Sets the default value for sequential numbers in export dialog
2019-08-20 14:48:33 +02:00
Sean
1d1ddbd6e4
Merge pull request #4927 from tsiegleauq/better-motion-detail-ui
Overwork motion detail UI
2019-08-20 13:52:44 +02:00
Sean Engelhardt
d739b982bb Overwork motion detail UI
set Default action to "create amendment" (if permitted)
put edit in the menu
put next and prev motion in the menu (mobile)
resort motion menu
move "show enitre motion text" under the motion-preview
change "show entire motion text" from button to checkbox
create a custom tooltip for the main action in os-head-bar
create a custom "cancel edit" function in os-head-bar
overwork location.back logic
2019-08-20 12:42:50 +02:00
GabrielMeyer
3b9491224f Sets the default value for sequential numbers in export dialog 2019-08-20 12:37:42 +02:00
Emanuel Schütze
14d7269959
Merge pull request #4926 from tsiegleauq/hide-amendments-from-motion-list
Add option to hide amendments
2019-08-20 12:00:25 +02:00
Sean Engelhardt
e7357a5b64 Add option to hide amendments
Enables to hide amendments from the motion list
Allows to search through amendment paragraphs in the list view of amendments
2019-08-19 16:25:35 +02:00
FinnStutzenstein
78d2766a2c Added missing error handling 2019-08-19 12:12:22 +02:00
Sean Engelhardt
13e1c01bb6 Add amendment list
Adds a new ListView to show all amendments.
The list view can be acessed from both the motion list and the motion detail list
2019-08-16 09:27:41 +02:00
Emanuel Schütze
bfccf4cd2b
Merge pull request #4923 from tsiegleauq/motion-block-detail-layout
Unify motion block detail
2019-08-15 14:57:45 +02:00
Sean Engelhardt
1fc0ec02a9 Unify motion block detail
Changes motion block list to look and feel like all the other lists
2019-08-15 14:40:10 +02:00
Sean
7fa94ab942
Merge pull request #4919 from emanuelschuetze/fixes
Enhance meta-text-block layout and wording
2019-08-15 12:50:10 +02:00
Emanuel Schütze
8e38fbbccf Fixes
- fix filter and wording for new personal notes tile
- break long words in comment and personal note boxes
- remove h4 headings for comment and personal note boxes
2019-08-14 20:24:35 +02:00
Sean
1c7b910a4a
Merge pull request #4909 from GabrielInTheWorld/layoutMotionBlock
Improves the layout of motion-block-list
2019-08-14 11:51:47 +02:00
GabrielMeyer
5106b9dc71 Improves the layout of motion-block-list
- Full size
- Adds the `sort-filter-bar.component`.
- `sort-filter-bar.component` displays the current and total count of filtered items by default, now.
2019-08-14 11:36:30 +02:00
Sean
bcf495e49f
Merge pull request #4889 from jsangmeister/categories-vscroll
Implemented Virtual Scrolling for Categories
2019-08-13 16:05:23 +02:00
jsangmeister
d65751c5da Add virtual scrolling for categories
StorageService is now required in BaseListView.
Adds a dialog to create categories
2019-08-13 15:43:54 +02:00
Sean Engelhardt
a39d9b5843 Add Smarter motion tiles and filters
Removes motion tiles for subcategories
Sort motion-special tiles always behind category tiles
Add new logic to build tiles
Filter subcateories with their parent
2019-08-13 13:54:29 +02:00
FinnStutzenstein
0e4090c901 Reverse relations 2019-08-12 14:12:55 +02:00
Finn Stutzenstein
ed99fc8c91
Merge pull request #4898 from FinnStutzenstein/cascadeCategories
Cascade categories on delete
2019-08-12 07:49:13 +02:00
Emanuel Schütze
b206a5b5d4
Merge pull request #4877 from tsiegleauq/translations-2019-07
Updated translations
2019-08-08 16:49:55 +02:00
Sean Engelhardt
490672472a Updated translations 2019-08-08 16:34:59 +02:00
Sean Engelhardt
291a3b35e8 Show subcategory in detail for every permission
Shows subcat. withoug manage rights
Hide empty recommendation field if the user cannot manage it
2019-08-08 16:22:33 +02:00
Joshua Sangmeister
ad432dddc0 w 2019-08-06 11:57:23 +02:00
Joshua Sangmeister
ce50ce2eb9 w 2019-08-06 10:56:37 +02:00
Joshua Sangmeister
b7c9b3f2ae w 2019-08-06 09:56:38 +02:00
Joshua Sangmeister
30c93f3990 w 2019-08-06 09:26:11 +02:00
jsangmeister
1bd93f0e98 added dialogs for creating and editing tags, statute paragraphs, motion comments and motion blocks 2019-08-06 08:03:59 +02:00
FinnStutzenstein
d182c2c36f Cascade categories on delete 2019-08-05 13:12:10 +02:00
Sean Engelhardt
6123216afc Add pdf webworker and progress bar
Generate PDF in the background using webworker
Shows a progress bar to estimate the PDF generation progress
2019-08-01 13:23:56 +02:00
Finn Stutzenstein
0383f824d7
Merge pull request #4874 from FinnStutzenstein/history
Improve history
2019-08-01 11:19:57 +02:00
GabrielMeyer
bd03300ee0 Exports the settings for the dialogs to a separate file.
- Includes a constant for small, medium and large dialogs.
2019-07-30 15:59:15 +02:00
GabrielMeyer
2a1a44ee5a Saves the value of the local search in 'list-view-table'
- Builds a new component 'rounded-input' to have a input-field with rounded borders.
- Saves the input on every change in the local storage.
- In the `OnInit`-function this value is restored.
2019-07-30 10:57:55 +02:00
FinnStutzenstein
a0501ccf74 Improve history 2019-07-30 10:40:36 +02:00
FinnStutzenstein
51a3fbdf3e New linting rules and ordering of imports 2019-07-30 09:53:14 +02:00
FinnStutzenstein
dd66244d84 Generic relations for the repos 2019-07-30 09:07:51 +02:00
Sean
85fa114fa0
Merge pull request #4860 from GabrielInTheWorld/fixSorting
Implements a custom sorting for categories
2019-07-25 10:28:57 +02:00
Sean
ff7978b8ae
Merge pull request #4843 from GabrielInTheWorld/uiImprovements
Fixes dynamic growing cells in workflows
2019-07-25 10:26:20 +02:00
Sean Engelhardt
31ab7d387c Fix PDF TOC header
Fixes an error where the PDF TOC header could not be repeated.
PDFmake seems to ignore soft references to objects. It will print them exactly once and then ignore them.

Also Adds the name of a parent category in a TOC-Table
2019-07-24 16:56:22 +02:00
GabrielMeyer
ac9bcf8539 Implements a custom sorting for categories
- If the motion-list is sorted by categories, the category is internal sorted by the `category_weight` of the motion
- Adds a slot to pass a custom sorting function to the `sort-filter-bar.component`
2019-07-23 15:27:21 +02:00
GabrielMeyer
bb55110245 Fixes dynamic growing cells in workflows
- The cells in the table of a workflow are dynamically growing
- The colors of the states get new labels
- If multiple selection in motion-list is active, the button to change the view won't be seen
2019-07-23 15:01:35 +02:00
Finn Stutzenstein
61002a6bad
Merge pull request #4865 from FinnStutzenstein/MotionCommentSectionSorting
sorting of motion comment sections
2019-07-22 16:03:13 +02:00
Sean Engelhardt
ce57f88adb Add motion comment section sort view 2019-07-22 15:46:26 +02:00
Sean
5c660a373f
Merge pull request #4863 from tsiegleauq/ngrid-real-search-filter
Implement NGrids filter function
2019-07-22 12:19:04 +02:00
FinnStutzenstein
74647dc75d sorting of motion comment sections 2019-07-19 14:37:59 +02:00
Sean Engelhardt
2372408e4c Implement NGrids filter function
- Implements NGrids new "filteredData" function, to restore old filter behavior.
Export a quick-filtered list is now possible.

- More controll about List-View-Table UI

- Use NGrid target-events for better mutli-select behavior

- Changes the behavior of hidden headers to ignore paddings-changes

- filters are more resistant to errors and storage loss
2019-07-19 14:35:24 +02:00
GabrielMeyer
4e0e641002 Form validations
The system validates the input of the users.
In most cases, if a form is invalid, the user has no chance to save his changes.
2019-07-17 15:09:38 +02:00
Sean
bb7b702e05
Merge pull request #4846 from tsiegleauq/subcat-filter-and-ui
Enhance subcategories
2019-07-16 11:29:33 +02:00