Skip to content

Conversation

@SakiiR
Copy link
Member

@SakiiR SakiiR commented Dec 17, 2021

cf #80

BitK and others added 8 commits November 30, 2021 02:42
Only the files in /src where formated with `yarn format`
now the subfolder are also formated.

+ formating importCtf and savepointWrapper
Open the dialog from a button in the menu bar
@SakiiR
Copy link
Member Author

SakiiR commented Dec 20, 2021

This is how it looks like so far.

Screenshot 2021-12-20 at 09 48 16

Better style of search result task item
Copy link
Collaborator

@JJ-8 JJ-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you sync this branch with the main branch? There is now a conflict with migration 39:

Error: Migration failed. Reason: Hashes don't match for migrations '39-search-ctfs.sql'.

This is because of the 39-sort-users.sql migration already existing.

@B-i-t-K
Copy link
Member

B-i-t-K commented Dec 22, 2021

We should use https://github.com/graphile-contrib/postgraphile-plugin-connection-filter instead of our own search function, this could also replace the incomming and pastctf functions.

@SakiiR
Copy link
Member Author

SakiiR commented Jan 10, 2022

@JJ-8 Are u comparing with the dev branch ? I can't see the "39-sort-users.sql" migration.

@JJ-8
Copy link
Collaborator

JJ-8 commented Jan 10, 2022

No, I think it is only merged to the main branch. So that's why it is not in dev. You can find the file here: https://github.com/TFNS/CTFNote/blob/main/api/migrations/39-sort-users.sql

@JJ-8
Copy link
Collaborator

JJ-8 commented Mar 30, 2022

@SakiiR, are you planning to add the 39-sort-users.sql to the branch so we can start testing and merging? I think this is a great feature to add which make CTFNote easier to navigate!

Copy link
Collaborator

@JJ-8 JJ-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick update @SakiiR! Now I was able to install and test it locally. I have some remarks about the functionality, see above for the details.
But overall: great work! I really like the quick navigation! :)

@XeR, I am sure you also have some remarks on the code, functionality, etc. Can you please also review this? Or if everything is alright, then we just merge.

@JJ-8 JJ-8 requested a review from XeR March 30, 2022 15:45
Moved to hotkeys-js to handle hotkeys
Moved the composable in the MainLayout to handle authenticated status
Typos
@SakiiR
Copy link
Member Author

SakiiR commented Mar 31, 2022

Please, can you make some tests with the new hotkeys handling ?

I tested my self on OSX and it feels ok =)

Copy link
Collaborator

@JJ-8 JJ-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update! The shortcuts now partially work. I don't think it is possible to overwrite browser-defined shortcuts like ctrl+n but if that works on other operating systems, then it is perfectly fine by me. At least up, down and ctrl+k do work for me.

I have two additional remarks however:

  • The searching is case sensitive. This is quite annoying.
  • The postgraphile-plugin-connection-filter package has Performance and Security remarks that are not taken into consideration at the moment. I think this should be restricted.

Copy link
Collaborator

@JJ-8 JJ-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! I think these are the final comments and then it can be merged. I have already supplied patches for the bugs, so you only have to confirm it :)

Unbinding arrows shortcuts when closing the popup
Copy link
Collaborator

@JJ-8 JJ-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contribution!

@JJ-8 JJ-8 merged commit bf6f677 into TFNS:dev Apr 7, 2022
@JJ-8 JJ-8 mentioned this pull request Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants