-
Notifications
You must be signed in to change notification settings - Fork 24
Forms system #524
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
Merged
Merged
Forms system #524
Changes from 8 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
a114e30
Forms system
Defective4 bdf0b1a
Store form fields in a separate table
Defective4 b62574d
Use default values for all `NOT NULL` fields
Defective4 2c97172
Store form's message channel and id as longs instead of Strings
Defective4 7db911a
Changed submissions table structure to use unique ids
Defective4 e2c6372
Correct `FormsRepository` javadoc
Defective4 7cb72ed
Adjustments to the `FormsRepository` class
Defective4 61d7e36
Fix javadoc spelling mistakes
Defective4 21d9a42
Make the `FormField` into a record
Defective4 3425fa0
Convert `FormData` into a record and use `Instants` for expiration
Defective4 fdd328e
Form field javadoc
Defective4 123282b
Convert `FormUser` to a `record`
Defective4 7fccf8e
`FormCommand` javadoc
Defective4 385820d
Fix checkstyle
Defective4 2763a57
Merge branch 'Java-Discord:main' into forms-feature
Defective4 f6f2149
Migrate forms feature to new JDA and Java version
Defective4 71aa7fc
Fix indentation in forms-related classes
Defective4 6cc7b9e
Properly document form commands
Defective4 f13bae7
Add a staff role check to all form commands
Defective4 b421eb0
Rename `checkNotClosed` to `isOpen` in the form interaction manager
Defective4 85b8d9e
Add a user ID to form submission embeds
Defective4 2a78356
Replace codeblocks in user submissions
Defective4 7c2b156
Extract some of the common form logic to `FormSubcommand`
Defective4 598a95c
Update detach and attach command descriptions
Defective4 763af6d
Log the exception in form detach subcommand
Defective4 0741915
Remove useless timestamp field from form details embed
Defective4 be9b2c5
Improve form details subcommand
Defective4 8d35fc7
Change form modify subcommand javadoc
Defective4 1614da9
Allow for disabling form expiration time
Defective4 c5bdea8
Remove leftover `EXPIRATION_PERMANENT` field from `FormData`
Defective4 4cb7103
Disallow form deleting if it's attached to a message
Defective4 3b24656
Fix option to modify form expiration date
Defective4 135108f
Include info that field indexes are 0-indexed in form field remove
Defective4 3a5367d
Fix javadocs
Defective4 462138d
Fix message not being able to be detached if the og channel was deleted
Defective4 78624bb
Field removal subcommand improvements
Defective4 e4a7c0b
Use `filterChoices` in forms commands where possible
Defective4 05ebe4f
Update reopen command description
Defective4 af0c407
Fix checkstyle errors
Defective4 1e2e788
Update form export subcommand javadoc
Defective4 2ddea7d
Use `Map#forEach` in form export subcommand
Defective4 e2a54ab
Correct javadoc in forms repository
Defective4 fd0b13f
Change components array in `FormData` to an unmodifiable list
Defective4 f03aa15
Use optional for form attachment info
Defective4 037061d
Fix form submissions delete subcommand description
Defective4 cc20300
Add missing javadoc comments
Defective4 40728f5
Resolve TODO comments in forms feature classes
Defective4 f43f7df
Extract subcommand field ids to constants
Defective4 4ef2c89
Fix an issue with form fields not being added to the modal
Defective4 d03f90d
Improve form commands descriptions and add missing javadocs
Defective4 15dee0b
Make changes requested in the review
Defective4 ed3b3d3
Use `DateTimeFormatter` in forms
Defective4 1786843
Change time format in forms
Defective4 ac9e2ff
Change the button "mapping" method name
Defective4 90e8a37
Log failed form submission attempts
Defective4 00102a1
Log form submission errors
Defective4 23a38e8
Fix javadoc type in form interaction manager
Defective4 fa3c43e
Rename `createFormModal`
Defective4 0a0c877
Fix checkstyle errors
Defective4 694c2b9
Use `Responses#error` where possible in forms commands
Defective4 4dc6fe3
Remove "created at" field from form details embed
Defective4 7d657ce
Merge branch 'Java-Discord:main' into forms-feature
Defective4 b7c6552
Address the remaining issues
Defective4 d8304fd
Merge branch 'forms-feature' of https://github.com/Defective4/JavaBot…
Defective4 0556dda
Disallow attaching forms to messages not sent by the bot
Defective4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.