Skip to content

Conversation

damian-molinski
Copy link
Contributor

@damian-molinski damian-molinski commented Sep 23, 2025

Description

This PR prepares frontend for changing active campaigns

Related Issue(s)

Resolves https://github.com/input-output-hk/catalyst-internal-docs/issues/316

Description of Changes

  • Stores active campaign ref in local storage (AppMetaStorage). When changes database documents are removes but templates used by local drafts. This happens inside SyncManager.
  • Make local drafts from not active campaign shown in workspace inside separate section with view only option.
  • Filtering queried proposals with CampaignFilters. This is not as dynamic as it should be but for now it's enough.
  • Made all places which rely on campaign and categories respect case when campaign does not have any categories
  • Define static refs for f14 and f15. They are no longer random but still only means something for frontend only.
  • Adds dummy .f15 constructor for campaign.
  • moved f14 categories and timeline to respective files f14_static_campaign_categories.dart and f14_static_campaign_timeline.dart. This allows us for f15 counter parts
  • Makes f15 active campaign !
  • TODO update index endpoint with filtering based on campaign

Demo

TODO

Related Pull Requests

Please confirm the following checks

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream module

@damian-molinski damian-molinski self-assigned this Sep 23, 2025
@damian-molinski damian-molinski added squad: face Frontend Catalyst Experience Team a: proposal Showing proposals or details of single proposal labels Sep 23, 2025
@damian-molinski damian-molinski moved this from New to 🏗 In progress in Catalyst Sep 23, 2025
@damian-molinski damian-molinski moved this from 🏗 In progress to 👀 In review in Catalyst Sep 24, 2025
@damian-molinski damian-molinski marked this pull request as ready for review September 24, 2025 14:16
Copy link
Contributor

@dt-iohk dt-iohk left a comment

Choose a reason for hiding this comment

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

Overall LGTM

Copy link
Contributor

📚 Docs Preview

The docs for this PR can be previewed at the following URL:

https://docs.dev.projectcatalyst.io/voices/feat/documents_campaign_isolation_316

@damian-molinski damian-molinski moved this from 👀 In review to 🛑 Blocked in Catalyst Sep 25, 2025
@damian-molinski damian-molinski added the no-track Used to skip tracking in Swarmia analytics, etc. label Sep 25, 2025
@damian-molinski
Copy link
Contributor Author

Waiting for gateway document index endpoint to allow category.id.in parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: proposal Showing proposals or details of single proposal no-track Used to skip tracking in Swarmia analytics, etc. squad: face Frontend Catalyst Experience Team
Projects
Status: 🛑 Blocked
Development

Successfully merging this pull request may close these issues.

3 participants