Skip to content

Conversation

@sakithb
Copy link
Collaborator

@sakithb sakithb commented Aug 18, 2025

No description provided.

@sakithb sakithb marked this pull request as ready for review August 22, 2025 14:59
Copy link
Member

@supun-io supun-io left a comment

Choose a reason for hiding this comment

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

  • Use for Add Publication
  • Remove "Name" input. We will use the name given in the feed
  • We need to fetch the feed within the HTTP request of creating a publication and show better error messages. Also, we don't want to add the publication if the RSS feed URL is wrong. (needs discussing)

sakithb and others added 9 commits August 30, 2025 11:12
# Conflicts:
#	backend/composer.json
#	backend/composer.lock
#	backend/src/Api/App/Controller/PublicationController.php
#	backend/src/Repository/CollectionUserRepository.php
#	backend/src/Service/Parser/RssParser.php
#	frontend/src/routes/app/(reader)/+layout.svelte
Copy link
Member

@supun-io supun-io left a comment

Choose a reason for hiding this comment

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

  • Use a Button for + Add Publication (from HDS)
  • When the "Add Publication" modal is opened, automatically focus the input
  • While the publication is being added, show a loader (Use Modal Loader)
  • In the PublicationController::addPublication, the idea of using an inspection is great! I suggest sending this $inspection into PublicationService->createPublication and do everything there (you won't need udpates like $publication->setConditionalGetEtag when you set it when creating the publication).
  • Error handling in the UI (ex: when the feed fails)
    • Create an ExceptionListener (see Relay). Most parts are handled by the internal lib, which converts the error to a JSON response with the correct response
    • Show the error message in the modal when the API fails.

@sakithb sakithb requested a review from supun-io September 10, 2025 05:02
sakithb and others added 10 commits September 12, 2025 12:17
# Conflicts:
#	backend/composer.json
#	backend/composer.lock
#	backend/src/Api/App/Controller/CollectionController.php
#	backend/src/Api/App/Controller/PublicationController.php
#	backend/src/Repository/CollectionUserRepository.php
Copy link
Member

@Nadil-K Nadil-K left a comment

Choose a reason for hiding this comment

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

  • Add a test for POST /collections
  • In the frontend, move API calls to a separate ts file (See this)
  • Remove console.log()
  • Use toast.error() from HDS instead of console.error()


return $this->json([
'publication' => new PublicationObject($publication),
'created' => $created,
Copy link
Member

Choose a reason for hiding this comment

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

  • Why do we need these created and attached booleans? Within the current codebase, I don't see any instance of it being used. Shall we remove it @supun-io?

@sakithb sakithb requested review from Nadil-K September 29, 2025 09:23
sakithb and others added 2 commits October 12, 2025 17:47
* wip

* make article view responsive

* changed mobile layout

* mobile improvements

* rebased issue/38

* Docker final build (#50)

* docker final build

* wip

* add .env.dev

* add monolog (#51)
@supun-io supun-io merged commit 900e462 into main Oct 12, 2025
3 checks passed
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.

4 participants