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

create new post screen #49

Merged
merged 29 commits into from
Mar 30, 2024
Merged

create new post screen #49

merged 29 commits into from
Mar 30, 2024

Conversation

Aderfish
Copy link
Collaborator

Fixes #29,

This PR implements the new post screen.
image

The post button checks that the title and body are not empty. However it does not yet connect to the database, and there is therefore no viewmodel yet.
The settings button is not implemented yet. It will be implemented when user notifications and tag functionality will be implemented.

@Aderfish Aderfish self-assigned this Mar 27, 2024
@Aderfish Aderfish linked an issue Mar 27, 2024 that may be closed by this pull request
Only merge conflict was due to separation of login_page into 2 files in login package.
@gruvw
Copy link
Collaborator

gruvw commented Mar 28, 2024

Nice work, this might require a small amount of UI code refactoring, similar to #37 (comment) and #38 (comment).
I think it could be a good idea that @CHOOSEIT or @camillelnne assist you with that (if they want / have time), now that they have had an example on their code :)

TheTexanCodeur and others added 6 commits March 28, 2024 12:24
Was using the mocked proxima page and navigating to new post page first, but this is not sustainable. These tests should only test the NewPostPage widget.
Text and hint content is now private, and keys are used for testing.
@Aderfish
Copy link
Collaborator Author

Thank you for the feedback, I did the refactoring to make the code more readable. I also changed the tests so that they only use this page and not the whole app to run. Please tell me if you find anything else that should be improved.

onPressed: () {
// TODO open tag and notification settings overlay
},
icon: const Icon(Icons.settings),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be a better idea to put the notification settings button in the top left of the screen (in a lot if app it's his default position).

Copy link
Collaborator

@TheTexanCodeur TheTexanCodeur left a comment

Choose a reason for hiding this comment

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

Good job!

The code is very clear and well structered. I added a UI design suggestion but you followed the wireframe so it's not to be addressed immediatly. I think we can go this way for now!

Copy link
Collaborator

@gruvw gruvw left a comment

Choose a reason for hiding this comment

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

LGTM, great refactoring.

No conflict except deleting the old home page file
@Aderfish Aderfish merged commit b1d98ad into main Mar 30, 2024
2 checks passed
@Aderfish Aderfish deleted the 29-create-new-post-screen branch March 30, 2024 06:19
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.

Create new post screen
3 participants