-
Notifications
You must be signed in to change notification settings - Fork 26
Story #2111: Form post wisiwyg #2149
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
Changes from 20 commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
ab2abb6
basic settings for creating a post
DrJfrost 1cda2e9
Removing unnecessary files in create post
DrJfrost cbb2cc0
removing unnecessary files in create post
DrJfrost cbc4e57
format file
DrJfrost a053f8d
create post completed, only WYSIWYG missing
DrJfrost 221909a
Completion of input design migration.
DrJfrost b63939e
Fixing the application background and correcting the title and subtit…
DrJfrost 306a6af
Fixing sintax form create post
DrJfrost 8491c77
merge wysiwig
DrJfrost 1bb274d
implement WYSIWYG create post
DrJfrost ba203b8
fix style forms
DrJfrost 74a0baf
merge v3 into form-post-wisiwyg
DrJfrost 5bbb4ac
Merge branch 'v3' into form-post-wisiwyg
DrJfrost 27b3d81
The maximum width for the create post is defined, WYSIWYG adjustments…
DrJfrost 2f11017
Correction of the create post button.
DrJfrost 1de5fc9
merge v3 to form-post-wysiwyg
DrJfrost 18c5788
add file wysiwiyg
DrJfrost ef11e68
Update wysiwyg-editor.js
DrJfrost 9e4be9b
Corrections to create post, styles.
DrJfrost a636bbe
merge develop into form-post-wisiwyg
DrJfrost b48ab7a
design corrections with respect to figma
DrJfrost 9dd8d0d
format post create
DrJfrost 9c07c6f
merge develop into wysiwyg
DrJfrost d516f87
Enhance WYSIWYG editor with dark mode support and integrate it into n…
fromagge 131b313
Merge branch 'develop' into form-post-wisiwyg
herzog0 e5b8636
fix: unify duplicate form inputs section
herzog0 4421ef5
fix: dropdown options format
herzog0 5f5d7f2
fix: wisiwyg no-js version
herzog0 26b0f27
chore: improve no-js styles
herzog0 8119916
fix: refactor key/value pair type in views.py
herzog0 2318687
fix: dispatch event on input selection
herzog0 e9be9e4
fix: no-js version of image input field
herzog0 6c07082
fix: conditional fields not rendering correctly according to post type
herzog0 1520996
fix: rollback auth check bypass
herzog0 1a686e1
Merge remote-tracking branch 'origin/develop' into form-post-wisiwyg
herzog0 efee380
fix: re-add missing dropdown icon rotation
herzog0 415403d
fix: remove icons from link field
herzog0 57bf895
fix: remove placeholder text from datetime type text field
herzog0 b0c3409
fix: prevent past datetime selections
herzog0 5daef1e
fix: hide calendar picker icon and make the whole input clickable
herzog0 cd7cdeb
fix: show image too large error
herzog0 ad7451c
fix: update file size validation in the FE
herzog0 4ef97f5
fix: reuse file input field instead of reimplementing it from scratch
herzog0 ecca85b
fix: desktop breakpoint
herzog0 3c2eed4
fix: wrong css variables
herzog0 8c3b8b8
fix: wrong css variables
herzog0 2f4d2f4
chore: delete junk file
herzog0 1862924
fix: accessibility issue when image preview is in place
herzog0 0d3a36d
fix: remove undesired translation calls
herzog0 7f38513
fix: media query breakpoint
herzog0 c51371d
chore: remove fallback
herzog0 48c5630
fix: remove bg color from pre-v3 css file
herzog0 81093cd
chore: remove duplicate and unused icons
herzog0 56bb98e
fix: remove comment of deleted icons
herzog0 1fd5f4f
fix: remove duplicate icon
herzog0 8245d13
fix: rollback changes in out-of-scope component
herzog0 a134227
chore: remove non-v3 section from v3 file
herzog0 927fab9
fix: remove non-v3 sections of the component and fix layout
herzog0 197437b
chore: remove css fallbacks
herzog0 2b9c4c6
fix: v3 background color
herzog0 91326e6
chore: remove useless changes
herzog0 9f27593
fix: change 5mb to 1mb max file size allowance where applicable
herzog0 028a33b
chore: delete unused js file
herzog0 9d7130f
chore: refactor datetime picker into its own component
herzog0 07836bd
fix: improve post error message position styles
herzog0 bffc46d
(rebasing this branch is unfeasible) Merge branch 'develop' into form…
herzog0 50575c3
fix: display wysiwyg component also for linkType posts
herzog0 0bf0adb
fix: change order of event listening from bubble to capture phase
herzog0 49c500d
fix: stop field cleanup when switching post types
herzog0 673eddc
fix: improve error message on duplicate title
herzog0 a7de206
fix: preserve content after form submission error
herzog0 99292cc
chore: delete useless file
herzog0 cbf030c
Merge remote-tracking branch 'origin/develop' into form-post-wisiwyg
herzog0 0ab3fab
feat: improve file organization
herzog0 f912d0e
fix: change post strategy to allow behavior without js
herzog0 71e69e4
fix: make link field appear without javascript enabled
herzog0 a184eb7
fix: customize link field when js is enabled vs when not
herzog0 1975cc6
chore: improve code legibility
herzog0 c10742c
chore: show that publish date is mandatory
herzog0 7522d50
fix: do not show content field for links and video post types
herzog0 a8fa325
fix: conditionally render content field
herzog0 0babd76
fix: remove leftover classes
herzog0 d465887
fix: raise exception and bring back old content of non-v3 class
herzog0 aff2342
fix: improve non-js file choosing component behavior
herzog0 dc0d7b9
fix: reuse own components error fields
herzog0 45290a1
fix: remove bad import
herzog0 3d6ce76
feat: add description field to link/video options
herzog0 78b8bf3
fix: preserve related libraries in case of form submission error
herzog0 fe0b098
fix: component body padding on mobile
herzog0 b54e122
feat: remove profile picture check before creating posts
herzog0 064e9cb
fix: fix tests
herzog0 5f37960
fix: description field not appearing for link type posts
herzog0 f7967bc
feat: add global styles override file
herzog0 2458791
chore: move styling import to owner file
herzog0 1fdcb20
fix: reorder global overrides
herzog0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| /** | ||
| * Create post page layout (Django). | ||
| * BEM: .create-post-wrapper, .create-post-page, .create-post-page__* | ||
| */ | ||
|
|
||
| .create-post-wrapper { | ||
| width: 100%; | ||
| max-width: 694px; | ||
| } | ||
|
|
||
| .create-post-page { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-xl); | ||
| align-items: stretch; | ||
| width: 100%; | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .create-post-page__header { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-large, 16px); | ||
| } | ||
|
|
||
| .create-post-page__title { | ||
| font-family: var(--font-sans); | ||
| font-size: var(--font-size-2xl, 40px); | ||
| font-weight: var(--font-weight-medium, 500); | ||
| line-height: 1; | ||
| letter-spacing: -1px; | ||
| color: var(--color-text-primary, #050816); | ||
| margin: 0; | ||
| } | ||
|
|
||
| .create-post-page__subtitle { | ||
| font-family: var(--font-sans); | ||
| font-size: var(--font-size-large, 24px); | ||
| font-weight: var(--font-weight-regular, 400); | ||
| line-height: 1.33; | ||
| letter-spacing: -1px; | ||
| color: var(--color-text-secondary, #585a64); | ||
| padding: 0; | ||
| } | ||
|
|
||
| .create-post-page__card { | ||
| background: var(--color-surface-weak, #fff); | ||
| border: 1px solid var(--color-stroke-weak, rgba(5, 8, 22, 0.1)); | ||
| border-radius: 16px; | ||
| padding: var(--space-large, 16px); | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-xlarge, 24px); | ||
| } | ||
|
|
||
| .create-post-page__link-fields { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-xlarge, 24px); | ||
| } | ||
|
|
||
| .create-post-page__actions { | ||
| display: flex; | ||
| flex-direction: row; | ||
| gap: var(--space-default, 8px); | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| .create-post-page__actions .btn { | ||
| flex: 1 1 0; | ||
| min-width: 128px; | ||
| justify-content: center; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| @media (max-width: 480px) { | ||
herzog0 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| .create-post-page__actions { | ||
| flex-direction: column; | ||
| } | ||
| .create-post-page__actions .btn { | ||
| min-width: 100%; | ||
| } | ||
| } | ||
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.