Commit Graph

235 Commits

Author SHA1 Message Date
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
FinnStutzenstein
bbb8a84f5c Group add/remove bulk view 2019-07-23 12:06:26 +02:00
FinnStutzenstein
1e177917d0 Bulk views for users: state, password and delete 2019-07-23 08:41:39 +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
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
Sean
ee559500fb
Merge pull request #4792 from GabrielInTheWorld/formValidationForTheWin
Form validation
2019-07-19 12:32:31 +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
450819c035
Merge pull request #4858 from FinnStutzenstein/littleFixes
Little fixes
2019-07-17 13:54:54 +02:00
FinnStutzenstein
88162dd1e9 Little fixes
- Fixed bug for deleted candidates
- Prevent deleting group 1 and 2
- Creation of topics
2019-07-17 13:16:36 +02:00
GabrielMeyer
f23b901622 Fixes some autocompleted inputs 2019-07-17 08:32:46 +02:00
Emanuel Schütze
cf3879957b Updated translations 2019-07-13 14:55:55 +02:00
FinnStutzenstein
56c1da352e Directories and access permissions for mediafiles 2019-07-12 13:08:07 +02:00
Sean Engelhardt
bc0fea3310 Update to Angular 8.0.6
Updates to angular 8 and updates all used components

- removed wrapper class for ngx/pwa LocalStorrace
- removed database lock service due to bugs
- tried to work around a cycle of dependancies
- changed some structure to be more close to default angular
- removed legacy angular packages
- removed date-picker since it was not currently used and
  is not compatible anymore
- upgrade tinyMCE
2019-07-04 14:20:57 +02:00
FinnStutzenstein
b8d3fa2614 Cleanup 2019-06-28 07:58:36 +02:00
Sean Engelhardt
2758441552 Adds custom filter predicates for native object data
Supports properties like motion submitter and more.

Does at the moment "not" support tunneled properties, i.e filters
that need to go over a repository
(i.w workflow-state-label)

Fixes some small issues
2019-06-24 16:30:27 +02:00
Emanuel Schütze
3d573441ca
Merge pull request #4759 from FinnStutzenstein/optionalAgendaItem
Optional agenda items
2019-06-24 12:37:29 +02:00
Emanuel Schütze
7dd59cc477
Merge pull request #4782 from GabrielInTheWorld/tab-title-more
Sets more tab title
2019-06-18 19:44:22 +02:00
Emanuel Schütze
7cf604918f
Merge pull request #4784 from tsiegleauq/user-list-toggle
Add more user list options
2019-06-17 17:26:29 +02:00
GabrielMeyer
31161398c0 Sets more tab title
Sets the titles for the tab on more pages.
Fixes #4773.
2019-06-17 13:15:06 +02:00
Sean Engelhardt
bb443fd4af Add more user list options
- Adds an icon with tooltip if a user is inactive to the user list
- always show the 'present'-column, even though the user is not active
- add a info icon if the user has a "comment". The content of the content
  is displayed in the tooltip
2019-06-17 12:50:54 +02:00
FinnStutzenstein
8ff0f73477 Optional agenda items 2019-06-17 12:38:17 +02:00
Sean Engelhardt
161873b68c Speeds up the animations.
Removed the on-transition-fade class
The current way to trigger animation seemed not reliable enough.
2019-06-14 15:19:52 +02:00
Sean Engelhardt
15e9ea898b Add virtual scrolling to tables
Replaces most mat-tables with tables using the NGrid library, supporting
extremly performant virtual scrolling.

The ListViewBaseComponent have been extremly simplified.
All list-view code is now mich shorter and way less repitative

The group list and the workflow list have not been altered.

**Works:**
- Fast virtual Scrolling without pagination
- Click Filter
- Search Filter
- Sorting
- Export filtered values (using click filters)
- Export sorted values in correct order
- Right-Click-new-tab
- Hiding/showing columns by permission and screen size
- Multi select
- Auto Updates in MultiSelectMode keep the correct items selected
- OsHeadBar shows the correct amount of data
- Restore scroll position after navigation
- Shared-Table Component
- Clean-Up base-list-view
- Motion List
- Motion Block List
- Motion Block Detail
- User List
- Agnnda List
- Assignment List
- MediaFile List
- Tag List

**TODO:**
- Formulate filter predicates
- LOS Badge autoupdate (change detection)
- Better ellipses in lists
- Horrizontal Scrolling, if the screen get's too small.
- Issues in the change detection
- Some Layouting

**BUG:**
- Using the seach filter prevents the sorting from working.
- NGrid currently has no way to get the filtered list
  using search filter. Thus, search-filtered list cannot
  be exported.
