Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement paginated list & search #63

Merged
merged 72 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
3b68305
test: add testing boilerplate
DavideIadeluca Mar 5, 2025
dcaa818
chore: gitignore
DavideIadeluca Mar 5, 2025
ec036fe
test: add tests for new list controller
DavideIadeluca Mar 5, 2025
2bd3afc
feat: implement paginated list
DavideIadeluca Mar 5, 2025
c4cbd4e
Apply fixes from StyleCI
StyleCIBot Mar 5, 2025
5d64b63
chore: enable backend testing in flows
DavideIadeluca Mar 5, 2025
ab44c32
test: rename test
DavideIadeluca Mar 5, 2025
2d91a69
style: remove whitespacing
DavideIadeluca Mar 5, 2025
9bb0ac2
fix: use visibility trait
DavideIadeluca Mar 5, 2025
11dd78c
chore: add basic include boilerplate
DavideIadeluca Mar 5, 2025
7d1c38e
Apply fixes from StyleCI
StyleCIBot Mar 5, 2025
43ac04e
feat: support search for partial keys
DavideIadeluca Mar 5, 2025
841adf2
Apply fixes from StyleCI
StyleCIBot Mar 5, 2025
d9b78e8
refactor: rename gambit
DavideIadeluca Mar 5, 2025
b2260b5
docs: add explanation
DavideIadeluca Mar 5, 2025
3fe0d5a
chore: adjust tsconfig
DavideIadeluca Mar 7, 2025
359e6aa
chore: switch to yarn
DavideIadeluca Mar 7, 2025
96332bb
chore: use frontend extenders
DavideIadeluca Mar 7, 2025
8d2ffb3
feat: wip create doorkey code modal
DavideIadeluca Mar 7, 2025
2d93122
feat: wip new settings page
DavideIadeluca Mar 7, 2025
818552b
feat: enhance create doorkey modal
DavideIadeluca Mar 7, 2025
0863c0b
chore: cleanup model
DavideIadeluca Mar 10, 2025
5084eee
chore: rename
DavideIadeluca Mar 10, 2025
444fa85
feat: wip doorkey list page
DavideIadeluca Mar 10, 2025
85bd87d
feat: wip editing doorkeys
DavideIadeluca Mar 10, 2025
f979652
chore: wip translations
DavideIadeluca Mar 10, 2025
d7cbd25
chore: wip CSS
DavideIadeluca Mar 10, 2025
898b4a7
Apply fixes from StyleCI
StyleCIBot Mar 10, 2025
1ef9590
chore: ts
DavideIadeluca Mar 10, 2025
f12d11f
fix: group select did not update
DavideIadeluca Mar 10, 2025
a8ffb60
chore: remove unused import
DavideIadeluca Mar 10, 2025
3c0e770
chore
DavideIadeluca Mar 10, 2025
0fd2116
chore: update frontend deps & scripts
DavideIadeluca Mar 10, 2025
9a0d01e
chore: remove old model
DavideIadeluca Mar 10, 2025
e5392be
chore: whoops
DavideIadeluca Mar 10, 2025
07d78ef
chore: consistency
DavideIadeluca Mar 10, 2025
595822e
fix: re add custom API endpoint
DavideIadeluca Mar 10, 2025
873fc54
chore: fixup
DavideIadeluca Mar 10, 2025
06be129
chore: serialize group to API
DavideIadeluca Mar 10, 2025
8085fc9
chore: remove old code
DavideIadeluca Mar 10, 2025
620f4c7
chore: remove unused LESS
DavideIadeluca Mar 10, 2025
7764a78
chore: admin styling
DavideIadeluca Mar 10, 2025
4d3346c
chore: remove unused code
DavideIadeluca Mar 10, 2025
f5ce190
chore: re add setting
DavideIadeluca Mar 10, 2025
87605d3
chore: simplify
DavideIadeluca Mar 10, 2025
d9d8c47
feat: show group badge
DavideIadeluca Mar 10, 2025
bc3d052
chore: ts
DavideIadeluca Mar 10, 2025
f115b72
chore: a11y
DavideIadeluca Mar 10, 2025
d36897b
chore: ts
DavideIadeluca Mar 10, 2025
0e3a3a3
chore: re add ID
DavideIadeluca Mar 10, 2025
8bb2236
test: add test for checking default relationship includes
DavideIadeluca Mar 10, 2025
225e684
Apply fixes from StyleCI
StyleCIBot Mar 10, 2025
dd9a797
chore: add icon for activates user switch
DavideIadeluca Mar 10, 2025
c30a21d
fix: mitigate UI issue when updating group
DavideIadeluca Mar 10, 2025
f79d8b2
fix: add permission check
DavideIadeluca Mar 10, 2025
0279b94
test: implement test for show controller
DavideIadeluca Mar 10, 2025
b05dd01
chore: css
DavideIadeluca Mar 10, 2025
9894eac
refactor: cleanup translations
DavideIadeluca Mar 10, 2025
a9897fc
fix: patch more translations
DavideIadeluca Mar 10, 2025
53f6585
feat: reimplement uses info
DavideIadeluca Mar 10, 2025
2e64376
refactor: change import order
DavideIadeluca Mar 10, 2025
b8af2e0
feat: implement deletion confirmation
DavideIadeluca Mar 10, 2025
d4c9be6
chore: remove console log
DavideIadeluca Mar 10, 2025
f128b9b
chore: export components
DavideIadeluca Mar 10, 2025
9dd1571
Apply fixes from StyleCI
StyleCIBot Mar 10, 2025
4064417
chore: fix stan
DavideIadeluca Mar 10, 2025
513cf92
chore: rename item
DavideIadeluca Mar 10, 2025
3236d5d
chore: window location reload
DavideIadeluca Mar 10, 2025
8661b0b
chore: increase results per page
DavideIadeluca Mar 14, 2025
a55f6c8
chore: typings
DavideIadeluca Mar 17, 2025
291388d
Merge branch 'master' into di/pagination-and-search
DavideIadeluca Mar 17, 2025
218a4f0
refactor: use blueprint for fulltext index
DavideIadeluca Mar 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

