Commit Graph

74 Commits (76314386aeafdd6849b7b70c517779d6b2013473)

Author SHA1 Message Date
Rigel Kent 76314386ae
Add overview of a user's actions in user-edit (#2558) 2020-03-27 15:19:03 +01:00
Rigel Kent e61151b01c
Replace p-progressbar and bootstrap progressbar with pure CSS alt 2020-03-13 20:38:50 +01:00
Rigel Kent 680b549692
Migrate palette to HSL 2020-03-11 13:51:24 +01:00
Rigel Kent 482fa503e5 Use grid to organise settings in admin, my-account 2020-03-10 16:23:40 +01:00
Rigel Kent 54e7884775
Normalize modal close buttons, and cancel/submit button styles 2020-03-06 16:58:55 +01:00
Rigel Kent de702865f4
Share modal light UI simplification 2020-03-06 15:05:19 +01:00
Rigel Kent d3217560a6
Add visitor settings, rework logged-in dropdown (#2514)
* Add visitor settings, rework logged-in dropdown

* Make user dropdown P2P switch functional

* Fix lint

* Fix unnecessary notification when user logs out

* Simplify visitor settings code and remove unnecessary icons

* Catch parsing errors and reindent menu styles
2020-02-28 13:52:21 +01:00
Rigel Kent 9b8a7aa8ea
Improve search typeahead performance and use native events 2020-02-13 16:35:24 +01:00
Rigel Kent f409f0c3b9
Search typeahead initial design 2020-02-13 16:32:21 +01:00
Rigel Kent e40afb5bc4 Fix signup limit validator, and add warning message. 2020-01-31 08:56:20 +01:00
Chocobozzz 14aa85562c
Cleanup some client FIXME 2020-01-29 16:00:28 +01:00
Rigel Kent aa0f19635a Add manage buttons for own channels and account, video counts (#2421)
* Add manage buttons for own channels and account, video counts

* Change manage button color and introduce secondary color
2020-01-21 09:35:23 +01:00
Rigel Kent b061c8edb0 Add extra text to button when partially subscribed to all channels 2020-01-10 10:12:09 +01:00
Rigel Kent 46db9430af
Add checkbox focus shadows, and admin resolution descriptions 2020-01-06 12:41:14 +01:00
Rigel Kent bc584963ff
Update noscript message, reduce dropdown icon size and horizontal padding 2019-12-26 19:46:59 +01:00
Chocobozzz fc641dedd6
Improve comment tree UI 2019-12-10 11:02:58 +01:00
Chocobozzz 2a53942d9e
Fix overflow when creating a channel 2019-11-27 10:41:08 +01:00
Chocobozzz 18c9772876
Fix checkbox themes 2019-10-22 11:14:58 +02:00
Chocobozzz 6051946e44
Fix avatar bad width 2019-09-05 10:30:22 +02:00
Chocobozzz bc20aaed46 Fix register checkbox 2019-09-05 10:17:02 +02:00
Chocobozzz 03652b3179
Use ::ng-deep instead of /deep/ 2019-07-25 11:00:43 +02:00
Chocobozzz 3caf77d3b1
Add language filters in user preferences 2019-06-19 15:05:36 +02:00
Chocobozzz 2f4c784a92
Add params to share modal 2019-06-12 16:44:15 +02:00
Chocobozzz 776ca9b1cc
Fix checkbox outline 2019-06-06 11:43:01 +02:00
Chocobozzz 1d5342abc4
Multi step registration 2019-05-29 11:19:54 +02:00
Chocobozzz 2c3abc4fa7
Fix my account settings responsive 2019-04-11 11:18:19 +02:00
Chocobozzz e2409062de
Refactor video miniatures 2019-04-03 16:17:41 +02:00
Chocobozzz 8fc02e4768
Set thumbnail height 2019-04-03 14:18:23 +02:00
Chocobozzz 0c9945d900
Try to fix multiline ellipsis
some characters like "g" were cut out
2019-04-03 13:51:02 +02:00
Chocobozzz a55052c9ba
Add my library section in menu 2019-03-20 13:53:51 +01:00
Chocobozzz e2f01c47e0 Playlist support in watch page 2019-03-18 11:17:59 +01:00
Chocobozzz c5a1ae500e Playlist videos component 2019-03-18 11:17:59 +01:00
Chocobozzz f0a3988066 Add to playlist dropdown 2019-03-18 11:17:59 +01:00
Chocobozzz 830b4faff1 Add/update/delete/list my playlists 2019-03-18 11:17:59 +01:00
Chocobozzz ef80c66cea
Refactor ellipsis CSS 2019-02-20 15:52:03 +01:00
Chocobozzz 41d713446c
Lazy import some modules 2019-02-15 15:52:18 +01:00
Chocobozzz aa87909287
Fix calendar in dark mode 2019-01-17 11:51:08 +01:00
Chocobozzz f2fab901df
Fix invisible things in dark mode 2019-01-17 11:34:29 +01:00
Chocobozzz 17bb716bc4
Fix some styles
Video edit tags, dropdown actions font ...
2019-01-17 11:16:08 +01:00
Chocobozzz 457bb213b2
Refactor how we use icons
Inject them in an angular component so we can easily change their color
2019-01-17 10:38:18 +01:00
Chocobozzz 650e3d5ce3
Fix miniature with a long name 2018-11-15 16:38:36 +01:00
Chocobozzz 017c3dcadf
Add ability to list all local videos on client 2018-10-10 14:35:55 +02:00
Rigel Kent 8b183196cb
fix primeng border color on all themes 2018-09-29 17:36:19 +02:00
Chocobozzz 2860e62e23
Fix my account width on mobile 2018-09-20 16:24:58 +02:00
Chocobozzz 93ea9c47d9
Improve responsive on small screens 2018-09-20 14:59:19 +02:00
Rigel Kent e78980ebd1 use focus-visible polyfill to improve keyboard navigation
Only the homepage is concerned, but it should have decent keyboard
navigation support now.
2018-09-11 10:58:48 +02:00
Chocobozzz dcbc29d5c8
Put "start at" at the top of the modal 2018-09-05 15:32:15 +02:00
Rigel Kent 9a0fc8409c add theming via css custom properties
and a bonus dark color theme toggle
2018-09-04 23:24:34 +02:00
Chocobozzz 6aff854c0e
Fix overview page on mobile 2018-09-04 17:31:30 +02:00
Gaëtan Rizio 74d6346935 Users can change ownership of their video [#510] (#888)
* [#510] Create a new route to get the list of user names

To be able to transfer ownership to a user,
we need to be able to select him from the list of users.

Because the list could be too big, we add a autocomplete feature.

This commit does the following:

* Add a API endpoint to get a list of user names by searching its name

* [#510] The user can choose the next owner of the video

To be able to transfer ownership to a user,
we need the owner to be able to select the user.

The server can autocomplete the name of the user to give the ownership.
We add a dialog for the user to actually select it.

This commit does the following:

* Create a modal for the owner to select the next one
* Opens this modal with a button into the menu *more*
* Make the dependency injection

* [#510] When the user choose the next owner, create a request in database

For the change of ownership to happen, we need to store the temporary requests.
When the user make the request, save it to database.

This commit does the following:

* Create the model to persist change ownership requests
* Add an API to manage ownership operations
* Add a route to persist an ownership request

* [#510] A user can fetch its ownership requests sent to him

To be able to accept or refuse a change of ownership,
the user must be able to fetch them.

This commit does the following:

* Add an API to list ownership for a user
* Add the query to database model

* [#510] A user can validate an ownership requests sent to him - server

The user can accept or refuse any ownership request that was sent to him.
This commit focus only on the server part.

This commit does the following:

* Add an API for the user to accept or refuse a video ownership
* Add validators to ensure security access
* Add a query to load a specific video change ownership request

* [#510] A user can validate an ownership requests sent to him - web

The user can accept or refuse any ownership request that was sent to him.
This commit focus only on the web part.

This commit does the following:

* Add a page to list user ownership changes
* Add actions to accept or refuse them
* When accepting, show a modal requiring the channel to send the video

* Correct lint - to squash

* [#510] PR reviews - to squash

This commit does the following:

* Search parameter for user autocompletion is required from middleware directly

* [#510] PR reviews - to squash with creation in database commit

This commit does the following:

* Add the status attribute in model
* Set this attribute on instance creation
* Use AccountModel method `loadLocalByName`

* [#510] PR reviews - to squash with fetch ownership

This commit does the following:

* Add the scope `FULL` for database queries with includes
* Add classic pagination middlewares

* [#510] PR reviews - to squash with ownership validation - server

This commit does the following:

* Add a middleware to validate whether a user can validate an ownership
* Change the ownership status instead of deleting the row

* [#510] PR reviews - to squash with ownership validation - client

This commit does the following:

* Correct indentation of html files with two-spaces indentation
* Use event emitter instead of function for accept event
* Update the sort of ownership change table for a decreasing order by creation date
* Add the status in ownership change table
* Use classic method syntax

* code style - to squash

* Add new user right - to squash

* Move the change to my-account instead of video-watch - to squash

As requested in pull-request, move the action to change ownership into my videos page.

The rest of the logic was not really changed.

This commit does the following:

- Move the modal into my video page
- Create the generic component `button` to keep some styles and logic

* [#510] Add tests for the new feature

To avoid regression, we add tests for all api of ownership change.

This commit does the following:

- Create an end-to-end test for ownership change
- Divide it to one test per request

* [#510] Do not send twice the same request to avoid spam

We can send several time the same request to change ownership.
However, it will spam the user.
To avoid this, we do not save a request already existing in database.

This commit does the following:

- Check whether the request exist in database
- Add tests to verify this new condition

* [#510] Change icons

Change icons so they remains logic with the rest of the application.

This commit does the following:

- Add svg for missing icons
- Add icons in `my-button` component
- Use these new icons

* [#510] Add control about the user quota

The user should be able to accept a new video only if his quota allows it.

This commit does the following:

- Update the middleware to control the quota
- Add tests verifying the control

* Correct merge

- Use new modal system
- Move button to new directory `buttons`

* PR reviews - to squash
2018-09-04 08:57:13 +02:00