2019-06-14 11:18:54 +02:00
GabrielMeyer
5e3f710e4d Adds a new component for icons
- An icon followed by text (or something else) can replaced by this new component, to verify a unified size and layout.
- Replaces also existing components with this new one.
2019-06-13 08:23:44 +02:00
Emanuel Schütze
9651a058c3
Merge pull request #4763 from GabrielInTheWorld/tab-title
Sets the TabTitle
2019-06-05 14:49:02 +02:00
GabrielMeyer
23fe9f1a94 Sets the TabTitle
Motions, users and elections reset the title of a tab in their detail-view.
2019-06-05 12:19:18 +02:00
GabrielMeyer
744b92f5f3 Adds dialogs to create/edit
- user-groups
- mediafile-list
2019-05-29 17:53:26 +02:00
FinnStutzenstein
0aedc77fd4 Fix permissions for change-own-password-view and user-profile-view 2019-05-24 15:09:44 +02:00
FinnStutzenstein
9f12763f8b Split AgendaItem and ListOfSpeakers
Server:
- ListOfSpeakers (LOS) is now a speprate model, containing of an id,
speakers, closed and a content_object.
- Moved all speaker related views from ItemViewSet to the new
ListOfSpeakersViewSet.
- Make Mixins for content objects of items and lists of speakers.
- Migrations: Move the lists of speakers from items to the LOS model.

Client:
- Removed the speaker repo and moved functionality to the new
ListOfSpeakersRepositoryService.
- Splitted base classes for agenda item content objects to items and
LOS.
- CurrentAgendaItemService -> CurrentListOfSpeakersSerivce
- Cleaned up the list of speakers component.
2019-05-24 08:21:59 +02:00
Finn Stutzenstein
e4dfd75ab9
Merge pull request #4721 from FinnStutzenstein/fixPermissionSorting
Fix sorting of permissions if plugins are available
2019-05-20 17:20:38 +02:00
FinnStutzenstein
ba73d50886 Fix sorting of permissions if plugins are available 2019-05-20 10:32:40 +02:00
Sean Engelhardt
850fcbe243 Rework sort and filter
More observable based, more scaleable filtering
based on an old branch of @FinnStutzenstein.