frontend_directory: ./js
backend_directory: .
js_package_manager: npm
js_package_manager: yarn
main_git_branch: master

secrets:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ js/dist
js/node_modules
vendor
composer.lock
.phpunit.result.cache
20 changes: 16 additions & 4 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@
use Flarum\User\Event\Saving as UserSaving;
use Flarum\User\User;
use FoF\Doorman\Api\Controllers;
use FoF\Doorman\Content\AdminPayload;
use FoF\Doorman\Filter\DoorkeyFilterer;
use FoF\Doorman\Filter\NoFilter;
use FoF\Doorman\Search\DoorkeySearcher;
use FoF\Doorman\Search\Gambit\FulltextGambit;
use FoF\Doorman\Validators\DoorkeyLoginValidator;

return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less'),
->js(__DIR__.'/js/dist/forum.js'),

(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/resources/less/admin.less'),
->css(__DIR__.'/resources/less/admin.less')
->content(AdminPayload::class),

(new Extend\Model(User::class))
->cast('invite_code', 'string'),
Expand All @@ -37,7 +42,14 @@
->post('/fof/doorkeys/invites', 'fof.doorkey.invite', Controllers\SendInvitesController::class)
->delete('/fof/doorkeys/{id}', 'fof.doorkey.delete', Controllers\DeleteDoorkeyController::class)
->patch('/fof/doorkeys/{id}', 'fof.doorkey.update', Controllers\UpdateDoorkeyController::class)
->get('/fof/doorkeys', 'fof.doorkeys.index', Controllers\ListDoorkeysController::class),
->get('/fof/doorkeys', 'fof.doorkeys.index', Controllers\ListDoorkeysController::class)
->get('/fof/doorkeys/{id}', 'fof.doorkeys.show', Controllers\ShowDoorkeyController::class),

(new Extend\SimpleFlarumSearch(DoorkeySearcher::class))
->setFullTextGambit(FulltextGambit::class),

(new Extend\Filter(DoorkeyFilterer::class))
->addFilter(NoFilter::class),

new Extend\Locales(__DIR__.'/resources/locale'),

Expand Down
File renamed without changes.
File renamed without changes.
Loading
Loading