dertinfo/dertinfo-web

[FEATURE] Link the homepage sticker to the promoted event and switch from opening soon to register now auotmatically

Open

#23 aperta il 19 nov 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (1 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (0 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Is your feature request related to a problem? Please describe.

Every time we want to open for registration we manually have to do a deployment to update the sticker. We can do this automatically by finding the promoted DERT and then looking at it's registration open date.

Describe the solution you'd like

-If now less than registration open date - "Register soon" sticker -If now less than registration open date - "Register now" sticker

Describe alternatives you've considered

None however if desired the requirement could be expended to "registration closed" and "happening now" using the date information we have available

Additional context

  • It might be necessary to create an API endpoint for this.
  • The simpler version of this would be a really good first issue for someone and the simple information is available from an open endpoint at: https://[apiurl]/api/showcase/event/[EventId] (e.g. http://localhost:44100api/showcase/event/29 in local development)

Guida contributor