cleans some functions and provides some differend features.
2019-05-17 13:03:48 +02:00
Emanuel Schütze
65dbf37106
Merge pull request #4704 from FinnStutzenstein/setPermissionRequest
Request for settings a permission in a group (closes #4698)
2019-05-16 14:14:33 +02:00
Emanuel Schütze
2b163af5d7 Improved users PDF and CSV export
- PDF: use full_name (with structure_level and number) instead of short_name.
- CSV: add gender column
2019-05-14 20:20:21 +02:00
FinnStutzenstein
5e13299ae3 Request for settings a permission in a group (closes #4698) 2019-05-13 10:17:24 +02:00
Emanuel Schütze
ca70944d0c Fixed permission for reset password in routing module. 2019-05-10 16:09:35 +02:00
Emanuel Schütze
91cb6c132c Fix access for user meta info dialog in user list view. 2019-05-10 07:17:09 +02:00
Sean Engelhardt
7d49187123 Update personal note in motion
Fixes an issue where personal notes were not update
during a view motions update process
2019-05-08 20:07:04 +02:00
GabrielMeyer
3d5f79a76c Fields are only available if they are available
- The user can change information about motions
- The user can send an invitation email
2019-05-07 15:03:57 +02:00
GabrielMeyer
8b489fcdc0 Adds the structure-level to the user-list
- The dialog shows the structure level of one user
- In the list-view the structure level and the participant number are displayed.
2019-04-29 10:35:24 +02:00
Emanuel Schütze
652968add3
Merge pull request #4634 from MaximilianKrambach/lastEmailSent
last_email_sent display and resend email
2019-04-27 21:32:16 +02:00
Maximilian Krambach
d1eed23158 last_email_sent display and resend email 2019-04-27 21:16:28 +02:00
Sean Engelhardt
e520dd99e0 Create assignment PDF service
Exports the assignment detail as PDF
2019-04-26 16:23:48 +02:00
GabrielMeyer
69b6aec288 Implements a dialog to edit meta information of one motion 2019-04-24 13:36:17 +02:00
Sean
b581c350c6
Merge pull request #4584 from GabrielInTheWorld/form-validation-new
Validates creating a new user
2019-04-16 14:49:51 +02:00
Maximilian Krambach
217186f435 cleanup of outdated TODOS and stubs 2019-04-16 12:47:48 +02:00
GabrielMeyer
b7799c2337 Validates creating a new user
- If a new user is created and neither the username, first name nor last name is set, a hint is displayed and the user is still in the creating mode.
- Also prevents that the client queries a user that does not exist.
2019-04-15 15:07:23 +02:00
Maximilian Krambach
48593acc25 disable multiselect options if nothing selected 2019-04-15 13:24:42 +02:00
Emanuel Schütze
9059191e91 Updated translations 2019-04-11 23:09:13 +02:00
Maximilian Krambach
52193e9fb2 Assignments 2019-04-08 10:16:46 +02:00
Sean Engelhardt
bd33c59ddf Add permissions to ListViews
Adds the AuthGuard to certain routes
Adds an error-component
Also hides certain other elements where
permissions should apply
2019-04-06 21:13:17 +02:00
Sean Engelhardt
8236d1bf5b Enlarge page size
Enlarges the page size of all list views.
Also move the declaration of the page size into the base list view component
2019-04-04 12:10:45 +02:00
Maximilian Krambach
85491b6c8f prevent accidental self-lockout in multiSelect 2019-03-26 09:49:55 +01:00
GabrielMeyer
15ca6cfec7 Adjusts pagination to default code style. 2019-03-25 13:04:42 +01:00
GabrielMeyer
6e628ea4cd Adds listener to the pagination
- Subscription to change events from pagination are used to set the made settings initial.
2019-03-22 13:05:03 +01:00
Sean Engelhardt
ca18d59ac3 Fix some z-level related issues
Fixes some z-layer effects
2019-03-20 12:45:34 +01:00
Maximilian Krambach
9c67b1c773 sorting from inside base repositories
Authors: FinnStutzenstein, MaximilianKrambach, tsiegleauq
2019-03-15 08:12:50 +01:00
Sean Engelhardt
5d35a0fa5f Fix certain permission checks
Fixed permissions in topic detail, agenda list and user detail.
Fixes Z-Level of head bar and mat-spinner.
2019-03-14 17:50:33 +01:00
Sean Engelhardt
d4e10702cc Cleanup Repos
Add an getViewModelListBehaviorSubject that simplifies
how to get most model lists in the view

unified update, delete and create methods and removed redundant code from the repos
(where it was possible)

cleaned up the motion detail to not directly use the DataStore

Add information about the "main model" to all ViewModels, to call the
correct constructor in the BaseRepo
2019-03-14 10:46:33 +01:00
Sean
ae3ce54f57 workflow table state sort
Sorts the Workflow table to be more predictable

Adds new shared SCSS table rules.
Adds a default with as 100% (there have never been half tables)
Overwrites the rules for sticky tables
2019-03-13 15:54:35 +01:00
Emanuel Schütze
5139fe8365 Updated tranlstions 2019-03-11 12:28:34 +01:00
Emanuel Schütze
1ecc7f4baa
Merge pull request #4485 from tsiegleauq/user-detail-template-fixes
User detail template fixes
2019-03-09 22:06:15 +01:00
Sean Engelhardt
62e3256c54 User detail template fixes
Adds a new template to user detail, to show user information in multiple
lines

Also adds a new feature to the headbar. Long titles (over title slot) will
break using ellipsis
2019-03-08 14:51:48 +01:00
FinnStutzenstein
f198a21543 rework personal notes 2019-03-08 12:09:53 +01:00
Sean Engelhardt
6a421f8f6b Add more motion modules
Seperates the previously large motion module in various smaller
and very small feature modules.
Motion Detail, and all direct dependancies to Motion Detail
is now an own module.
This significantly increases the response time of openslides 3
2019-03-08 10:43:54 +01:00
Maximilian Krambach
0ddded4a86 csv example export refactor
- make csv example data respect config separators
- refactor at a more central place
2019-03-06 11:03:51 +01:00
GabrielMeyer
85f9897f42 Fixes clicking on the group-cell to change settings
Now, the user can click on the whole group-cell to change some settings like groups, gender and member-number.
2019-03-05 12:43:53 +01:00
Emanuel Schütze
8c68e93596
Merge pull request #4434 from MaximilianKrambach/stopProopagation
fix click events in user + mediafile views
2019-02-28 16:18:10 +01:00
Maximilian Krambach
feca9e4a18 fix click events in user + mediafile views
stopped propagation on soome buttons and menus
2019-02-28 16:05:28 +01:00
Maximilian Krambach
036ce4f02c permission for admins to reset passwords 2019-02-28 11:29:58 +01:00
FinnStutzenstein
2e0353618d Revive the global search.
Fixed leftovers from the viewModel restructure. Repositories always have a verboseName now. Does not implement new logic to follow related models (e.g. motions->submitters).
2019-02-28 08:56:03 +01:00
Maximilian Krambach
e4c79fd371 marking and repairing translations 2019-02-27 10:31:45 +01:00
Maximilian Krambach
be83d9b0aa bulk import of users 2019-02-26 22:05:38 +01:00
Maximilian Krambach
570bc10766 fix projector on users 2019-02-26 13:20:40 +01:00
Maximilian Krambach
5cedf6eb58 normalize multiSelect actions 2019-02-26 11:06:42 +01:00
Emanuel Schütze
a077ca85f5 UI improvments
- Use lanaguage files for tinymce.
- Fixed user import error.
- Improve colors for default/dark theme.
- Fixed missing translation.
2019-02-24 20:07:19 +01:00
Emanuel Schütze
3e2b201ee2
Merge pull request #4387 from GabrielInTheWorld/change-dark-theme
Changes the primary palette for dark theme
2019-02-22 17:02:02 +01:00
GabrielMeyer
f989be36ad Changes the primary palette for dark theme
- Added a custom palette (`#c31c23`)
- Set the new primary palette for dark theme

Changes some styles depending on theme

- Removed hard-coded colors
- Set color depending on theme

Prettified
2019-02-22 16:27:42 +01:00
Emanuel Schütze
ecf16d1400
Merge pull request #4388 from GabrielInTheWorld/correct-rendering-text
Adds sanitizer to render text correctly
2019-02-22 14:08:22 +01:00
GabrielMeyer
efe8f3e862 Adds sanitizer to render text correctly
Sanitized the text, which is displayed, to show formatting like
centering, bold etc.

Sanitized the text for projectors
2019-02-22 12:12:08 +01:00
GabrielMeyer
1694daaa9c Added anchor column
Added an anchor column, so the user can open a separate tab.

prettified

Changed name of variable

Resolves answer from pull-request

- Moved the style for the anchor columns to `styles.scss`
- Set the anchor column to the last place in the array
2019-02-22 09:29:10 +01:00
Emanuel Schütze
e97c308747
Merge pull request #4352 from FinnStutzenstein/losSlide
List of speakers slide
2019-02-21 13:00:02 +01:00
FinnStutzenstein
7ef36e93c6 List of speakers slide 2019-02-21 12:34:41 +01:00
Sean Engelhardt
53ea73ccde Add "No." as translateable
To display user numbers, No. is now translateable
2019-02-20 16:17:05 +01:00
Emanuel Schütze
f09a39a3c3
Merge pull request #4366 from emanuelschuetze/fixes
several fixes and improvements
2019-02-18 17:25:54 +01:00
Emanuel Schütze
c9c4566c08 several fixes and improvements
- Add projector logo/headerimage
- Fixed opening multiselect action menu for users.
- Used defined toolbar color for multiselect mode.
- (server) Added check for 'request.data._mutable = True' to edit user
  profile as normal user.
2019-02-18 16:40:46 +01:00
Emanuel Schütze
6c8fbcfc07
Merge pull request #4365 from MaximilianKrambach/hideUserList
user detail page display permission update
2019-02-18 15:58:40 +01:00
Maximilian Krambach
567a53db03 user detail page display permission update 2019-02-18 15:38:29 +01:00
Sean Engelhardt
57be0a5bea Force DataSource to refresh
Fixed a bug where data in MatTableDataStore was not updating.
Also:
Cleaned redundant list view sorting and filtering functions
2019-02-18 14:23:33 +01:00
Finn Stutzenstein
9e794c4669
Merge pull request #4344 from FinnStutzenstein/countdowns
Countdown slide and controls
2019-02-15 12:37:23 +01:00
FinnStutzenstein
2801e28704 Countdown slide and controls 2019-02-15 12:21:23 +01:00
Emanuel Schütze
aaa9157873
Merge pull request #4316 from tsiegleauq/remove-ngsubmit
Remove redundant submits
2019-02-14 15:06:28 +01:00
Sean Engelhardt
6a78d65dc3 Remove redundant Submits
Remove concurrent ngSubmit
Some cleanup and code alignment
2019-02-14 14:17:17 +01:00
GabrielMeyer
dfc41fc3a2 Feature for quick editing a user
Like in the `agenda-list.component`, if the user clicks on the middle cell, where the groups are written, a dialog opens.
In this dialog the user can update the following values for another user: groups, gender and participant-number.
2019-02-14 13:13:57 +01:00
Maximilian Krambach
59ed906a36 user sorting by config 2019-02-14 10:53:13 +01:00
Maximilian Krambach
c3c915e118 direct pdf export and hidden unusable options for delegates
also, several permission check fixes and minor layout improvements
2019-02-13 13:43:45 +01:00
GabrielMeyer
63989b2b29 Adds a new IconFont-set
Fixes #3921
Added a new set of icons and removed the old one. The new one can used just like the old one.

Changed old improper icons to new ones

- The 'save_alt'-icons are replaced by 'cloud_upload'
- The icon in the navigation for assignments is replaced by 'how_to_vote'
- The drag&drop icon 'unfold_more' is replaced by 'drag_indicator'
2019-02-12 17:39:06 +01:00
FinnStutzenstein
99d751dbaf Implement missing update behaviour for users 2019-02-12 11:46:52 +01:00
FinnStutzenstein
cc4d5a5739 Fix issues with minification 2019-02-12 09:28:54 +01:00